Function at 0x403624
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x450d60], 0
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
jne 0x40363e
call fcn.0040348c
test ebx, ebx
jne 0x403649
xor eax, eax
jmp 0x403b9f
mov dword [ebp - 8], ebx
push 0x40
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.DLL_IsBadReadPtr
dec eax
je 0x403664
mov ecx, dword [ebp - 8]
cmp word [ecx], 0x5a4d
je 0x40366b
xor eax, eax
jmp 0x403b9f
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 0x40368a
cmp dword [ebx], 0x4550
je 0x403691
xor eax, eax
jmp 0x403b9f
cmp word [ebx + 0x14], 0xe0
jne 0x4036a1
cmp word [ebx + 0x18], 0x10b
je 0x4036ab
mov eax, 4
jmp 0x403b9f
cmp word [ebx + 6], 1
jae 0x4036b9
xor eax, eax
jmp 0x403b9f
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 0x4036e3
mov edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
jmp 0x4036ed
mov eax, 8
jmp 0x403b9f
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
jne 0x403703
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x403b9a
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.004052a8
add esp, 0xc
test eax, eax
jne 0x403735
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.004052a8
add esp, 0xc
test eax, eax
jne 0x403759
mov dword [ebp - 0x10], 2
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
test eax, eax
je 0x40376a
add eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
jmp 0x403776
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 0x403b84
mov edx, 0x80000000
test eax, edx
jne 0x403b75
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0
je 0x4039cb
mov esi, eax
add esi, dword [ebp - 8]
cmp dword [ebp - 0x10], 1
jne 0x403b75
push str.CreateFileA
lea edi, [esi + 2]
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x4037c5
mov eax, dword [0x4508a0]
mov dword [ebx], eax
push str.CreateFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x4037dc
mov edx, dword [0x4508a4]
mov dword [ebx], edx
push str._lopen
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x4037f3
mov ecx, dword [0x4508b4]
mov dword [ebx], ecx
push str.OpenFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403809
mov eax, dword [0x4508c8]
mov dword [ebx], eax
push str._lcreat
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403820
mov edx, dword [0x4508c4]
mov dword [ebx], edx
push str.FindFirstFileA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403837
mov ecx, dword [0x4508f4]
mov dword [ebx], ecx
push str.FindFirstFileW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x40384d
mov eax, dword [0x4508f8]
mov dword [ebx], eax
push str.GetFileInformationByHandle
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403864
mov edx, dword [0x4508dc]
mov dword [ebx], edx
cmp byte [ebp + 0xc], 1
jae 0x403b75
push str._lclose
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403885
mov ecx, dword [0x4508b8]
mov dword [ebx], ecx
push str._lread
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x40389b
mov eax, dword [0x4508c0]
mov dword [ebx], eax
push str._llseek
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x4038b2
mov edx, dword [0x4508bc]
mov dword [ebx], edx
push str.CloseHandle
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x4038c9
mov ecx, dword [0x450884]
mov dword [ebx], ecx
push str.SetFilePointerEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x4038df
mov eax, dword [0x45089c]
mov dword [ebx], eax
push str.SetFilePointer
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x4038f6
mov edx, dword [0x450898]
mov dword [ebx], edx
push str.ReadFile
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x40390d
mov ecx, dword [0x450888]
mov dword [ebx], ecx
push str.ReadFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403923
mov eax, dword [0x45088c]
mov dword [ebx], eax
push str.GetFileSizeEx
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x40393a
mov edx, dword [0x450894]
mov dword [ebx], edx
push str.GetFileSize
push edi
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403951
mov ecx, dword [0x450890]
mov dword [ebx], ecx
push str.CreateFileMappingW
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403967
mov eax, dword [0x4508cc]
mov dword [ebx], eax
push str.CreateFileMappingA
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x40397e
mov edx, dword [0x4508d0]
mov dword [ebx], edx
push str.MapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403995
mov ecx, dword [0x4508d4]
mov dword [ebx], ecx
push str.MapViewOfFileEx
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x4039ab
mov eax, dword [0x4508d8]
mov dword [ebx], eax
push str.UnmapViewOfFile
push edi
call sub.KERNEL32.DLL_lstrcmpA
test eax, eax
jne 0x403b75
mov edx, dword [0x4508e0]
mov dword [ebx], edx
jmp 0x403b75
cmp dword [ebp - 0x10], 1
jne 0x403b75
mov ecx, dword [ebx]
cmp ecx, dword [0x450d04]
jne 0x4039e6
mov eax, dword [0x4508a0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450d08]
jne 0x4039f8
mov ecx, dword [0x4508a4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450d0c]
jne 0x403a0a
mov edx, dword [0x4508b4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450d38]
jne 0x403a1b
mov eax, dword [0x4508c8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450d3c]
jne 0x403a2d
mov ecx, dword [0x4508c4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450d54]
jne 0x403a3f
mov edx, dword [0x4508f4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450d58]
jne 0x403a50
mov eax, dword [0x4508f8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450d50]
jne 0x403a62
mov ecx, dword [0x4508dc]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x403b75
mov eax, dword [ebx]
cmp eax, dword [0x450d10]
jne 0x403a7e
mov edx, dword [0x4508b8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450d14]
jne 0x403a8f
mov eax, dword [0x4508c0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450d18]
jne 0x403aa1
mov ecx, dword [0x4508bc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450d1c]
jne 0x403ab3
mov edx, dword [0x450884]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450d20]
jne 0x403ac4
mov eax, dword [0x45089c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450d24]
jne 0x403ad6
mov ecx, dword [0x450898]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450d28]
jne 0x403ae8
mov edx, dword [0x450888]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450d2c]
jne 0x403af9
mov eax, dword [0x45088c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450d30]
jne 0x403b0b
mov ecx, dword [0x450894]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450d34]
jne 0x403b1d
mov edx, dword [0x450890]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450d40]
jne 0x403b2e
mov eax, dword [0x4508cc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450d44]
jne 0x403b40
mov ecx, dword [0x4508d0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450d48]
jne 0x403b52
mov edx, dword [0x4508d4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450d4c]
jne 0x403b63
mov eax, dword [0x4508d8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450d5c]
jne 0x403b75
mov ecx, dword [0x4508e0]
mov dword [ebx], ecx
test ebx, ebx
jne 0x403b7d
xor eax, eax
jmp 0x403b9f
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403784
add dword [ebp - 0xc], 0x14
jmp 0x4036ed
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret