Function at 0x4044a4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x4aa3a0], 0
push ebx
push esi
push edi
jne 0x4044bb
call fcn.004042e8
cmp dword [ebp + 8], 0
jne 0x4044c8
xor eax, eax
jmp 0x404a60
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
push 0x40
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.DLL_IsBadReadPtr
dec eax
je 0x4044e6
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x4044ed
xor eax, eax
jmp 0x404a60
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 0x40450c
cmp dword [ebx], 0x4550
je 0x404513
xor eax, eax
jmp 0x404a60
cmp word [ebx + 0x14], 0xe0
jne 0x404523
cmp word [ebx + 0x18], 0x10b
je 0x40452d
mov eax, 4
jmp 0x404a60
cmp word [ebx + 6], 1
jae 0x40453b
xor eax, eax
jmp 0x404a60
mov edx, dword [ebp - 8]
mov ebx, dword [edx + 0x3c]
add ebx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov edx, dword [ebx + 0x80]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x404564
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x40456e
mov eax, 8
jmp 0x404a60
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x404584
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x404a5b
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 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.00406420
add esp, 0xc
test eax, eax
jne 0x4045b6
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.00406420
add esp, 0xc
test eax, eax
jne 0x4045e7
mov dword [ebp - 0x10], 2
jmp 0x4045e7
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x10]
add edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ecx + 0x10]
add ebx, dword [ebp - 8]
jmp 0x404a45
mov edx, 0x80000000
test eax, edx
jne 0x404a36
jmp 0x404868
cmp dword [ebp - 0x10], 1
jne 0x404a36
mov edx, dword [ebx]
cmp edx, dword [0x4aa394]
jne 0x404884
mov ecx, dword [0x4a9d7c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4aa398]
jne 0x404896
mov edx, dword [0x4a9d80]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4aa33c]
jne 0x4048a7
mov eax, dword [0x4a9d74]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4aa340]
jne 0x4048b9
mov ecx, dword [0x4a9d78]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4aa344]
jne 0x4048cb
mov edx, dword [0x4a9d88]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4aa370]
jne 0x4048dc
mov eax, dword [0x4a9d9c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4aa374]
jne 0x4048ee
mov ecx, dword [0x4a9d98]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4aa38c]
jne 0x404900
mov edx, dword [0x4a9dcc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4aa390]
jne 0x404911
mov eax, dword [0x4a9dd0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4aa388]
jne 0x404923
mov ecx, dword [0x4a9db0]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x404a36
mov eax, dword [ebx]
cmp eax, dword [0x4aa348]
jne 0x40493f
mov edx, dword [0x4a9d8c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4aa34c]
jne 0x404950
mov eax, dword [0x4a9d94]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4aa350]
jne 0x404962
mov ecx, dword [0x4a9d90]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4aa354]
jne 0x404974
mov edx, dword [0x4a9d58]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4aa358]
jne 0x404985
mov eax, dword [0x4a9d70]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4aa35c]
jne 0x404997
mov ecx, dword [0x4a9d6c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4aa360]
jne 0x4049a9
mov edx, dword [0x4a9d5c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4aa364]
jne 0x4049ba
mov eax, dword [0x4a9d60]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4aa368]
jne 0x4049cc
mov ecx, dword [0x4a9d68]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4aa36c]
jne 0x4049de
mov edx, dword [0x4a9d64]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4aa378]
jne 0x4049ef
mov eax, dword [0x4a9da0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4aa37c]
jne 0x404a01
mov ecx, dword [0x4a9da4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4aa380]
jne 0x404a13
mov edx, dword [0x4a9da8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4aa384]
jne 0x404a24
mov eax, dword [0x4a9dac]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4aa39c]
jne 0x404a36
mov ecx, dword [0x4a9db4]
mov dword [ebx], ecx
test ebx, ebx
jne 0x404a3e
xor eax, eax
jmp 0x404a60
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x404601
add dword [ebp - 0xc], 0x14
jmp 0x40456e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret