Function at 0x40424c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x46f5f8], 0
push ebx
push esi
push edi
jne 0x404263
call fcn.00404090
cmp dword [ebp + 8], 0
jne 0x404270
xor eax, eax
jmp 0x404808
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 0x40428e
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x404295
xor eax, eax
jmp 0x404808
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 0x4042b4
cmp dword [ebx], 0x4550
je 0x4042bb
xor eax, eax
jmp 0x404808
cmp word [ebx + 0x14], 0xe0
jne 0x4042cb
cmp word [ebx + 0x18], 0x10b
je 0x4042d5
mov eax, 4
jmp 0x404808
cmp word [ebx + 6], 1
jae 0x4042e3
xor eax, eax
jmp 0x404808
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 0x40430c
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x404316
mov eax, 8
jmp 0x404808
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x40432c
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x404803
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.00405f6c
add esp, 0xc
test eax, eax
jne 0x40435e
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.00405f6c
add esp, 0xc
test eax, eax
jne 0x40438f
mov dword [ebp - 0x10], 2
jmp 0x40438f
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 0x4047ed
mov edx, 0x80000000
test eax, edx
jne 0x4047de
jmp 0x404610
cmp dword [ebp - 0x10], 1
jne 0x4047de
mov edx, dword [ebx]
cmp edx, dword [0x46f5ec]
jne 0x40462c
mov ecx, dword [0x46f11c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f5f0]
jne 0x40463e
mov edx, dword [0x46f120]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f594]
jne 0x40464f
mov eax, dword [0x46f114]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f598]
jne 0x404661
mov ecx, dword [0x46f118]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f59c]
jne 0x404673
mov edx, dword [0x46f128]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f5c8]
jne 0x404684
mov eax, dword [0x46f13c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f5cc]
jne 0x404696
mov ecx, dword [0x46f138]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f5e4]
jne 0x4046a8
mov edx, dword [0x46f16c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f5e8]
jne 0x4046b9
mov eax, dword [0x46f170]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f5e0]
jne 0x4046cb
mov ecx, dword [0x46f150]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x4047de
mov eax, dword [ebx]
cmp eax, dword [0x46f5a0]
jne 0x4046e7
mov edx, dword [0x46f12c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f5a4]
jne 0x4046f8
mov eax, dword [0x46f134]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f5a8]
jne 0x40470a
mov ecx, dword [0x46f130]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f5ac]
jne 0x40471c
mov edx, dword [0x46f0f8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f5b0]
jne 0x40472d
mov eax, dword [0x46f110]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f5b4]
jne 0x40473f
mov ecx, dword [0x46f10c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f5b8]
jne 0x404751
mov edx, dword [0x46f0fc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f5bc]
jne 0x404762
mov eax, dword [0x46f100]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f5c0]
jne 0x404774
mov ecx, dword [0x46f108]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f5c4]
jne 0x404786
mov edx, dword [0x46f104]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f5d0]
jne 0x404797
mov eax, dword [0x46f140]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f5d4]
jne 0x4047a9
mov ecx, dword [0x46f144]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f5d8]
jne 0x4047bb
mov edx, dword [0x46f148]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f5dc]
jne 0x4047cc
mov eax, dword [0x46f14c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f5f4]
jne 0x4047de
mov ecx, dword [0x46f154]
mov dword [ebx], ecx
test ebx, ebx
jne 0x4047e6
xor eax, eax
jmp 0x404808
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x4043a9
add dword [ebp - 0xc], 0x14
jmp 0x404316
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret