Function at 0x403b54
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x452fb0], 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
jne 0x403b6e
call fcn.004039bc
test ebx, ebx
jne 0x403b79
xor eax, eax
jmp 0x4040cf
mov dword [ebp - 8], ebx
push 0x40
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_IsBadReadPtr
dec eax
je 0x403b94
mov ecx, dword [ebp - 8]
cmp word [ecx], 0x5a4d
je 0x403b9b
xor eax, eax
jmp 0x4040cf
mov edx, dword [ebp - 8]
mov ebx, dword [edx + 0x3c]
add ebx, dword [ebp - 8]
push 0xf8
push ebx
call sub.KERNEL32.DLL_IsBadReadPtr
dec eax
je 0x403bba
cmp dword [ebx], 0x4550
je 0x403bc1
xor eax, eax
jmp 0x4040cf
cmp word [ebx + 0x14], 0xe0
jne 0x403bd1
cmp word [ebx + 0x18], 0x10b
je 0x403bdb
mov eax, 4
jmp 0x4040cf
cmp word [ebx + 6], 1
jae 0x403be9
xor eax, eax
jmp 0x4040cf
mov edx, dword [ebp - 8]
mov ebx, dword [edx + 0x3c]
mov eax, dword [ebp - 8]
add ebx, eax
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x403c13
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
jmp 0x403c1d
mov eax, 8
jmp 0x4040cf
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
jne 0x403c33
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x4040ca
mov edx, dword [ebp - 0xc]
mov ebx, dword [edx + 0xc]
add ebx, dword [ebp - 4]
xor eax, eax
mov dword [ebp - 0x10], eax
push ebx
call sub.KERNEL32.DLL_lstrlenA
mov esi, eax
mov edi, ebx
push esi
push str.Kernel32.dll
push edi
call fcn.004057d8
add esp, 0xc
test eax, eax
jne 0x403c65
mov dword [ebp - 0x10], 1
push ebx
call sub.KERNEL32.DLL_lstrlenA
mov esi, eax
mov edi, ebx
push esi
push 0x44fc38
push edi
call fcn.004057d8
add esp, 0xc
test eax, eax
jne 0x403c89
mov dword [ebp - 0x10], 2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
test eax, eax
je 0x403c9a
add eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jmp 0x403ca6
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x10]
add ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x10]
add ebx, dword [ebp - 8]
jmp 0x4040b4
mov edx, 0x80000000
test eax, edx
jne 0x4040a5
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x403efb
mov esi, eax
add esi, dword [ebp - 8]
cmp dword [ebp - 0x10], 1
jne 0x4040a5
push 0x44fc43
lea edi, [esi + 2]
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403cf5
mov eax, dword [0x452af0]
mov dword [ebx], eax
push str.CreateFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d0c
mov edx, dword [0x452af4]
mov dword [ebx], edx
push str._lopen
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d23
mov ecx, dword [0x452b04]
mov dword [ebx], ecx
push str.OpenFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d39
mov eax, dword [0x452b18]
mov dword [ebx], eax
push str._lcreat
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d50
mov edx, dword [0x452b14]
mov dword [ebx], edx
push 0x44fc73
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d67
mov ecx, dword [0x452b44]
mov dword [ebx], ecx
push str.FindFirstFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d7d
mov eax, dword [0x452b48]
mov dword [ebx], eax
push str.GetFileInformationByHandle
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d94
mov edx, dword [0x452b2c]
mov dword [ebx], edx
cmp byte [ebp + 0xc], 1
jae 0x4040a5
push str._lclose
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403db5
mov ecx, dword [0x452b08]
mov dword [ebx], ecx
push str._lread
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403dcb
mov eax, dword [0x452b10]
mov dword [ebx], eax
push str._llseek
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403de2
mov edx, dword [0x452b0c]
mov dword [ebx], edx
push 0x44fcc3
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403df9
mov ecx, dword [0x452ad4]
mov dword [ebx], ecx
push str.SetFilePointerEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e0f
mov eax, dword [0x452aec]
mov dword [ebx], eax
push 0x44fce0
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e26
mov edx, dword [0x452ae8]
mov dword [ebx], edx
push 0x44fcef
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e3d
mov ecx, dword [0x452ad8]
mov dword [ebx], ecx
push str.ReadFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e53
mov eax, dword [0x452adc]
mov dword [ebx], eax
push str.GetFileSizeEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e6a
mov edx, dword [0x452ae4]
mov dword [ebx], edx
push 0x44fd11
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e81
mov ecx, dword [0x452ae0]
mov dword [ebx], ecx
push str.CreateFileMappingW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e97
mov eax, dword [0x452b1c]
mov dword [ebx], eax
push 0x44fd30
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403eae
mov edx, dword [0x452b20]
mov dword [ebx], edx
push 0x44fd43
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403ec5
mov ecx, dword [0x452b24]
mov dword [ebx], ecx
push str.MapViewOfFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403edb
mov eax, dword [0x452b28]
mov dword [ebx], eax
push 0x44fd61
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x4040a5
mov edx, dword [0x452b30]
mov dword [ebx], edx
jmp 0x4040a5
cmp dword [ebp - 0x10], 1
jne 0x4040a5
mov ecx, dword [ebx]
cmp ecx, dword [0x452f54]
jne 0x403f16
mov eax, dword [0x452af0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f58]
jne 0x403f28
mov ecx, dword [0x452af4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f5c]
jne 0x403f3a
mov edx, dword [0x452b04]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f88]
jne 0x403f4b
mov eax, dword [0x452b18]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f8c]
jne 0x403f5d
mov ecx, dword [0x452b14]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452fa4]
jne 0x403f6f
mov edx, dword [0x452b44]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452fa8]
jne 0x403f80
mov eax, dword [0x452b48]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452fa0]
jne 0x403f92
mov ecx, dword [0x452b2c]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x4040a5
mov eax, dword [ebx]
cmp eax, dword [0x452f60]
jne 0x403fae
mov edx, dword [0x452b08]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f64]
jne 0x403fbf
mov eax, dword [0x452b10]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f68]
jne 0x403fd1
mov ecx, dword [0x452b0c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f6c]
jne 0x403fe3
mov edx, dword [0x452ad4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f70]
jne 0x403ff4
mov eax, dword [0x452aec]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f74]
jne 0x404006
mov ecx, dword [0x452ae8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f78]
jne 0x404018
mov edx, dword [0x452ad8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f7c]
jne 0x404029
mov eax, dword [0x452adc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f80]
jne 0x40403b
mov ecx, dword [0x452ae4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f84]
jne 0x40404d
mov edx, dword [0x452ae0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f90]
jne 0x40405e
mov eax, dword [0x452b1c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f94]
jne 0x404070
mov ecx, dword [0x452b20]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f98]
jne 0x404082
mov edx, dword [0x452b24]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f9c]
jne 0x404093
mov eax, dword [0x452b28]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452fac]
jne 0x4040a5
mov ecx, dword [0x452b30]
mov dword [ebx], ecx
test ebx, ebx
jne 0x4040ad
xor eax, eax
jmp 0x4040cf
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403cb4
add dword [ebp - 0xc], 0x14
jmp 0x403c1d
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret