Function at 0x403b24
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x452fbc], 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
jne 0x403b3e
call fcn.0040398c
test ebx, ebx
jne 0x403b49
xor eax, eax
jmp 0x40409f
mov dword [ebp - 8], ebx
push 0x40
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_IsBadReadPtr
dec eax
je 0x403b64
mov ecx, dword [ebp - 8]
cmp word [ecx], 0x5a4d
je 0x403b6b
xor eax, eax
jmp 0x40409f
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 0x403b8a
cmp dword [ebx], 0x4550
je 0x403b91
xor eax, eax
jmp 0x40409f
cmp word [ebx + 0x14], 0xe0
jne 0x403ba1
cmp word [ebx + 0x18], 0x10b
je 0x403bab
mov eax, 4
jmp 0x40409f
cmp word [ebx + 6], 1
jae 0x403bb9
xor eax, eax
jmp 0x40409f
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 0x403be3
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
jmp 0x403bed
mov eax, 8
jmp 0x40409f
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
jne 0x403c03
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x40409a
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.004057a8
add esp, 0xc
test eax, eax
jne 0x403c35
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.004057a8
add esp, 0xc
test eax, eax
jne 0x403c59
mov dword [ebp - 0x10], 2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
test eax, eax
je 0x403c6a
add eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jmp 0x403c76
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 0x404084
mov edx, 0x80000000
test eax, edx
jne 0x404075
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x403ecb
mov esi, eax
add esi, dword [ebp - 8]
cmp dword [ebp - 0x10], 1
jne 0x404075
push str.CreateFileA
lea edi, [esi + 2]
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403cc5
mov eax, dword [0x452afc]
mov dword [ebx], eax
push str.CreateFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403cdc
mov edx, dword [0x452b00]
mov dword [ebx], edx
push str._lopen
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403cf3
mov ecx, dword [0x452b10]
mov dword [ebx], ecx
push str.OpenFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d09
mov eax, dword [0x452b24]
mov dword [ebx], eax
push str._lcreat
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d20
mov edx, dword [0x452b20]
mov dword [ebx], edx
push str.FindFirstFileA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d37
mov ecx, dword [0x452b50]
mov dword [ebx], ecx
push str.FindFirstFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d4d
mov eax, dword [0x452b54]
mov dword [ebx], eax
push str.GetFileInformationByHandle
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d64
mov edx, dword [0x452b38]
mov dword [ebx], edx
cmp byte [ebp + 0xc], 1
jae 0x404075
push str._lclose
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d85
mov ecx, dword [0x452b14]
mov dword [ebx], ecx
push str._lread
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d9b
mov eax, dword [0x452b1c]
mov dword [ebx], eax
push str._llseek
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403db2
mov edx, dword [0x452b18]
mov dword [ebx], edx
push str.CloseHandle
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403dc9
mov ecx, dword [0x452ae0]
mov dword [ebx], ecx
push str.SetFilePointerEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403ddf
mov eax, dword [0x452af8]
mov dword [ebx], eax
push str.SetFilePointer
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403df6
mov edx, dword [0x452af4]
mov dword [ebx], edx
push str.ReadFile
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e0d
mov ecx, dword [0x452ae4]
mov dword [ebx], ecx
push str.ReadFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e23
mov eax, dword [0x452ae8]
mov dword [ebx], eax
push str.GetFileSizeEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e3a
mov edx, dword [0x452af0]
mov dword [ebx], edx
push str.GetFileSize
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e51
mov ecx, dword [0x452aec]
mov dword [ebx], ecx
push str.CreateFileMappingW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e67
mov eax, dword [0x452b28]
mov dword [ebx], eax
push str.CreateFileMappingA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e7e
mov edx, dword [0x452b2c]
mov dword [ebx], edx
push str.MapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e95
mov ecx, dword [0x452b30]
mov dword [ebx], ecx
push str.MapViewOfFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403eab
mov eax, dword [0x452b34]
mov dword [ebx], eax
push str.UnmapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x404075
mov edx, dword [0x452b3c]
mov dword [ebx], edx
jmp 0x404075
cmp dword [ebp - 0x10], 1
jne 0x404075
mov ecx, dword [ebx]
cmp ecx, dword [0x452f60]
jne 0x403ee6
mov eax, dword [0x452afc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f64]
jne 0x403ef8
mov ecx, dword [0x452b00]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f68]
jne 0x403f0a
mov edx, dword [0x452b10]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f94]
jne 0x403f1b
mov eax, dword [0x452b24]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f98]
jne 0x403f2d
mov ecx, dword [0x452b20]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452fb0]
jne 0x403f3f
mov edx, dword [0x452b50]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452fb4]
jne 0x403f50
mov eax, dword [0x452b54]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452fac]
jne 0x403f62
mov ecx, dword [0x452b38]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x404075
mov eax, dword [ebx]
cmp eax, dword [0x452f6c]
jne 0x403f7e
mov edx, dword [0x452b14]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f70]
jne 0x403f8f
mov eax, dword [0x452b1c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f74]
jne 0x403fa1
mov ecx, dword [0x452b18]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f78]
jne 0x403fb3
mov edx, dword [0x452ae0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f7c]
jne 0x403fc4
mov eax, dword [0x452af8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f80]
jne 0x403fd6
mov ecx, dword [0x452af4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f84]
jne 0x403fe8
mov edx, dword [0x452ae4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f88]
jne 0x403ff9
mov eax, dword [0x452ae8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f8c]
jne 0x40400b
mov ecx, dword [0x452af0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f90]
jne 0x40401d
mov edx, dword [0x452aec]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f9c]
jne 0x40402e
mov eax, dword [0x452b28]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452fa0]
jne 0x404040
mov ecx, dword [0x452b2c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452fa4]
jne 0x404052
mov edx, dword [0x452b30]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452fa8]
jne 0x404063
mov eax, dword [0x452b34]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452fb8]
jne 0x404075
mov ecx, dword [0x452b3c]
mov dword [ebx], ecx
test ebx, ebx
jne 0x40407d
xor eax, eax
jmp 0x40409f
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403c84
add dword [ebp - 0xc], 0x14
jmp 0x403bed
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret