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

Disassembly:
sub esp, 0xa0
push esi
xor esi, esi
cmp dword [esp + 0xbc], esi
jne 0x486453
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0xb8]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0xbc]
push eax
mov eax, dword [esp + 0xbc]
push edi
push edx
push ecx
call fcn.004859d0
add esp, 0x1c
pop esi
add esp, 0xa0
ret
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
imul eax, dword [ecx]
imul eax, edi
push ebx
push ebp
push eax
call fcn.00586165
add esp, 4
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ebp
jmp 0x486482
xor esi, esi
mov eax, 4
mov ecx, 2
mov edx, 8
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], edx
mov ebx, 1
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x8c], ebx
mov esi, dword [esp + ebp + 0x74]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0xb0]
mov ecx, dword [ecx]
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + ebp + 0x58]
mov dword [esp + 0x38], eax
mov edx, esi
sub edx, eax
mov eax, dword [ecx]
lea eax, [edx + eax - 1]
xor edx, edx
div esi
mov edx, dword [ecx + 4]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x34], esi
mov esi, dword [esp + ebp + 0x90]
mov dword [esp + 0x2c], esi
mov ebx, eax
mov eax, dword [esp + ebp + 0x3c]
sub edx, eax
lea eax, [edx + esi - 1]
xor edx, edx
div esi
mov dword [esp + 0x20], ebx
mov esi, eax
test ebx, ebx
je 0x486690
test esi, esi
je 0x486690
mov ebp, dword [ecx + 8]
mov eax, dword [esp + 0xbc]
imul ebp, ebx
mov ecx, dword [esp + 0xc0]
imul ebp, eax
mov edx, dword [esp + 0xb8]
push ecx
push eax
mov eax, dword [esp + 0xb8]
push esi
push ebx
add ebp, 7
push edi
sar ebp, 3
push edx
push eax
mov eax, dword [esp + 0xd0]
inc ebp
imul ebp, esi
call fcn.004859d0
add esp, 0x1c
test eax, eax
je 0x4866bd
test esi, esi
jle 0x48666b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + ecx + 0x3c]
mov eax, ebx
imul eax, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esi
test ebx, ebx
jle 0x486658
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax]
mov esi, dword [eax + 0xc]
mov edx, dword [esp + 0x20]
xor ebx, ebx
add esi, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edx
lea ebx, [ebx]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
imul ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x38]
push edi
add ecx, ebx
imul ecx, edi
add ecx, dword [esp + 0x10]
push esi
push ecx
call fcn.00588160
add ebx, dword [esp + 0x40]
add esp, 0xc
add esi, edi
sub dword [esp + 0x1c], 1
jne 0x486620
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add dword [esp + 0x10], edx
add dword [esp + 0x18], eax
sub dword [esp + 0x24], 1
jne 0x4865f8
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.0058622f
add dword [esp + 0xb8], ebp
add esp, 4
sub dword [esp + 0xb8], ebp
mov ebp, dword [esp + 0x14]
add ebp, 4
cmp ebp, 0x1c
mov dword [esp + 0x14], ebp
jl 0x486480
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xb0]
pop ebp
pop ebx
mov dword [ecx + 0xc], eax
mov eax, 1
pop esi
add esp, 0xa0
ret
mov edx, dword [esp + 0xc]
push edx
call fcn.0058622f
add esp, 4
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0xa0
ret