Function at 0x4086d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a98f8
push 0x47d028
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 - 0x2c], 0
mov ecx, dword [ebp - 0x3c]
call fcn.004089c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x3c]
call fcn.00408c70
test eax, eax
je 0x408736
movzx ecx, word [ebp - 0x20]
cmp ecx, 0x5a4d
je 0x40873b
movzx edx, word [ebp - 0x20]
cmp edx, 0x4d5a
je 0x40873b
jmp 0x40898f
lea eax, [ebp - 0x24]
push eax
push 0x3c
mov ecx, dword [ebp - 0x3c]
call fcn.00408ca0
test eax, eax
jne 0x408752
jmp 0x40898f
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.00408ca0
test eax, eax
je 0x40876f
cmp dword [ebp - 0x28], 0x4550
je 0x408774
jmp 0x40898f
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x3c
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.00408ca0
test eax, eax
je 0x408791
cmp dword [ebp - 0x28], 0
jne 0x408796
jmp 0x40898f
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
add eax, 0x38
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00408ca0
test eax, eax
je 0x4087b3
cmp dword [ebp - 0x28], 0
jne 0x4087b8
jmp 0x40898f
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x24]
add edx, 0x50
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.00408ca0
test eax, eax
jne 0x4087d4
jmp 0x40898f
mov ecx, dword [ebp - 0x3c]
call fcn.00408ba0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x4087ea
jmp 0x40898f
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 6
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.00408c70
test eax, eax
je 0x408809
movzx edx, word [ebp - 0x20]
test edx, edx
jne 0x40880e
jmp 0x40898f
movzx eax, word [ebp - 0x20]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0xf8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x30]
jae 0x408832
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x34]
jb 0x408837
jmp 0x40898f
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
add eax, 0x54
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00408ca0
test eax, eax
jne 0x408853
jmp 0x40898f
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x30]
jb 0x408860
jmp 0x40898f
mov edx, dword [ebp - 0x28]
push edx
call fcn.0047d00b
add esp, 4
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x10], 0
jne 0x408880
jmp 0x40898f
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x34]
jbe 0x40888e
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x10]
push ecx
push 0
mov ecx, dword [ebp - 0x3c]
call fcn.00408bc0
cmp eax, dword [ebp - 0x28]
je 0x4088ad
jmp 0x40898f
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x24]
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 - 0x38], eax
mov cx, word [ebp - 0x20]
sub cx, 1
mov word [ebp - 0x20], cx
movzx edx, word [ebp - 0x20]
test edx, edx
je 0x40893a
mov ecx, dword [ebp - 0x3c]
call fcn.00408d60
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00408a10
add esp, 8
test eax, eax
je 0x40890d
jmp 0x40898f
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + 0x34]
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jle 0x40892d
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 8]
jae 0x40892f
jmp 0x40898f
mov edx, dword [ebp - 0x38]
add edx, 0x28
mov dword [ebp - 0x38], edx
jmp 0x4088d6
mov ecx, dword [ebp - 0x3c]
call fcn.00408d60
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00408a10
add esp, 8
test eax, eax
je 0x40895a
jmp 0x40898f
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
sub ecx, dword [eax + 0xc]
mov dword [ebp - 0x28], ecx
js 0x408973
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
cmp eax, dword [edx + 8]
jae 0x408975
jmp 0x40898f
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.00408d30
mov edx, dword [eax]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.00408d00
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040899d
jmp 0x4089ac
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret