Private Function beagle.usub_402a5a.txt

Calls out:


DLL:kernel32.CloseHandle
DLL:kernel32.UnmapViewOfFile
usub_402985
DLL:kernel32.MapViewOfFile
DLL:kernel32.CreateFileMappingA
DLL:kernel32.GetFileSize
DLL:kernel32.CreateFileA

Incoming calls for beagle.usub_402a5a.txt


beagle.usub_402b8f.txt

Decompiled source code follows:

FLocal1 = CreateFileA(#ARG4,2147483648,1,0,3,0,0)
If (FLocal1 + 1)
      If (GetFileSize(FLocal1,0) + 1)
            FLocal3 = CreateFileMappingA(0,0,2,0,0,NULL)
            If (FLocal3 = 0)
                  FLocal4 = MapViewOfFile(FLocal3,4,0,0,0)
                  BLocal1 = FLocal7
                  If (FLocal4 = 0)
                        usub_402985(FLocal4,0,#ARG8)
                        BLocal1 = UnmapViewOfFile(FLocal4)
                  End If
                  BLocal1 = FLocal7
                  FLocal7 = CloseHandle(FLocal3)
            End If
      End If
      BLocal1 = CloseHandle(#ARG8)
End If
Return BLocal1
End Sub