Function at 0x403bf4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x452fd0], 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
jne 0x403c0e
call fcn.00403a5c
test ebx, ebx
jne 0x403c19
xor eax, eax
jmp 0x40416f
mov dword [ebp - 8], ebx
push 0x40
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_IsBadReadPtr
dec eax
je 0x403c34
mov ecx, dword [ebp - 8]
cmp word [ecx], 0x5a4d
je 0x403c3b
xor eax, eax
jmp 0x40416f
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 0x403c5a
cmp dword [ebx], 0x4550
je 0x403c61
xor eax, eax
jmp 0x40416f
cmp word [ebx + 0x14], 0xe0
jne 0x403c71
cmp word [ebx + 0x18], 0x10b
je 0x403c7b
mov eax, 4
jmp 0x40416f
cmp word [ebx + 6], 1
jae 0x403c89
xor eax, eax
jmp 0x40416f
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 0x403cb3
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
jmp 0x403cbd
mov eax, 8
jmp 0x40416f
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
jne 0x403cd3
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x40416a
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.00405878
add esp, 0xc
test eax, eax
jne 0x403d05
mov dword [ebp - 0x10], 1
push ebx
call sub.KERNEL32.DLL_lstrlenA
mov esi, eax
mov edi, ebx
push esi
push str.User32.dll
push edi
call fcn.00405878
add esp, 0xc
test eax, eax
jne 0x403d29
mov dword [ebp - 0x10], 2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
test eax, eax
je 0x403d3a
add eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jmp 0x403d46
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 0x404154
mov edx, 0x80000000
test eax, edx
jne 0x404145
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x403f9b
mov esi, eax
add esi, dword [ebp - 8]
cmp dword [ebp - 0x10], 1
jne 0x404145
push str.CreateFileA
lea edi, [esi + 2]
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d95
mov eax, dword [0x452b10]
mov dword [ebx], eax
push str.CreateFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403dac
mov edx, dword [0x452b14]
mov dword [ebx], edx
push str._lopen
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403dc3
mov ecx, dword [0x452b24]
mov dword [ebx], ecx
push str.OpenFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403dd9
mov eax, dword [0x452b38]
mov dword [ebx], eax
push str._lcreat
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403df0
mov edx, dword [0x452b34]
mov dword [ebx], edx
push str.FindFirstFileA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e07
mov ecx, dword [0x452b64]
mov dword [ebx], ecx
push str.FindFirstFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e1d
mov eax, dword [0x452b68]
mov dword [ebx], eax
push str.GetFileInformationByHandle
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e34
mov edx, dword [0x452b4c]
mov dword [ebx], edx
cmp byte [ebp + 0xc], 1
jae 0x404145
push str._lclose
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e55
mov ecx, dword [0x452b28]
mov dword [ebx], ecx
push str._lread
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e6b
mov eax, dword [0x452b30]
mov dword [ebx], eax
push str._llseek
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e82
mov edx, dword [0x452b2c]
mov dword [ebx], edx
push str.CloseHandle
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e99
mov ecx, dword [0x452af4]
mov dword [ebx], ecx
push str.SetFilePointerEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403eaf
mov eax, dword [0x452b0c]
mov dword [ebx], eax
push str.SetFilePointer
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403ec6
mov edx, dword [0x452b08]
mov dword [ebx], edx
push str.ReadFile
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403edd
mov ecx, dword [0x452af8]
mov dword [ebx], ecx
push str.ReadFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403ef3
mov eax, dword [0x452afc]
mov dword [ebx], eax
push str.GetFileSizeEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403f0a
mov edx, dword [0x452b04]
mov dword [ebx], edx
push str.GetFileSize
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403f21
mov ecx, dword [0x452b00]
mov dword [ebx], ecx
push str.CreateFileMappingW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403f37
mov eax, dword [0x452b3c]
mov dword [ebx], eax
push str.CreateFileMappingA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403f4e
mov edx, dword [0x452b40]
mov dword [ebx], edx
push str.MapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403f65
mov ecx, dword [0x452b44]
mov dword [ebx], ecx
push str.MapViewOfFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403f7b
mov eax, dword [0x452b48]
mov dword [ebx], eax
push str.UnmapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x404145
mov edx, dword [0x452b50]
mov dword [ebx], edx
jmp 0x404145
cmp dword [ebp - 0x10], 1
jne 0x404145
mov ecx, dword [ebx]
cmp ecx, dword [0x452f74]
jne 0x403fb6
mov eax, dword [0x452b10]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f78]
jne 0x403fc8
mov ecx, dword [0x452b14]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f7c]
jne 0x403fda
mov edx, dword [0x452b24]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452fa8]
jne 0x403feb
mov eax, dword [0x452b38]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452fac]
jne 0x403ffd
mov ecx, dword [0x452b34]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452fc4]
jne 0x40400f
mov edx, dword [0x452b64]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452fc8]
jne 0x404020
mov eax, dword [0x452b68]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452fc0]
jne 0x404032
mov ecx, dword [0x452b4c]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x404145
mov eax, dword [ebx]
cmp eax, dword [0x452f80]
jne 0x40404e
mov edx, dword [0x452b28]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f84]
jne 0x40405f
mov eax, dword [0x452b30]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f88]
jne 0x404071
mov ecx, dword [0x452b2c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f8c]
jne 0x404083
mov edx, dword [0x452af4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f90]
jne 0x404094
mov eax, dword [0x452b0c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f94]
jne 0x4040a6
mov ecx, dword [0x452b08]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f98]
jne 0x4040b8
mov edx, dword [0x452af8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f9c]
jne 0x4040c9
mov eax, dword [0x452afc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452fa0]
jne 0x4040db
mov ecx, dword [0x452b04]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452fa4]
jne 0x4040ed
mov edx, dword [0x452b00]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452fb0]
jne 0x4040fe
mov eax, dword [0x452b3c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452fb4]
jne 0x404110
mov ecx, dword [0x452b40]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452fb8]
jne 0x404122
mov edx, dword [0x452b44]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452fbc]
jne 0x404133
mov eax, dword [0x452b48]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452fcc]
jne 0x404145
mov ecx, dword [0x452b50]
mov dword [ebx], ecx
test ebx, ebx
jne 0x40414d
xor eax, eax
jmp 0x40416f
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403d54
add dword [ebp - 0xc], 0x14
jmp 0x403cbd
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret