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

Disassembly:
push edi
push ebp
sub esp, 0xdc
mov edi, 1
mov ebp, dword [esp + 0xe8]
mov ecx, ebp
shl edi, cl
mov eax, 1
cmp edi, 8
cmovg eax, edi
add eax, eax
add eax, eax
add eax, eax
push eax
call fcn.0085c730
mov edx, eax
test edx, edx
je 0x85c725
cmp edi, 8
jle 0x85c700
mov edi, edx
mov eax, ebp
and eax, 1
add eax, 4
cmp eax, ebp
jg 0x85c700
mov dword [esp + 0x58], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], esi
mov ebx, 1
mov ecx, eax
shl ebx, cl
mov ebp, 1
mov ecx, dword [esp + 0xf0]
sub ecx, eax
shl ebp, cl
xor edx, edx
mov esi, ebx
sar esi, 1
shr esi, 0x1e
add esi, ebx
sar esi, 2
test esi, esi
jle 0x85c70b
mov dword [esp + 0x10], eax
mov dword [esp + 4], esi
mov dword [esp + 0xc], ebp
lea edi, [ebx + ebx]
add edi, ebx
mov eax, edi
sar eax, 1
shr eax, 0x1e
add eax, edi
sar eax, 2
mov dword [esp + 0x4c], eax
lea eax, [ebp + ebp]
add eax, eax
add ebx, 0x80000000
adc ebx, 0x80000000
mov dword [esp + 0x44], eax
lea edi, [ebp + ebp]
sar ebx, 1
mov dword [esp + 8], ebx
add edi, edi
lea ecx, [edi + edi]
add ecx, edi
lea edi, [edx + edx]
mov dword [esp + 0x14], ecx
add edi, edi
sub edi, edx
add edi, edi
add edi, edi
add edi, edi
mov dword [esp + 0x3c], edi
lea edi, [edx + edx]
add edi, edi
sub edi, edx
add edi, edi
add edi, edi
add edi, edi
add edi, dword [esp + 0x58]
mov dword [esp + 0x40], edi
mov edi, edx
imul edi, eax
lea eax, [edx + edx]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
lea eax, [edx + edx]
neg eax
add eax, ebx
mov dword [esp + 0x34], eax
lea eax, [edx + edx]
neg eax
add eax, esi
mov dword [esp + 0x30], eax
mov eax, edx
imul eax, ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
lea eax, [edx + edx*2]
neg eax
add eax, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
lea eax, [edx + edx*2]
neg eax
add eax, ebx
mov ebx, edi
mov dword [esp + 0x2c], eax
lea eax, [edx + edx*2]
neg eax
add eax, esi
mov esi, dword [esp + 0xec]
mov dword [esp + 0x28], eax
mov eax, edx
imul eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x40], ecx
mov ecx, eax
sub ecx, edx
imul ecx, dword [esp + 0x44]
mov ecx, dword [ecx + esi]
mov dword [ebp + edi], ecx
mov ecx, dword [esp + 0x18]
fld dword [ebx + esi]
fchs
fstp dword [ebp + edi + 4]
cmp ecx, eax
mov ecx, dword [esp + 0x40]
jg 0x85c373
mov eax, dword [esp + 0x44]
imul eax, dword [esp + 0x30]
mov edi, dword [eax + esi]
mov eax, dword [esp + 0x24]
mov dword [ecx + 8], edi
fld dword [esi + eax*8]
fchs
fstp dword [ecx + 0xc]
jmp 0x85c397
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
sub edi, dword [esp + 4]
imul edi, eax
fld dword [edi + esi]
fchs
fstp dword [ecx + 8]
imul eax, dword [esp + 0x34]
fld dword [eax + esi]
fchs
fstp dword [ecx + 0xc]
mov eax, dword [esp + 4]
lea edi, [edx + edx]
add edi, edx
mov dword [esp], edi
cmp edi, eax
jg 0x85c3c4
mov eax, dword [esp + 0x44]
imul eax, dword [esp + 0x28]
mov edi, dword [eax + esi]
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x10], edi
fld dword [eax + esi]
fchs
fstp dword [ecx + 0x14]
jmp 0x85c411
mov eax, dword [esp + 8]
cmp edi, eax
jg 0x85c3ee
sub edi, dword [esp + 4]
mov eax, dword [esp + 0x44]
imul edi, eax
fld dword [edi + esi]
fchs
fstp dword [ecx + 0x10]
imul eax, dword [esp + 0x2c]
fld dword [eax + esi]
fchs
fstp dword [ecx + 0x14]
jmp 0x85c411
mov eax, dword [esp + 0x44]
mov edi, eax
imul edi, dword [esp + 0x38]
fld dword [edi + esi]
mov edi, dword [esp]
sub edi, dword [esp + 8]
imul edi, eax
fchs
fstp dword [ecx + 0x10]
mov edi, dword [edi + esi]
mov dword [ecx + 0x14], edi
add ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
add eax, dword [esp + 0xc]
add edi, dword [esp + 0x14]
add dword [esp + 0x18], 2
add ebp, 0x18
add ecx, 0x18
add dword [esp + 0x34], 0xfffffffe
mov dword [esp + 0x24], eax
mov eax, dword [esp + 4]
add dword [esp + 0x30], 0xfffffffe
add edx, 1
add dword [esp + 0x38], 0xfffffffd
mov dword [esp + 0x1c], edi
add dword [esp + 0x2c], 0xfffffffd
add dword [esp + 0x28], 0xfffffffd
cmp edx, eax
jl 0x85c325
mov esi, eax
mov eax, dword [esp + 0x10]
xor edi, edi
test esi, esi
jle 0x85c6d4
mov edx, dword [esp + 0x58]
mov dword [esp + 0x20], edi
mov dword [esp + 4], esi
lea ebp, [edi + edi]
mov dword [esp + 0x10], eax
add ebp, ebp
sub ebp, edi
add ebp, ebp
add ebp, ebp
add ebp, ebp
lea ebx, [edi + edi]
add ebx, edi
lea ebx, [edx + ebx*8]
mov edx, dword [esp + 0x58]
mov edi, dword [ebp + edx]
mov eax, dword [ebp + edx + 4]
mov esi, dword [ebp + edx + 0x18]
mov ecx, dword [ebp + edx + 0x30]
mov dword [esp + 0x40], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + edx + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + edx + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0xac], eax
mov eax, dword [ebp + edx + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0xbc], eax
mov eax, dword [ebp + edx + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 0xcc], eax
mov eax, dword [ebp + edx + 0x1c]
mov dword [esp + 0x44], esi
mov dword [esp], eax
mov eax, dword [ebp + edx + 0x20]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + edx + 0x24]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + edx + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + edx + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + edx + 0x34]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x94], eax
mov eax, dword [ebp + edx + 0x38]
mov dword [esp + 0x68], eax
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + edx + 0x3c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + edx + 0x40]
mov dword [esp + 0x70], eax
mov dword [esp + 0xc4], eax
mov eax, dword [ebp + edx + 0x44]
mov dword [esp + 0x74], eax
mov dword [esp + 0xd4], eax
mov eax, dword [ebp + edx + 0x48]
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], eax
mov eax, dword [ebp + edx + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + edx + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + edx + 0x54]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + edx + 0x58]
mov edx, dword [ebp + edx + 0x5c]
mov dword [esp + 0x38], eax
mov dword [ebx], edi
mov edi, dword [esp]
mov dword [esp + 0x3c], edx
mov dword [ebx + 4], esi
mov esi, dword [esp + 0x5c]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x78]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x64]
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x68]
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], ecx
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x60]
mov dword [ebx + 0x34], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ebx + 0x38], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x3c], ecx
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x40], ecx
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x44], ecx
mov ecx, dword [esp + 0x70]
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 8]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x5c], edx
add ebp, 0x60
mov edx, dword [esp + 4]
add ebx, 0x60
add eax, 4
mov dword [esp + 0x20], eax
cmp eax, edx
mov edx, dword [esp + 0x60]
jl 0x85c495
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebp
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0xe8]
add edx, edx
add edx, edx
add edx, edx
add eax, 2
add dword [esp + 0x58], edx
cmp eax, ebx
jle 0x85c210
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov eax, edx
add esp, 0xdc
pop ebp
pop edi
ret
lea edx, [ebx + ebx]
add edx, ebx
mov ebx, edx
sar ebx, 1
shr ebx, 0x1e
add ebx, edx
sar ebx, 2
mov dword [esp + 0x4c], ebx
jmp 0x85c466
xor eax, eax
add esp, 0xdc
pop ebp
pop edi
ret