Function at 0x403a54
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x451ea4], 0
push ebx
push esi
push edi
jne 0x403a6b
call fcn.00403898
cmp dword [ebp + 8], 0
jne 0x403a78
xor eax, eax
jmp 0x404010
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 0x403a96
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x403a9d
xor eax, eax
jmp 0x404010
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 0x403abc
cmp dword [ebx], 0x4550
je 0x403ac3
xor eax, eax
jmp 0x404010
cmp word [ebx + 0x14], 0xe0
jne 0x403ad3
cmp word [ebx + 0x18], 0x10b
je 0x403add
mov eax, 4
jmp 0x404010
cmp word [ebx + 6], 1
jae 0x403aeb
xor eax, eax
jmp 0x404010
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 0x403b14
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x403b1e
mov eax, 8
jmp 0x404010
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x403b34
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x40400b
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.00405754
add esp, 0xc
test eax, eax
jne 0x403b66
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.00405754
add esp, 0xc
test eax, eax
jne 0x403b97
mov dword [ebp - 0x10], 2
jmp 0x403b97
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 0x403ff5
mov edx, 0x80000000
test eax, edx
jne 0x403fe6
jmp 0x403e18
cmp dword [ebp - 0x10], 1
jne 0x403fe6
mov edx, dword [ebx]
cmp edx, dword [0x451e98]
jne 0x403e34
mov ecx, dword [0x4519e0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x451e9c]
jne 0x403e46
mov edx, dword [0x4519e4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x451e40]
jne 0x403e57
mov eax, dword [0x4519d8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x451e44]
jne 0x403e69
mov ecx, dword [0x4519dc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x451e48]
jne 0x403e7b
mov edx, dword [0x4519ec]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x451e74]
jne 0x403e8c
mov eax, dword [0x451a00]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x451e78]
jne 0x403e9e
mov ecx, dword [0x4519fc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x451e90]
jne 0x403eb0
mov edx, dword [0x451a2c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x451e94]
jne 0x403ec1
mov eax, dword [0x451a30]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x451e8c]
jne 0x403ed3
mov ecx, dword [0x451a14]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x403fe6
mov eax, dword [ebx]
cmp eax, dword [0x451e4c]
jne 0x403eef
mov edx, dword [0x4519f0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x451e50]
jne 0x403f00
mov eax, dword [0x4519f8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x451e54]
jne 0x403f12
mov ecx, dword [0x4519f4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x451e58]
jne 0x403f24
mov edx, dword [0x4519bc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x451e5c]
jne 0x403f35
mov eax, dword [0x4519d4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x451e60]
jne 0x403f47
mov ecx, dword [0x4519d0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x451e64]
jne 0x403f59
mov edx, dword [0x4519c0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x451e68]
jne 0x403f6a
mov eax, dword [0x4519c4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x451e6c]
jne 0x403f7c
mov ecx, dword [0x4519cc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x451e70]
jne 0x403f8e
mov edx, dword [0x4519c8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x451e7c]
jne 0x403f9f
mov eax, dword [0x451a04]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x451e80]
jne 0x403fb1
mov ecx, dword [0x451a08]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x451e84]
jne 0x403fc3
mov edx, dword [0x451a0c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x451e88]
jne 0x403fd4
mov eax, dword [0x451a10]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x451ea0]
jne 0x403fe6
mov ecx, dword [0x451a18]
mov dword [ebx], ecx
test ebx, ebx
jne 0x403fee
xor eax, eax
jmp 0x404010
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403bb1
add dword [ebp - 0xc], 0x14
jmp 0x403b1e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret