Function at 0x403ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x452f9c], 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
jne 0x403aca
call fcn.00403918
test ebx, ebx
jne 0x403ad5
xor eax, eax
jmp 0x40402b
mov dword [ebp - 8], ebx
push 0x40
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_IsBadReadPtr
dec eax
je 0x403af0
mov ecx, dword [ebp - 8]
cmp word [ecx], 0x5a4d
je 0x403af7
xor eax, eax
jmp 0x40402b
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 0x403b16
cmp dword [ebx], 0x4550
je 0x403b1d
xor eax, eax
jmp 0x40402b
cmp word [ebx + 0x14], 0xe0
jne 0x403b2d
cmp word [ebx + 0x18], 0x10b
je 0x403b37
mov eax, 4
jmp 0x40402b
cmp word [ebx + 6], 1
jae 0x403b45
xor eax, eax
jmp 0x40402b
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 0x403b6f
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
jmp 0x403b79
mov eax, 8
jmp 0x40402b
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
jne 0x403b8f
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x404026
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.00405734
add esp, 0xc
test eax, eax
jne 0x403bc1
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.00405734
add esp, 0xc
test eax, eax
jne 0x403be5
mov dword [ebp - 0x10], 2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
test eax, eax
je 0x403bf6
add eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jmp 0x403c02
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 0x404010
mov edx, 0x80000000
test eax, edx
jne 0x404001
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x403e57
mov esi, eax
add esi, dword [ebp - 8]
cmp dword [ebp - 0x10], 1
jne 0x404001
push str.CreateFileA
lea edi, [esi + 2]
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403c51
mov eax, dword [0x452adc]
mov dword [ebx], eax
push str.CreateFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403c68
mov edx, dword [0x452ae0]
mov dword [ebx], edx
push str._lopen
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403c7f
mov ecx, dword [0x452af0]
mov dword [ebx], ecx
push str.OpenFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403c95
mov eax, dword [0x452b04]
mov dword [ebx], eax
push str._lcreat
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403cac
mov edx, dword [0x452b00]
mov dword [ebx], edx
push str.FindFirstFileA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403cc3
mov ecx, dword [0x452b30]
mov dword [ebx], ecx
push str.FindFirstFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403cd9
mov eax, dword [0x452b34]
mov dword [ebx], eax
push str.GetFileInformationByHandle
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403cf0
mov edx, dword [0x452b18]
mov dword [ebx], edx
cmp byte [ebp + 0xc], 1
jae 0x404001
push str._lclose
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d11
mov ecx, dword [0x452af4]
mov dword [ebx], ecx
push str._lread
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d27
mov eax, dword [0x452afc]
mov dword [ebx], eax
push str._llseek
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d3e
mov edx, dword [0x452af8]
mov dword [ebx], edx
push str.CloseHandle
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403d55
mov ecx, dword [0x452ac0]
mov dword [ebx], ecx
push str.SetFilePointerEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403d6b
mov eax, dword [0x452ad8]
mov dword [ebx], eax
push str.SetFilePointer
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403d82
mov edx, dword [0x452ad4]
mov dword [ebx], edx
push str.ReadFile
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403d99
mov ecx, dword [0x452ac4]
mov dword [ebx], ecx
push str.ReadFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403daf
mov eax, dword [0x452ac8]
mov dword [ebx], eax
push str.GetFileSizeEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403dc6
mov edx, dword [0x452ad0]
mov dword [ebx], edx
push str.GetFileSize
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403ddd
mov ecx, dword [0x452acc]
mov dword [ebx], ecx
push str.CreateFileMappingW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403df3
mov eax, dword [0x452b08]
mov dword [ebx], eax
push str.CreateFileMappingA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e0a
mov edx, dword [0x452b0c]
mov dword [ebx], edx
push str.MapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e21
mov ecx, dword [0x452b10]
mov dword [ebx], ecx
push str.MapViewOfFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e37
mov eax, dword [0x452b14]
mov dword [ebx], eax
push str.UnmapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x404001
mov edx, dword [0x452b1c]
mov dword [ebx], edx
jmp 0x404001
cmp dword [ebp - 0x10], 1
jne 0x404001
mov ecx, dword [ebx]
cmp ecx, dword [0x452f40]
jne 0x403e72
mov eax, dword [0x452adc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f44]
jne 0x403e84
mov ecx, dword [0x452ae0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f48]
jne 0x403e96
mov edx, dword [0x452af0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f74]
jne 0x403ea7
mov eax, dword [0x452b04]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f78]
jne 0x403eb9
mov ecx, dword [0x452b00]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f90]
jne 0x403ecb
mov edx, dword [0x452b30]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f94]
jne 0x403edc
mov eax, dword [0x452b34]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f8c]
jne 0x403eee
mov ecx, dword [0x452b18]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x404001
mov eax, dword [ebx]
cmp eax, dword [0x452f4c]
jne 0x403f0a
mov edx, dword [0x452af4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f50]
jne 0x403f1b
mov eax, dword [0x452afc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f54]
jne 0x403f2d
mov ecx, dword [0x452af8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f58]
jne 0x403f3f
mov edx, dword [0x452ac0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f5c]
jne 0x403f50
mov eax, dword [0x452ad8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f60]
jne 0x403f62
mov ecx, dword [0x452ad4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f64]
jne 0x403f74
mov edx, dword [0x452ac4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f68]
jne 0x403f85
mov eax, dword [0x452ac8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f6c]
jne 0x403f97
mov ecx, dword [0x452ad0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f70]
jne 0x403fa9
mov edx, dword [0x452acc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f7c]
jne 0x403fba
mov eax, dword [0x452b08]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f80]
jne 0x403fcc
mov ecx, dword [0x452b0c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x452f84]
jne 0x403fde
mov edx, dword [0x452b10]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x452f88]
jne 0x403fef
mov eax, dword [0x452b14]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x452f98]
jne 0x404001
mov ecx, dword [0x452b1c]
mov dword [ebx], ecx
test ebx, ebx
jne 0x404009
xor eax, eax
jmp 0x40402b
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403c10
add dword [ebp - 0xc], 0x14
jmp 0x403b79
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret