Function at 0x403cb8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x450eac], 0
push ebx
push esi
push edi
jne 0x403ccf
call fcn.00403afc
cmp dword [ebp + 8], 0
jne 0x403cdc
xor eax, eax
jmp 0x404274
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 0x403cfa
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x403d01
xor eax, eax
jmp 0x404274
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 0x403d20
cmp dword [ebx], 0x4550
je 0x403d27
xor eax, eax
jmp 0x404274
cmp word [ebx + 0x14], 0xe0
jne 0x403d37
cmp word [ebx + 0x18], 0x10b
je 0x403d41
mov eax, 4
jmp 0x404274
cmp word [ebx + 6], 1
jae 0x403d4f
xor eax, eax
jmp 0x404274
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 0x403d78
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x403d82
mov eax, 8
jmp 0x404274
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x403d98
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x40426f
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.0040597c
add esp, 0xc
test eax, eax
jne 0x403dca
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.0040597c
add esp, 0xc
test eax, eax
jne 0x403dfb
mov dword [ebp - 0x10], 2
jmp 0x403dfb
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 0x404259
mov edx, 0x80000000
test eax, edx
jne 0x40424a
jmp 0x40407c
cmp dword [ebp - 0x10], 1
jne 0x40424a
mov edx, dword [ebx]
cmp edx, dword [0x450ea0]
jne 0x404098
mov ecx, dword [0x4509b4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450ea4]
jne 0x4040aa
mov edx, dword [0x4509b8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450e48]
jne 0x4040bb
mov eax, dword [0x4509ac]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450e4c]
jne 0x4040cd
mov ecx, dword [0x4509b0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450e50]
jne 0x4040df
mov edx, dword [0x4509c0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450e7c]
jne 0x4040f0
mov eax, dword [0x4509d4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450e80]
jne 0x404102
mov ecx, dword [0x4509d0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450e98]
jne 0x404114
mov edx, dword [0x450a00]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450e9c]
jne 0x404125
mov eax, dword [0x450a04]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450e94]
jne 0x404137
mov ecx, dword [0x4509e8]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x40424a
mov eax, dword [ebx]
cmp eax, dword [0x450e54]
jne 0x404153
mov edx, dword [0x4509c4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450e58]
jne 0x404164
mov eax, dword [0x4509cc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450e5c]
jne 0x404176
mov ecx, dword [0x4509c8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450e60]
jne 0x404188
mov edx, dword [0x450990]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450e64]
jne 0x404199
mov eax, dword [0x4509a8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450e68]
jne 0x4041ab
mov ecx, dword [0x4509a4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450e6c]
jne 0x4041bd
mov edx, dword [0x450994]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450e70]
jne 0x4041ce
mov eax, dword [0x450998]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450e74]
jne 0x4041e0
mov ecx, dword [0x4509a0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450e78]
jne 0x4041f2
mov edx, dword [0x45099c]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450e84]
jne 0x404203
mov eax, dword [0x4509d8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450e88]
jne 0x404215
mov ecx, dword [0x4509dc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x450e8c]
jne 0x404227
mov edx, dword [0x4509e0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x450e90]
jne 0x404238
mov eax, dword [0x4509e4]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x450ea8]
jne 0x40424a
mov ecx, dword [0x4509ec]
mov dword [ebx], ecx
test ebx, ebx
jne 0x404252
xor eax, eax
jmp 0x404274
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403e15
add dword [ebp - 0xc], 0x14
jmp 0x403d82
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret