Function at 0x4042c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x46f66c], 0
push ebx
push esi
push edi
jne 0x4042d7
call fcn.00404104
cmp dword [ebp + 8], 0
jne 0x4042e4
xor eax, eax
jmp 0x40487c
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 0x404302
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x404309
xor eax, eax
jmp 0x40487c
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 0x404328
cmp dword [ebx], 0x4550
je 0x40432f
xor eax, eax
jmp 0x40487c
cmp word [ebx + 0x14], 0xe0
jne 0x40433f
cmp word [ebx + 0x18], 0x10b
je 0x404349
mov eax, 4
jmp 0x40487c
cmp word [ebx + 6], 1
jae 0x404357
xor eax, eax
jmp 0x40487c
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 0x404380
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x40438a
mov eax, 8
jmp 0x40487c
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x4043a0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x404877
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.00405fe0
add esp, 0xc
test eax, eax
jne 0x4043d2
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.00405fe0
add esp, 0xc
test eax, eax
jne 0x404403
mov dword [ebp - 0x10], 2
jmp 0x404403
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 0x404861
mov edx, 0x80000000
test eax, edx
jne 0x404852
jmp 0x404684
cmp dword [ebp - 0x10], 1
jne 0x404852
mov edx, dword [ebx]
cmp edx, dword [0x46f660]
jne 0x4046a0
mov ecx, dword [0x46f190]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f664]
jne 0x4046b2
mov edx, dword [0x46f194]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f608]
jne 0x4046c3
mov eax, dword [0x46f188]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f60c]
jne 0x4046d5
mov ecx, dword [0x46f18c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f610]
jne 0x4046e7
mov edx, dword [0x46f19c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f63c]
jne 0x4046f8
mov eax, dword [0x46f1b0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f640]
jne 0x40470a
mov ecx, dword [0x46f1ac]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f658]
jne 0x40471c
mov edx, dword [0x46f1e0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f65c]
jne 0x40472d
mov eax, dword [0x46f1e4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f654]
jne 0x40473f
mov ecx, dword [0x46f1c4]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x404852
mov eax, dword [ebx]
cmp eax, dword [0x46f614]
jne 0x40475b
mov edx, dword [0x46f1a0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f618]
jne 0x40476c
mov eax, dword [0x46f1a8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f61c]
jne 0x40477e
mov ecx, dword [0x46f1a4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f620]
jne 0x404790
mov edx, dword [0x46f16c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f624]
jne 0x4047a1
mov eax, dword [0x46f184]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f628]
jne 0x4047b3
mov ecx, dword [0x46f180]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f62c]
jne 0x4047c5
mov edx, dword [0x46f170]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f630]
jne 0x4047d6
mov eax, dword [0x46f174]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f634]
jne 0x4047e8
mov ecx, dword [0x46f17c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f638]
jne 0x4047fa
mov edx, dword [0x46f178]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f644]
jne 0x40480b
mov eax, dword [0x46f1b4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f648]
jne 0x40481d
mov ecx, dword [0x46f1b8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f64c]
jne 0x40482f
mov edx, dword [0x46f1bc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f650]
jne 0x404840
mov eax, dword [0x46f1c0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f668]
jne 0x404852
mov ecx, dword [0x46f1c8]
mov dword [ebx], ecx
test ebx, ebx
jne 0x40485a
xor eax, eax
jmp 0x40487c
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x40441d
add dword [ebp - 0xc], 0x14
jmp 0x40438a
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret