Function at 0x403e10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x453680], 0
push ebx
push esi
push edi
jne 0x403e27
call fcn.00403c54
cmp dword [ebp + 8], 0
jne 0x403e34
xor eax, eax
jmp 0x4043cc
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 0x403e52
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x403e59
xor eax, eax
jmp 0x4043cc
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 0x403e78
cmp dword [ebx], 0x4550
je 0x403e7f
xor eax, eax
jmp 0x4043cc
cmp word [ebx + 0x14], 0xe0
jne 0x403e8f
cmp word [ebx + 0x18], 0x10b
je 0x403e99
mov eax, 4
jmp 0x4043cc
cmp word [ebx + 6], 1
jae 0x403ea7
xor eax, eax
jmp 0x4043cc
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 0x403ed0
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x403eda
mov eax, 8
jmp 0x4043cc
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x403ef0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x4043c7
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.00405b10
add esp, 0xc
test eax, eax
jne 0x403f22
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.00405b10
add esp, 0xc
test eax, eax
jne 0x403f53
mov dword [ebp - 0x10], 2
jmp 0x403f53
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 0x4043b1
mov edx, 0x80000000
test eax, edx
jne 0x4043a2
jmp 0x4041d4
cmp dword [ebp - 0x10], 1
jne 0x4043a2
mov edx, dword [ebx]
cmp edx, dword [0x453674]
jne 0x4041f0
mov ecx, dword [0x4531bc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453678]
jne 0x404202
mov edx, dword [0x4531c0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x45361c]
jne 0x404213
mov eax, dword [0x4531b4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453620]
jne 0x404225
mov ecx, dword [0x4531b8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453624]
jne 0x404237
mov edx, dword [0x4531c8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453650]
jne 0x404248
mov eax, dword [0x4531dc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453654]
jne 0x40425a
mov ecx, dword [0x4531d8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x45366c]
jne 0x40426c
mov edx, dword [0x453208]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453670]
jne 0x40427d
mov eax, dword [0x45320c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453668]
jne 0x40428f
mov ecx, dword [0x4531f0]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x4043a2
mov eax, dword [ebx]
cmp eax, dword [0x453628]
jne 0x4042ab
mov edx, dword [0x4531cc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x45362c]
jne 0x4042bc
mov eax, dword [0x4531d4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453630]
jne 0x4042ce
mov ecx, dword [0x4531d0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453634]
jne 0x4042e0
mov edx, dword [0x453198]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453638]
jne 0x4042f1
mov eax, dword [0x4531b0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x45363c]
jne 0x404303
mov ecx, dword [0x4531ac]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453640]
jne 0x404315
mov edx, dword [0x45319c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453644]
jne 0x404326
mov eax, dword [0x4531a0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453648]
jne 0x404338
mov ecx, dword [0x4531a8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x45364c]
jne 0x40434a
mov edx, dword [0x4531a4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453658]
jne 0x40435b
mov eax, dword [0x4531e0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x45365c]
jne 0x40436d
mov ecx, dword [0x4531e4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453660]
jne 0x40437f
mov edx, dword [0x4531e8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453664]
jne 0x404390
mov eax, dword [0x4531ec]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x45367c]
jne 0x4043a2
mov ecx, dword [0x4531f4]
mov dword [ebx], ecx
test ebx, ebx
jne 0x4043aa
xor eax, eax
jmp 0x4043cc
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403f6d
add dword [ebp - 0xc], 0x14
jmp 0x403eda
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret