Function at 0x4086d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x52de80]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x14], 0
test edi, edi
je 0x408a21
push dword [esp + 0x14]
lea eax, [esp + 0x17]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.00409e60
mov eax, dword [edi]
add esp, 0x10
mov dword [edi + 4], eax
cmp dword [esi + 0x10], 0
je 0x408a21
xor eax, eax
mov dword [esp + 0x18], 0
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
call fcn.00405560
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00408be0
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.00408340
test al, al
sete bl
cmp dword [esp + 0x38], 8
jb 0x4087a5
push dword [esp + 0x24]
call fcn.00481594
add esp, 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push eax
call fcn.00408cf0
lea ecx, [esp + 0x54]
test bl, bl
je 0x408833
cmp ecx, eax
je 0x4087c9
push 0xffffffffffffffff
push 0
push eax
call fcn.00405560
cmp dword [esp + 0x38], 8
jb 0x4087dc
push dword [esp + 0x24]
call fcn.00481594
add esp, 4
lea ecx, [esp + 0x54]
call fcn.00408580
test al, al
jne 0x4087f7
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.004097c0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00408be0
lea ecx, [esp + 0x3c]
cmp ecx, eax
je 0x408817
push 0xffffffffffffffff
push 0
push eax
call fcn.00405560
cmp dword [esp + 0x38], 8
jb 0x408774
push dword [esp + 0x24]
call fcn.00481594
add esp, 4
jmp 0x408774
cmp ecx, eax
je 0x408845
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
call fcn.00405560
cmp dword [esp + 0x38], 8
jb 0x408858
push dword [esp + 0x24]
call fcn.00481594
add esp, 4
cmp dword [esp + 0x64], 0
je 0x408892
mov edx, 0x50cd6c
lea ecx, [esp + 0x54]
call fcn.00409df0
test al, al
je 0x408892
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00408cf0
push eax
lea ecx, [esp + 0x1c]
call fcn.004097c0
lea ecx, [esp + 0x24]
call fcn.00408680
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x40]
call fcn.00408be0
lea ecx, [esp + 0x6c]
call fcn.004082d0
cmp eax, 0xffffffff
je 0x4088f7
inc eax
mov dword [esp + 0x38], 7
xor ecx, ecx
mov dword [esp + 0x34], 0
push eax
push ecx
lea eax, [esp + 0x74]
mov word [esp + 0x2c], cx
push eax
lea ecx, [esp + 0x30]
call fcn.00405560
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
call fcn.004096f0
cmp dword [esp + 0x38], 8
jb 0x4088f7
push dword [esp + 0x24]
call fcn.00481594
add esp, 4
mov ebx, dword [esp + 0x1c]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x18]
mov ecx, ebx
sub ecx, esi
mov dword [esp + 0x24], 0
imul ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], 0
sar edx, 2
mov eax, edx
mov dword [esp + 0x2c], 0
shr eax, 0x1f
add eax, edx
push eax
call fcn.00409ea0
test al, al
je 0x408950
push dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push esi
push ebx
call fcn.00409fe0
add esp, 0xc
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.00409680
mov edi, dword [esp + 0x24]
test edi, edi
je 0x408980
push dword [esp + 0x14]
lea eax, [esp + 0x17]
push eax
push dword [esp + 0x30]
push edi
call fcn.00409e60
push edi
call fcn.00481594
add esp, 0x14
cmp dword [esp + 0x80], 8
jb 0x408996
push dword [esp + 0x6c]
call fcn.00481594
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
cmp dword [esp + 0x68], 8
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
jb 0x4089c3
push dword [esp + 0x54]
call fcn.00481594
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
cmp dword [esp + 0x50], 8
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
jb 0x4089ed
push dword [esp + 0x3c]
call fcn.00481594
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
test esi, esi
je 0x408a21
push dword [esp + 0x14]
lea eax, [esp + 0x17]
push eax
push ebx
push esi
call fcn.00409e60
push esi
call fcn.00481594
add esp, 0x14
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bc11d
mov esp, ebp
pop ebp
ret 4