Function at 0x4041dc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x46f658], 0
push ebx
push esi
push edi
jne 0x4041f3
call fcn.00404020
cmp dword [ebp + 8], 0
jne 0x404200
xor eax, eax
jmp 0x404798
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 0x40421e
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x404225
xor eax, eax
jmp 0x404798
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 0x404244
cmp dword [ebx], 0x4550
je 0x40424b
xor eax, eax
jmp 0x404798
cmp word [ebx + 0x14], 0xe0
jne 0x40425b
cmp word [ebx + 0x18], 0x10b
je 0x404265
mov eax, 4
jmp 0x404798
cmp word [ebx + 6], 1
jae 0x404273
xor eax, eax
jmp 0x404798
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 0x40429c
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x4042a6
mov eax, 8
jmp 0x404798
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x4042bc
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x404793
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.00405efc
add esp, 0xc
test eax, eax
jne 0x4042ee
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.00405efc
add esp, 0xc
test eax, eax
jne 0x40431f
mov dword [ebp - 0x10], 2
jmp 0x40431f
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 0x40477d
mov edx, 0x80000000
test eax, edx
jne 0x40476e
jmp 0x4045a0
cmp dword [ebp - 0x10], 1
jne 0x40476e
mov edx, dword [ebx]
cmp edx, dword [0x46f64c]
jne 0x4045bc
mov ecx, dword [0x46f17c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f650]
jne 0x4045ce
mov edx, dword [0x46f180]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f5f4]
jne 0x4045df
mov eax, dword [0x46f174]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f5f8]
jne 0x4045f1
mov ecx, dword [0x46f178]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f5fc]
jne 0x404603
mov edx, dword [0x46f188]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f628]
jne 0x404614
mov eax, dword [0x46f19c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f62c]
jne 0x404626
mov ecx, dword [0x46f198]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f644]
jne 0x404638
mov edx, dword [0x46f1cc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f648]
jne 0x404649
mov eax, dword [0x46f1d0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f640]
jne 0x40465b
mov ecx, dword [0x46f1b0]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x40476e
mov eax, dword [ebx]
cmp eax, dword [0x46f600]
jne 0x404677
mov edx, dword [0x46f18c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f604]
jne 0x404688
mov eax, dword [0x46f194]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f608]
jne 0x40469a
mov ecx, dword [0x46f190]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f60c]
jne 0x4046ac
mov edx, dword [0x46f158]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f610]
jne 0x4046bd
mov eax, dword [0x46f170]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f614]
jne 0x4046cf
mov ecx, dword [0x46f16c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f618]
jne 0x4046e1
mov edx, dword [0x46f15c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f61c]
jne 0x4046f2
mov eax, dword [0x46f160]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f620]
jne 0x404704
mov ecx, dword [0x46f168]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f624]
jne 0x404716
mov edx, dword [0x46f164]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f630]
jne 0x404727
mov eax, dword [0x46f1a0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f634]
jne 0x404739
mov ecx, dword [0x46f1a4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46f638]
jne 0x40474b
mov edx, dword [0x46f1a8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46f63c]
jne 0x40475c
mov eax, dword [0x46f1ac]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46f654]
jne 0x40476e
mov ecx, dword [0x46f1b4]
mov dword [ebx], ecx
test ebx, ebx
jne 0x404776
xor eax, eax
jmp 0x404798
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x404339
add dword [ebp - 0xc], 0x14
jmp 0x4042a6
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret