Function at 0x403b48
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x453630], 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
jne 0x403b62
call fcn.0040398c
test ebx, ebx
jne 0x403b6d
xor eax, eax
jmp 0x404114
mov dword [ebp - 8], ebx
push 0x40
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_IsBadReadPtr
dec eax
je 0x403b88
mov ecx, dword [ebp - 8]
cmp word [ecx], 0x5a4d
je 0x403b8f
xor eax, eax
jmp 0x404114
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 0x403bae
cmp dword [ebx], 0x4550
je 0x403bb5
xor eax, eax
jmp 0x404114
cmp word [ebx + 0x14], 0xe0
jne 0x403bc5
cmp word [ebx + 0x18], 0x10b
je 0x403bcf
mov eax, 4
jmp 0x404114
cmp word [ebx + 6], 1
jae 0x403bdd
xor eax, eax
jmp 0x404114
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 0x403c07
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
jmp 0x403c11
mov eax, 8
jmp 0x404114
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
jne 0x403c27
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x40410f
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.00405858
add esp, 0xc
test eax, eax
jne 0x403c59
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.00405858
add esp, 0xc
test eax, eax
jne 0x403c7d
mov dword [ebp - 0x10], 2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
test eax, eax
je 0x403c8e
add eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jmp 0x403c9a
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 0x4040f9
mov edx, 0x80000000
test eax, edx
jne 0x4040ea
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x403f1c
mov esi, eax
add esi, dword [ebp - 8]
cmp dword [ebp - 0x10], 1
jne 0x4040ea
push str.LoadLibraryA
lea edi, [esi + 2]
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403ce9
mov eax, dword [0x453170]
mov dword [ebx], eax
push str.LoadLibraryW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d00
mov edx, dword [0x453174]
mov dword [ebx], edx
push str.CreateFileA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d17
mov ecx, dword [0x453168]
mov dword [ebx], ecx
push str.CreateFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d2d
mov eax, dword [0x45316c]
mov dword [ebx], eax
push str._lopen
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d44
mov edx, dword [0x45317c]
mov dword [ebx], edx
push str.OpenFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d5b
mov ecx, dword [0x453190]
mov dword [ebx], ecx
push str._lcreat
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d71
mov eax, dword [0x45318c]
mov dword [ebx], eax
push str.FindFirstFileA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d88
mov edx, dword [0x4531bc]
mov dword [ebx], edx
push str.FindFirstFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403d9f
mov ecx, dword [0x4531c0]
mov dword [ebx], ecx
push str.GetFileInformationByHandle
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403db5
mov eax, dword [0x4531a4]
mov dword [ebx], eax
cmp byte [ebp + 0xc], 1
jae 0x4040ea
push str._lclose
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403dd6
mov edx, dword [0x453180]
mov dword [ebx], edx
push str._lread
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403ded
mov ecx, dword [0x453188]
mov dword [ebx], ecx
push str._llseek
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403e03
mov eax, dword [0x453184]
mov dword [ebx], eax
push str.CloseHandle
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e1a
mov edx, dword [0x45314c]
mov dword [ebx], edx
push str.SetFilePointerEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e31
mov ecx, dword [0x453164]
mov dword [ebx], ecx
push str.SetFilePointer
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e47
mov eax, dword [0x453160]
mov dword [ebx], eax
push str.ReadFile
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e5e
mov edx, dword [0x453150]
mov dword [ebx], edx
push str.ReadFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e75
mov ecx, dword [0x453154]
mov dword [ebx], ecx
push str.GetFileSizeEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403e8b
mov eax, dword [0x45315c]
mov dword [ebx], eax
push str.GetFileSize
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403ea2
mov edx, dword [0x453158]
mov dword [ebx], edx
push str.CreateFileMappingW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403eb9
mov ecx, dword [0x453194]
mov dword [ebx], ecx
push str.CreateFileMappingA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403ecf
mov eax, dword [0x453198]
mov dword [ebx], eax
push str.MapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403ee6
mov edx, dword [0x45319c]
mov dword [ebx], edx
push str.MapViewOfFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403efd
mov ecx, dword [0x4531a0]
mov dword [ebx], ecx
push str.UnmapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x4040ea
mov eax, dword [0x4531a8]
mov dword [ebx], eax
jmp 0x4040ea
cmp dword [ebp - 0x10], 1
jne 0x4040ea
mov edx, dword [ebx]
cmp edx, dword [0x453624]
jne 0x403f38
mov ecx, dword [0x453170]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453628]
jne 0x403f4a
mov edx, dword [0x453174]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4535cc]
jne 0x403f5b
mov eax, dword [0x453168]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4535d0]
jne 0x403f6d
mov ecx, dword [0x45316c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4535d4]
jne 0x403f7f
mov edx, dword [0x45317c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453600]
jne 0x403f90
mov eax, dword [0x453190]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453604]
jne 0x403fa2
mov ecx, dword [0x45318c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x45361c]
jne 0x403fb4
mov edx, dword [0x4531bc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453620]
jne 0x403fc5
mov eax, dword [0x4531c0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453618]
jne 0x403fd7
mov ecx, dword [0x4531a4]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x4040ea
mov eax, dword [ebx]
cmp eax, dword [0x4535d8]
jne 0x403ff3
mov edx, dword [0x453180]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4535dc]
jne 0x404004
mov eax, dword [0x453188]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4535e0]
jne 0x404016
mov ecx, dword [0x453184]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4535e4]
jne 0x404028
mov edx, dword [0x45314c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4535e8]
jne 0x404039
mov eax, dword [0x453164]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4535ec]
jne 0x40404b
mov ecx, dword [0x453160]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4535f0]
jne 0x40405d
mov edx, dword [0x453150]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4535f4]
jne 0x40406e
mov eax, dword [0x453154]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4535f8]
jne 0x404080
mov ecx, dword [0x45315c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4535fc]
jne 0x404092
mov edx, dword [0x453158]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453608]
jne 0x4040a3
mov eax, dword [0x453194]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x45360c]
jne 0x4040b5
mov ecx, dword [0x453198]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453610]
jne 0x4040c7
mov edx, dword [0x45319c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453614]
jne 0x4040d8
mov eax, dword [0x4531a0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x45362c]
jne 0x4040ea
mov ecx, dword [0x4531a8]
mov dword [ebx], ecx
test ebx, ebx
jne 0x4040f2
xor eax, eax
jmp 0x404114
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403ca8
add dword [ebp - 0xc], 0x14
jmp 0x403c11
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret