Function at 0x4042a8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x4b63f8], 0
push ebx
push esi
push edi
jne 0x4042bf
call fcn.004040ec
cmp dword [ebp + 8], 0
jne 0x4042cc
xor eax, eax
jmp 0x404864
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 0x4042ea
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x4042f1
xor eax, eax
jmp 0x404864
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 0x404310
cmp dword [ebx], 0x4550
je 0x404317
xor eax, eax
jmp 0x404864
cmp word [ebx + 0x14], 0xe0
jne 0x404327
cmp word [ebx + 0x18], 0x10b
je 0x404331
mov eax, 4
jmp 0x404864
cmp word [ebx + 6], 1
jae 0x40433f
xor eax, eax
jmp 0x404864
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 0x404368
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x404372
mov eax, 8
jmp 0x404864
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x404388
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x40485f
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.00406218
add esp, 0xc
test eax, eax
jne 0x4043ba
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.00406218
add esp, 0xc
test eax, eax
jne 0x4043eb
mov dword [ebp - 0x10], 2
jmp 0x4043eb
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 0x404849
mov edx, 0x80000000
test eax, edx
jne 0x40483a
jmp 0x40466c
cmp dword [ebp - 0x10], 1
jne 0x40483a
mov edx, dword [ebx]
cmp edx, dword [0x4b63ec]
jne 0x404688
mov ecx, dword [0x4b5dd8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4b63f0]
jne 0x40469a
mov edx, dword [0x4b5ddc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4b6394]
jne 0x4046ab
mov eax, dword [0x4b5dd0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4b6398]
jne 0x4046bd
mov ecx, dword [0x4b5dd4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4b639c]
jne 0x4046cf
mov edx, dword [0x4b5de4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4b63c8]
jne 0x4046e0
mov eax, dword [0x4b5df8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4b63cc]
jne 0x4046f2
mov ecx, dword [0x4b5df4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4b63e4]
jne 0x404704
mov edx, dword [0x4b5e28]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4b63e8]
jne 0x404715
mov eax, dword [0x4b5e2c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4b63e0]
jne 0x404727
mov ecx, dword [0x4b5e0c]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x40483a
mov eax, dword [ebx]
cmp eax, dword [0x4b63a0]
jne 0x404743
mov edx, dword [0x4b5de8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4b63a4]
jne 0x404754
mov eax, dword [0x4b5df0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4b63a8]
jne 0x404766
mov ecx, dword [0x4b5dec]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4b63ac]
jne 0x404778
mov edx, dword [0x4b5db4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4b63b0]
jne 0x404789
mov eax, dword [0x4b5dcc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4b63b4]
jne 0x40479b
mov ecx, dword [0x4b5dc8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4b63b8]
jne 0x4047ad
mov edx, dword [0x4b5db8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4b63bc]
jne 0x4047be
mov eax, dword [0x4b5dbc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4b63c0]
jne 0x4047d0
mov ecx, dword [0x4b5dc4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4b63c4]
jne 0x4047e2
mov edx, dword [0x4b5dc0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4b63d0]
jne 0x4047f3
mov eax, dword [0x4b5dfc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4b63d4]
jne 0x404805
mov ecx, dword [0x4b5e00]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4b63d8]
jne 0x404817
mov edx, dword [0x4b5e04]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4b63dc]
jne 0x404828
mov eax, dword [0x4b5e08]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4b63f4]
jne 0x40483a
mov ecx, dword [0x4b5e10]
mov dword [ebx], ecx
test ebx, ebx
jne 0x404842
xor eax, eax
jmp 0x404864
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x404405
add dword [ebp - 0xc], 0x14
jmp 0x404372
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret