Function at 0x404494
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x4ab314], 0
push ebx
push esi
push edi
jne 0x4044ab
call fcn.004042d8
cmp dword [ebp + 8], 0
jne 0x4044b8
xor eax, eax
jmp 0x404a50
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 0x4044d6
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x4044dd
xor eax, eax
jmp 0x404a50
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 0x4044fc
cmp dword [ebx], 0x4550
je 0x404503
xor eax, eax
jmp 0x404a50
cmp word [ebx + 0x14], 0xe0
jne 0x404513
cmp word [ebx + 0x18], 0x10b
je 0x40451d
mov eax, 4
jmp 0x404a50
cmp word [ebx + 6], 1
jae 0x40452b
xor eax, eax
jmp 0x404a50
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 0x404554
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x40455e
mov eax, 8
jmp 0x404a50
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x404574
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x404a4b
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.00406410
add esp, 0xc
test eax, eax
jne 0x4045a6
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.00406410
add esp, 0xc
test eax, eax
jne 0x4045d7
mov dword [ebp - 0x10], 2
jmp 0x4045d7
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 0x404a35
mov edx, 0x80000000
test eax, edx
jne 0x404a26
jmp 0x404858
cmp dword [ebp - 0x10], 1
jne 0x404a26
mov edx, dword [ebx]
cmp edx, dword [0x4ab308]
jne 0x404874
mov ecx, dword [0x4aacf0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab30c]
jne 0x404886
mov edx, dword [0x4aacf4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2b0]
jne 0x404897
mov eax, dword [0x4aace8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2b4]
jne 0x4048a9
mov ecx, dword [0x4aacec]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab2b8]
jne 0x4048bb
mov edx, dword [0x4aacfc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2e4]
jne 0x4048cc
mov eax, dword [0x4aad10]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2e8]
jne 0x4048de
mov ecx, dword [0x4aad0c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab300]
jne 0x4048f0
mov edx, dword [0x4aad40]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab304]
jne 0x404901
mov eax, dword [0x4aad44]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2fc]
jne 0x404913
mov ecx, dword [0x4aad24]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x404a26
mov eax, dword [ebx]
cmp eax, dword [0x4ab2bc]
jne 0x40492f
mov edx, dword [0x4aad00]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2c0]
jne 0x404940
mov eax, dword [0x4aad08]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2c4]
jne 0x404952
mov ecx, dword [0x4aad04]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab2c8]
jne 0x404964
mov edx, dword [0x4aaccc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2cc]
jne 0x404975
mov eax, dword [0x4aace4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2d0]
jne 0x404987
mov ecx, dword [0x4aace0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab2d4]
jne 0x404999
mov edx, dword [0x4aacd0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2d8]
jne 0x4049aa
mov eax, dword [0x4aacd4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2dc]
jne 0x4049bc
mov ecx, dword [0x4aacdc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab2e0]
jne 0x4049ce
mov edx, dword [0x4aacd8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2ec]
jne 0x4049df
mov eax, dword [0x4aad14]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2f0]
jne 0x4049f1
mov ecx, dword [0x4aad18]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab2f4]
jne 0x404a03
mov edx, dword [0x4aad1c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2f8]
jne 0x404a14
mov eax, dword [0x4aad20]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab310]
jne 0x404a26
mov ecx, dword [0x4aad28]
mov dword [ebx], ecx
test ebx, ebx
jne 0x404a2e
xor eax, eax
jmp 0x404a50
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x4045f1
add dword [ebp - 0xc], 0x14
jmp 0x40455e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret