Function at 0x403f50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x4534d0], 0
push ebx
push esi
push edi
jne 0x403f67
call fcn.00403d94
cmp dword [ebp + 8], 0
jne 0x403f74
xor eax, eax
jmp 0x40450c
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 0x403f92
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x403f99
xor eax, eax
jmp 0x40450c
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 0x403fb8
cmp dword [ebx], 0x4550
je 0x403fbf
xor eax, eax
jmp 0x40450c
cmp word [ebx + 0x14], 0xe0
jne 0x403fcf
cmp word [ebx + 0x18], 0x10b
je 0x403fd9
mov eax, 4
jmp 0x40450c
cmp word [ebx + 6], 1
jae 0x403fe7
xor eax, eax
jmp 0x40450c
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 0x404010
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x40401a
mov eax, 8
jmp 0x40450c
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x404030
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x404507
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.00405c5c
add esp, 0xc
test eax, eax
jne 0x404062
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.00405c5c
add esp, 0xc
test eax, eax
jne 0x404093
mov dword [ebp - 0x10], 2
jmp 0x404093
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 0x4044f1
mov edx, 0x80000000
test eax, edx
jne 0x4044e2
jmp 0x404314
cmp dword [ebp - 0x10], 1
jne 0x4044e2
mov edx, dword [ebx]
cmp edx, dword [0x4534c4]
jne 0x404330
mov ecx, dword [0x453008]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4534c8]
jne 0x404342
mov edx, dword [0x45300c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x45346c]
jne 0x404353
mov eax, dword [0x453000]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453470]
jne 0x404365
mov ecx, dword [0x453004]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453474]
jne 0x404377
mov edx, dword [0x453014]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4534a0]
jne 0x404388
mov eax, dword [0x453028]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4534a4]
jne 0x40439a
mov ecx, dword [0x453024]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4534bc]
jne 0x4043ac
mov edx, dword [0x453054]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4534c0]
jne 0x4043bd
mov eax, dword [0x453058]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4534b8]
jne 0x4043cf
mov ecx, dword [0x45303c]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x4044e2
mov eax, dword [ebx]
cmp eax, dword [0x453478]
jne 0x4043eb
mov edx, dword [0x453018]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x45347c]
jne 0x4043fc
mov eax, dword [0x453020]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453480]
jne 0x40440e
mov ecx, dword [0x45301c]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453484]
jne 0x404420
mov edx, dword [0x452fe4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453488]
jne 0x404431
mov eax, dword [0x452ffc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x45348c]
jne 0x404443
mov ecx, dword [0x452ff8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x453490]
jne 0x404455
mov edx, dword [0x452fe8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x453494]
jne 0x404466
mov eax, dword [0x452fec]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x453498]
jne 0x404478
mov ecx, dword [0x452ff4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x45349c]
jne 0x40448a
mov edx, dword [0x452ff0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4534a8]
jne 0x40449b
mov eax, dword [0x45302c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4534ac]
jne 0x4044ad
mov ecx, dword [0x453030]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4534b0]
jne 0x4044bf
mov edx, dword [0x453034]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4534b4]
jne 0x4044d0
mov eax, dword [0x453038]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4534cc]
jne 0x4044e2
mov ecx, dword [0x453040]
mov dword [ebx], ecx
test ebx, ebx
jne 0x4044ea
xor eax, eax
jmp 0x40450c
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x4040ad
add dword [ebp - 0xc], 0x14
jmp 0x40401a
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret