Function at 0x4080ec
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429468
push 0x41fa58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x3c]
call fcn.00408400
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp - 0x3c]
call fcn.004086b0
test eax, eax
je 0x40815c
mov ecx, dword [ebp - 0x28]
and ecx, 0xffff
cmp ecx, 0x5a4d
je 0x408161
mov edx, dword [ebp - 0x28]
and edx, 0xffff
cmp edx, 0x4d5a
je 0x408161
jmp 0x4083c7
lea eax, [ebp - 0x2c]
push eax
push 0x3c
mov ecx, dword [ebp - 0x3c]
call fcn.004086e0
test eax, eax
jne 0x408178
jmp 0x4083c7
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.004086e0
test eax, eax
je 0x408195
cmp dword [ebp - 0x34], 0x4550
je 0x40819a
jmp 0x4083c7
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x3c
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.004086e0
test eax, eax
je 0x4081b7
cmp dword [ebp - 0x34], 0
jne 0x4081bc
jmp 0x4083c7
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0x38
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.004086e0
test eax, eax
je 0x4081d9
cmp dword [ebp - 0x34], 0
jne 0x4081de
jmp 0x4083c7
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x50
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.004086e0
test eax, eax
jne 0x4081fa
jmp 0x4083c7
mov ecx, dword [ebp - 0x3c]
call fcn.004085e0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x408210
jmp 0x4083c7
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 6
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.004086b0
test eax, eax
je 0x408234
mov edx, dword [ebp - 0x28]
and edx, 0xffff
test edx, edx
jne 0x408239
jmp 0x4083c7
mov eax, dword [ebp - 0x28]
and eax, 0xffff
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + eax + 0xf8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x38]
jae 0x408261
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x20]
jb 0x408266
jmp 0x4083c7
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0x54
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.004086e0
test eax, eax
jne 0x408282
jmp 0x4083c7
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x38]
jb 0x40828f
jmp 0x4083c7
mov edx, dword [ebp - 0x34]
push edx
call fcn.0041f99d
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x10], 0
jne 0x4082af
jmp 0x4083c7
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x20]
jbe 0x4082bd
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x10]
push ecx
push 0
mov ecx, dword [ebp - 0x3c]
call fcn.00408600
cmp eax, dword [ebp - 0x34]
je 0x4082dc
jmp 0x4083c7
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x14]
add eax, 0xf8
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x24], eax
mov cx, word [ebp - 0x28]
sub cx, 1
mov word [ebp - 0x28], cx
mov edx, dword [ebp - 0x28]
and edx, 0xffff
test edx, edx
je 0x40836e
mov ecx, dword [ebp - 0x3c]
call fcn.004087a0
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00408450
add esp, 8
test eax, eax
je 0x408341
jmp 0x4083c7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 0x34]
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jle 0x408361
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax + 8]
jae 0x408363
jmp 0x4083c7
mov edx, dword [ebp - 0x24]
add edx, 0x28
mov dword [ebp - 0x24], edx
jmp 0x408305
mov ecx, dword [ebp - 0x3c]
call fcn.004087a0
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00408450
add esp, 8
test eax, eax
je 0x40838e
jmp 0x4083c7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x34], 0
jl 0x4083ab
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
cmp eax, dword [edx + 8]
jae 0x4083ad
jmp 0x4083c7
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.00408770
mov edx, dword [eax]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.00408740
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004083d5
jmp 0x4083e4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret