Function at 0x403e24
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x4530f4], 0
push ebx
push esi
push edi
jne 0x403e3b
call fcn.00403c68
cmp dword [ebp + 8], 0
jne 0x403e48
xor eax, eax
jmp 0x4043e0
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 0x403e66
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x403e6d
xor eax, eax
jmp 0x4043e0
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 0x403e8c
cmp dword [ebx], 0x4550
je 0x403e93
xor eax, eax
jmp 0x4043e0
cmp word [ebx + 0x14], 0xe0
jne 0x403ea3
cmp word [ebx + 0x18], 0x10b
je 0x403ead
mov eax, 4
jmp 0x4043e0
cmp word [ebx + 6], 1
jae 0x403ebb
xor eax, eax
jmp 0x4043e0
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 0x403ee4
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x403eee
mov eax, 8
jmp 0x4043e0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x403f04
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x4043db
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.00405b24
add esp, 0xc
test eax, eax
jne 0x403f36
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.00405b24
add esp, 0xc
test eax, eax
jne 0x403f67
mov dword [ebp - 0x10], 2
jmp 0x403f67
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 0x4043c5
mov edx, 0x80000000
test eax, edx
jne 0x4043b6
jmp 0x4041e8
cmp dword [ebp - 0x10], 1
jne 0x4043b6
mov edx, dword [ebx]
cmp edx, dword [0x4530e8]
jne 0x404204
mov ecx, dword [0x452c30]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4530ec]
jne 0x404216
mov edx, dword [0x452c34]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453090]
jne 0x404227
mov eax, dword [0x452c28]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453094]
jne 0x404239
mov ecx, dword [0x452c2c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453098]
jne 0x40424b
mov edx, dword [0x452c3c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4530c4]
jne 0x40425c
mov eax, dword [0x452c50]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4530c8]
jne 0x40426e
mov ecx, dword [0x452c4c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4530e0]
jne 0x404280
mov edx, dword [0x452c7c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4530e4]
jne 0x404291
mov eax, dword [0x452c80]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4530dc]
jne 0x4042a3
mov ecx, dword [0x452c64]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x4043b6
mov eax, dword [ebx]
cmp eax, dword [0x45309c]
jne 0x4042bf
mov edx, dword [0x452c40]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4530a0]
jne 0x4042d0
mov eax, dword [0x452c48]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4530a4]
jne 0x4042e2
mov ecx, dword [0x452c44]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4530a8]
jne 0x4042f4
mov edx, dword [0x452c0c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4530ac]
jne 0x404305
mov eax, dword [0x452c24]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4530b0]
jne 0x404317
mov ecx, dword [0x452c20]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4530b4]
jne 0x404329
mov edx, dword [0x452c10]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4530b8]
jne 0x40433a
mov eax, dword [0x452c14]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4530bc]
jne 0x40434c
mov ecx, dword [0x452c1c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4530c0]
jne 0x40435e
mov edx, dword [0x452c18]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4530cc]
jne 0x40436f
mov eax, dword [0x452c54]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4530d0]
jne 0x404381
mov ecx, dword [0x452c58]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4530d4]
jne 0x404393
mov edx, dword [0x452c5c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4530d8]
jne 0x4043a4
mov eax, dword [0x452c60]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4530f0]
jne 0x4043b6
mov ecx, dword [0x452c68]
mov dword [ebx], ecx
test ebx, ebx
jne 0x4043be
xor eax, eax
jmp 0x4043e0
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403f81
add dword [ebp - 0xc], 0x14
jmp 0x403eee
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret