Function at 0x4043ac
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x4ab304], 0
push ebx
push esi
push edi
jne 0x4043c3
call fcn.004041f0
cmp dword [ebp + 8], 0
jne 0x4043d0
xor eax, eax
jmp 0x404968
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 0x4043ee
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x4043f5
xor eax, eax
jmp 0x404968
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 0x404414
cmp dword [ebx], 0x4550
je 0x40441b
xor eax, eax
jmp 0x404968
cmp word [ebx + 0x14], 0xe0
jne 0x40442b
cmp word [ebx + 0x18], 0x10b
je 0x404435
mov eax, 4
jmp 0x404968
cmp word [ebx + 6], 1
jae 0x404443
xor eax, eax
jmp 0x404968
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 0x40446c
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x404476
mov eax, 8
jmp 0x404968
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x40448c
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x404963
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.00406328
add esp, 0xc
test eax, eax
jne 0x4044be
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.00406328
add esp, 0xc
test eax, eax
jne 0x4044ef
mov dword [ebp - 0x10], 2
jmp 0x4044ef
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 0x40494d
mov edx, 0x80000000
test eax, edx
jne 0x40493e
jmp 0x404770
cmp dword [ebp - 0x10], 1
jne 0x40493e
mov edx, dword [ebx]
cmp edx, dword [0x4ab2f8]
jne 0x40478c
mov ecx, dword [0x4aace0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab2fc]
jne 0x40479e
mov edx, dword [0x4aace4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2a0]
jne 0x4047af
mov eax, dword [0x4aacd8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2a4]
jne 0x4047c1
mov ecx, dword [0x4aacdc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab2a8]
jne 0x4047d3
mov edx, dword [0x4aacec]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2d4]
jne 0x4047e4
mov eax, dword [0x4aad00]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2d8]
jne 0x4047f6
mov ecx, dword [0x4aacfc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab2f0]
jne 0x404808
mov edx, dword [0x4aad30]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2f4]
jne 0x404819
mov eax, dword [0x4aad34]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2ec]
jne 0x40482b
mov ecx, dword [0x4aad14]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x40493e
mov eax, dword [ebx]
cmp eax, dword [0x4ab2ac]
jne 0x404847
mov edx, dword [0x4aacf0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2b0]
jne 0x404858
mov eax, dword [0x4aacf8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2b4]
jne 0x40486a
mov ecx, dword [0x4aacf4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab2b8]
jne 0x40487c
mov edx, dword [0x4aacbc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2bc]
jne 0x40488d
mov eax, dword [0x4aacd4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2c0]
jne 0x40489f
mov ecx, dword [0x4aacd0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab2c4]
jne 0x4048b1
mov edx, dword [0x4aacc0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2c8]
jne 0x4048c2
mov eax, dword [0x4aacc4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2cc]
jne 0x4048d4
mov ecx, dword [0x4aaccc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab2d0]
jne 0x4048e6
mov edx, dword [0x4aacc8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2dc]
jne 0x4048f7
mov eax, dword [0x4aad04]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab2e0]
jne 0x404909
mov ecx, dword [0x4aad08]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4ab2e4]
jne 0x40491b
mov edx, dword [0x4aad0c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4ab2e8]
jne 0x40492c
mov eax, dword [0x4aad10]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4ab300]
jne 0x40493e
mov ecx, dword [0x4aad18]
mov dword [ebx], ecx
test ebx, ebx
jne 0x404946
xor eax, eax
jmp 0x404968
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x404509
add dword [ebp - 0xc], 0x14
jmp 0x404476
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret