Function at 0x403cc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
cmp dword [0x4623b8], 0
push ebx
push esi
push edi
jne 0x403cd7
call fcn.00403b04
cmp dword [ebp + 8], 0
jne 0x403ce4
xor eax, eax
jmp 0x40427c
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 0x403d02
mov eax, dword [ebp - 8]
cmp word [eax], 0x5a4d
je 0x403d09
xor eax, eax
jmp 0x40427c
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 0x403d28
cmp dword [ebx], 0x4550
je 0x403d2f
xor eax, eax
jmp 0x40427c
cmp word [ebx + 0x14], 0xe0
jne 0x403d3f
cmp word [ebx + 0x18], 0x10b
je 0x403d49
mov eax, 4
jmp 0x40427c
cmp word [ebx + 6], 1
jae 0x403d57
xor eax, eax
jmp 0x40427c
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 0x403d80
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
jmp 0x403d8a
mov eax, 8
jmp 0x40427c
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x403da0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
je 0x404277
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.004059b0
add esp, 0xc
test eax, eax
jne 0x403dd2
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.004059b0
add esp, 0xc
test eax, eax
jne 0x403e03
mov dword [ebp - 0x10], 2
jmp 0x403e03
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 0x404261
mov edx, 0x80000000
test eax, edx
jne 0x404252
jmp 0x404084
cmp dword [ebp - 0x10], 1
jne 0x404252
mov edx, dword [ebx]
cmp edx, dword [0x4623ac]
jne 0x4040a0
mov ecx, dword [0x461ec8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4623b0]
jne 0x4040b2
mov edx, dword [0x461ecc]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x462354]
jne 0x4040c3
mov eax, dword [0x461ec0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x462358]
jne 0x4040d5
mov ecx, dword [0x461ec4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46235c]
jne 0x4040e7
mov edx, dword [0x461ed4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x462388]
jne 0x4040f8
mov eax, dword [0x461ee8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x46238c]
jne 0x40410a
mov ecx, dword [0x461ee4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x4623a4]
jne 0x40411c
mov edx, dword [0x461f18]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x4623a8]
jne 0x40412d
mov eax, dword [0x461f1c]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4623a0]
jne 0x40413f
mov ecx, dword [0x461efc]
mov dword [ebx], ecx
cmp byte [ebp + 0xc], 1
jae 0x404252
mov eax, dword [ebx]
cmp eax, dword [0x462360]
jne 0x40415b
mov edx, dword [0x461ed8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x462364]
jne 0x40416c
mov eax, dword [0x461ee0]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x462368]
jne 0x40417e
mov ecx, dword [0x461edc]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x46236c]
jne 0x404190
mov edx, dword [0x461ea4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x462370]
jne 0x4041a1
mov eax, dword [0x461ebc]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x462374]
jne 0x4041b3
mov ecx, dword [0x461eb8]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x462378]
jne 0x4041c5
mov edx, dword [0x461ea8]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46237c]
jne 0x4041d6
mov eax, dword [0x461eac]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x462380]
jne 0x4041e8
mov ecx, dword [0x461eb4]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x462384]
jne 0x4041fa
mov edx, dword [0x461eb0]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x462390]
jne 0x40420b
mov eax, dword [0x461eec]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x462394]
jne 0x40421d
mov ecx, dword [0x461ef0]
mov dword [ebx], ecx
mov eax, dword [ebx]
cmp eax, dword [0x462398]
jne 0x40422f
mov edx, dword [0x461ef4]
mov dword [ebx], edx
mov ecx, dword [ebx]
cmp ecx, dword [0x46239c]
jne 0x404240
mov eax, dword [0x461ef8]
mov dword [ebx], eax
mov edx, dword [ebx]
cmp edx, dword [0x4623b4]
jne 0x404252
mov ecx, dword [0x461f00]
mov dword [ebx], ecx
test ebx, ebx
jne 0x40425a
xor eax, eax
jmp 0x40427c
add ebx, 4
add dword [ebp - 0x14], 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x403e1d
add dword [ebp - 0xc], 0x14
jmp 0x403d8a
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret