Function at 0x403aa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x41922c], 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
jne 0x403aba
call fcn.00403908
test ebx, ebx
jne 0x403ac5
xor eax, eax
jmp 0x40401b
mov dword [ebp - 8], ebx
push 0x40
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_IsBadReadPtr
dec eax
je 0x403ae0
mov ecx, dword [ebp - 8]
cmp word [ecx], 0x5a4d
je 0x403ae7
xor eax, eax
jmp 0x40401b
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 0x403b06
cmp dword [ebx], 0x4550
je 0x403b0d
xor eax, eax
jmp 0x40401b
cmp word [ebx + 0x14], 0xe0
jne 0x403b1d
cmp word [ebx + 0x18], 0x10b
je 0x403b27
mov eax, 4
jmp 0x40401b
cmp word [ebx + 6], 1
jae 0x403b35
xor eax, eax
jmp 0x40401b
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 0x403b5f
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
jmp 0x403b69
mov eax, 8
jmp 0x40401b
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
jne 0x403b7f
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x404016
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.00405724
add esp, 0xc
test eax, eax
jne 0x403bb1
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.00405724
add esp, 0xc
test eax, eax
jne 0x403bd5
mov dword [ebp - 0x10], 2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
test eax, eax
je 0x403be6
add eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jmp 0x403bf2
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 0x404000
mov edx, 0x80000000
test eax, edx
jne 0x403ff1
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x403e47
mov esi, eax
add esi, dword [ebp - 8]
cmp dword [ebp - 0x10], 1
jne 0x403ff1
push str.CreateFileA
lea edi, [esi + 2]
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403c41
mov eax, dword [0x418d70]
mov dword [ebx], eax
push str.CreateFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403c58
mov edx, dword [0x418d74]
mov dword [ebx], edx
push str._lopen
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403c6f
mov ecx, dword [0x418d84]
mov dword [ebx], ecx
push str.OpenFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403c85
mov eax, dword [0x418d98]
mov dword [ebx], eax
push str._lcreat
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403c9c
mov edx, dword [0x418d94]
mov dword [ebx], edx
push str.FindFirstFileA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403cb3
mov ecx, dword [0x418dc4]
mov dword [ebx], ecx
push str.FindFirstFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403cc9
mov eax, dword [0x418dc8]
mov dword [ebx], eax
push str.GetFileInformationByHandle
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403ce0
mov edx, dword [0x418dac]
mov dword [ebx], edx
cmp byte [ebp + 0xc], 1
jae 0x403ff1
push str._lclose
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d01
mov ecx, dword [0x418d88]
mov dword [ebx], ecx
push str._lread
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d17
mov eax, dword [0x418d90]
mov dword [ebx], eax
push str._llseek
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d2e
mov edx, dword [0x418d8c]
mov dword [ebx], edx
push str.CloseHandle
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403d45
mov ecx, dword [0x418d54]
mov dword [ebx], ecx
push str.SetFilePointerEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403d5b
mov eax, dword [0x418d6c]
mov dword [ebx], eax
push str.SetFilePointer
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403d72
mov edx, dword [0x418d68]
mov dword [ebx], edx
push str.ReadFile
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403d89
mov ecx, dword [0x418d58]
mov dword [ebx], ecx
push str.ReadFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403d9f
mov eax, dword [0x418d5c]
mov dword [ebx], eax
push str.GetFileSizeEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403db6
mov edx, dword [0x418d64]
mov dword [ebx], edx
push str.GetFileSize
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403dcd
mov ecx, dword [0x418d60]
mov dword [ebx], ecx
push str.CreateFileMappingW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403de3
mov eax, dword [0x418d9c]
mov dword [ebx], eax
push str.CreateFileMappingA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403dfa
mov edx, dword [0x418da0]
mov dword [ebx], edx
push str.MapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e11
mov ecx, dword [0x418da4]
mov dword [ebx], ecx
push str.MapViewOfFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e27
mov eax, dword [0x418da8]
mov dword [ebx], eax
push str.UnmapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403ff1
mov edx, dword [0x418db0]
mov dword [ebx], edx
jmp 0x403ff1
cmp dword [ebp - 0x10], 1
jne 0x403ff1
mov ecx, dword [ebx]
cmp ecx, dword [0x4191d0]
jne 0x403e62
mov eax, dword [0x418d70]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4191d4]
jne 0x403e74
mov ecx, dword [0x418d74]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4191d8]
jne 0x403e86
mov edx, dword [0x418d84]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x419204]
jne 0x403e97
mov eax, dword [0x418d98]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x419208]
jne 0x403ea9
mov ecx, dword [0x418d94]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x419220]
jne 0x403ebb
mov edx, dword [0x418dc4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x419224]
jne 0x403ecc
mov eax, dword [0x418dc8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x41921c]
jne 0x403ede
mov ecx, dword [0x418dac]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x403ff1
mov eax, dword [ebx]
cmp eax, dword [0x4191dc]
jne 0x403efa
mov edx, dword [0x418d88]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4191e0]
jne 0x403f0b
mov eax, dword [0x418d90]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4191e4]
jne 0x403f1d
mov ecx, dword [0x418d8c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4191e8]
jne 0x403f2f
mov edx, dword [0x418d54]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4191ec]
jne 0x403f40
mov eax, dword [0x418d6c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4191f0]
jne 0x403f52
mov ecx, dword [0x418d68]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4191f4]
jne 0x403f64
mov edx, dword [0x418d58]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4191f8]
jne 0x403f75
mov eax, dword [0x418d5c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4191fc]
jne 0x403f87
mov ecx, dword [0x418d64]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x419200]
jne 0x403f99
mov edx, dword [0x418d60]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x41920c]
jne 0x403faa
mov eax, dword [0x418d9c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x419210]
jne 0x403fbc
mov ecx, dword [0x418da0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x419214]
jne 0x403fce
mov edx, dword [0x418da4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x419218]
jne 0x403fdf
mov eax, dword [0x418da8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x419228]
jne 0x403ff1
mov ecx, dword [0x418db0]
mov dword [ebx], ecx
test ebx, ebx
jne 0x403ff9
xor eax, eax
jmp 0x40401b
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403c00
add dword [ebp - 0xc], 0x14
jmp 0x403b69
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret