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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push edi
push esi
push ebx
sub esp, 0xd4
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x48]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xa8], eax
cmp ecx, 8
mov dword [esp + 0xa4], edx
jl 0x8584af
mov eax, dword [ebp + 0x10]
cmp eax, 4
jge 0x8584da
mov eax, 2
cmp edx, 4
cmove edx, eax
mov dword [esp + 0xa4], edx
cmp ecx, 4
jl 0x8584ce
mov eax, dword [ebp + 0x10]
cmp eax, 2
jge 0x8584da
mov eax, 1
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x34]
push eax
call fcn.0086b17c
mov dword [esp + 0xa0], eax
test eax, eax
jne 0x858554
xor edi, edi
mov dword [esp + 0xac], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xb4], esi
xor ebx, ebx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x859428
mov eax, dword [ebp + 0x30]
lea edx, [eax + eax]
mov dword [esp + 0x9c], edx
push edx
call fcn.0086b17c
mov dword [esp + 0x98], eax
test eax, eax
jne 0x8585df
xor edi, edi
mov dword [esp + 0x94], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xac], esi
xor ebx, ebx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x8593e1
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0x94], eax
test eax, eax
je 0x859d59
mov eax, dword [esp + 0xa4]
cmp eax, 1
je 0x8598ea
mov edx, dword [ebp + 0x20]
cvtsi2sd xmm2, edx
mulsd xmm2, qword [ebp + 0x38]
xorps xmm1, xmm1
movsd xmm0, qword [0x89ff78]
movsd qword [esp + 0x88], xmm1
comisd xmm2, xmm0
jbe 0x858644
lea eax, [edx - 1]
cvtsi2sd xmm1, eax
subsd xmm2, xmm0
divsd xmm1, xmm2
movsd qword [esp + 0x60], xmm1
jmp 0x858653
movsd xmm1, qword [esp + 0x88]
movsd qword [esp + 0x60], xmm1
mov eax, dword [ebp + 0x24]
movsd xmm1, qword [ebp + 0x40]
cvtsi2sd xmm2, eax
mulsd xmm2, xmm1
comisd xmm2, xmm0
jbe 0x858680
lea eax, [eax - 1]
cvtsi2sd xmm1, eax
subsd xmm2, xmm0
divsd xmm1, xmm2
movsd qword [esp + 0x70], xmm1
jmp 0x85868f
movsd xmm1, qword [esp + 0x88]
movsd qword [esp + 0x70], xmm1
movsd xmm1, qword [ebp + 0x38]
sar edx, 1
cvtsi2sd xmm2, edx
mulsd xmm2, xmm1
comisd xmm2, xmm0
jbe 0x8586bb
add edx, 0xffffffff
cvtsi2sd xmm1, edx
subsd xmm2, xmm0
divsd xmm1, xmm2
movsd qword [esp + 0x68], xmm1
jmp 0x8586ca
movsd xmm0, qword [esp + 0x88]
movsd qword [esp + 0x68], xmm0
movsd xmm0, qword [esp + 0x88]
mov eax, dword [esp + 0xa4]
movsd qword [esp + 0x78], xmm0
movsd qword [esp + 0x80], xmm0
cmp eax, 2
jne 0x8589fb
mov eax, dword [ebp + 0x34]
push eax
call 0x72de9c
mov dword [esp + 0xac], eax
test eax, eax
jne 0x858765
xor edi, edi
mov dword [esp + 0xb4], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xb0], esi
xor ebx, ebx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x8593e1
mov eax, dword [ebp + 0x30]
shl eax, 2
push eax
call 0x72de9c
mov dword [esp + 0xb4], eax
test eax, eax
jne 0x8587d4
xor edi, edi
mov dword [esp + 0xb0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xcc], esi
xor ebx, ebx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x8593e1
mov eax, dword [esp + 0x9c]
push eax
call 0x72de9c
mov dword [esp + 0xb0], eax
test eax, eax
je 0x8595b7
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x85887c
movsd xmm0, qword [0x89ff68]
xor eax, eax
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 0x1c]
add edx, 0xffffffff
movsd xmm4, qword [esp + 0x80]
movsd xmm3, qword [esp + 0x70]
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0xa0]
movaps xmm1, xmm0
addsd xmm1, xmm4
cvttsd2si ebx, xmm1
cmp ebx, edx
jne 0x858848
add ebx, 0xffffffff
mov edi, 0x4000
mov word [ecx + eax*2], di
jmp 0x858867
cvtsi2sd xmm1, ebx
movaps xmm2, xmm4
subsd xmm2, xmm1
mulsd xmm2, qword [0x89ff70]
addsd xmm2, xmm0
cvttsd2si edi, xmm2
mov word [ecx + eax*2], di
imul ebx, dword [ebp + 0x14]
addsd xmm4, xmm3
mov dword [esi + eax*4], ebx
mov ebx, dword [ebp + 0x34]
add eax, 1
cmp eax, ebx
jl 0x85882b
mov eax, dword [esp + 0x9c]
test eax, eax
jle 0x85893a
movsd xmm0, qword [0x89ff68]
xor edx, edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x18]
add eax, 0xffffffff
movsd xmm4, qword [esp + 0x78]
movsd xmm3, qword [esp + 0x60]
mov ecx, dword [esp + 0xb4]
mov esi, dword [esp + 0x98]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x80]
movaps xmm1, xmm0
addsd xmm1, xmm4
cvttsd2si ebx, xmm1
cmp ebx, eax
jne 0x8588ef
add ebx, 0xffffffff
mov eax, edx
shl eax, 2
xor edi, edi
mov word [ecx + eax], di
mov edi, 0x4000
mov word [ecx + edx*4 + 2], di
jmp 0x858923
cvtsi2sd xmm1, ebx
movaps xmm2, xmm4
subsd xmm2, xmm1
mulsd xmm2, qword [0x89ff70]
addsd xmm2, xmm0
cvttsd2si eax, xmm2
movzx edi, ax
mov word [ecx + edx*4 + 2], di
mov eax, edx
shl eax, 2
neg edi
add edi, 0x4000
mov word [ecx + eax], di
add ebx, ebx
mov dword [eax + esi], ebx
mov eax, dword [esp + 0x9c]
add edx, 1
addsd xmm4, xmm3
cmp edx, eax
jl 0x8588bf
mov eax, dword [ebp + 0x30]
test eax, eax
jle 0x858d2f
movsd xmm0, qword [0x89ff68]
xor edx, edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x18]
sar eax, 1
add eax, 0xffffffff
movsd xmm3, qword [esp + 0x68]
movsd xmm4, qword [esp + 0x88]
mov ecx, dword [esp + 0xb0]
mov esi, dword [esp + 0x94]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x90]
movaps xmm1, xmm0
addsd xmm1, xmm4
cvttsd2si ebx, xmm1
cmp ebx, eax
jne 0x8589ae
add ebx, 0xffffffff
mov eax, edx
shl eax, 2
xor edi, edi
mov word [ecx + eax], di
mov edi, 0x4000
mov word [ecx + edx*4 + 2], di
jmp 0x8589e2
cvtsi2sd xmm1, ebx
movaps xmm2, xmm4
subsd xmm2, xmm1
mulsd xmm2, qword [0x89ff70]
addsd xmm2, xmm0
cvttsd2si eax, xmm2
movzx edi, ax
mov word [ecx + edx*4 + 2], di
mov eax, edx
shl eax, 2
neg edi
add edi, 0x4000
mov word [ecx + eax], di
shl ebx, 2
mov dword [eax + esi], ebx
mov eax, dword [ebp + 0x30]
add edx, 1
addsd xmm4, xmm3
cmp edx, eax
jl 0x85897e
jmp 0x858d2f
mov eax, dword [ebp + 0x34]
push eax
call fcn.0086b17c
mov dword [esp + 0xac], eax
test eax, eax
jne 0x858a6e
xor edi, edi
mov dword [esp + 0xb4], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xb0], esi
xor ebx, ebx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x8593e1
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov dword [esp + 0xb4], eax
test eax, eax
jne 0x858ade
xor edi, edi
mov dword [esp + 0xb0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xcc], esi
xor ebx, ebx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x8593e1
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0xb0], eax
test eax, eax
je 0x8595b7
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x858bb3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x1c]
xor edx, edx
mov ebx, ecx
sub ebx, eax
movsd xmm4, qword [esp + 0x80]
movsd xmm3, qword [esp + 0x70]
add ebx, 0xffffffff
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0xa0]
movsd xmm0, qword [0x89ff68]
addsd xmm0, xmm4
mov eax, dword [esp + 0x90]
cvttsd2si ecx, xmm0
cmp ecx, eax
jne 0x858b60
mov eax, dword [esp + 0xac]
add ecx, 0xfffffffe
mov esi, edx
shl esi, 2
mov dword [eax + esi], 0x40000000
jmp 0x858b9a
mov eax, dword [ebp + 0x1c]
add eax, ecx
jne 0x858b6c
add ecx, 1
jmp 0x858b7a
mov esi, dword [ebp + 0x10]
lea edi, [esi - 2]
lea esi, [ecx - 1]
cmp eax, edi
cmove ecx, esi
cvtsi2sd xmm0, ecx
mov eax, dword [esp + 0xac]
mov esi, edx
shl esi, 2
movaps xmm1, xmm4
subsd xmm1, xmm0
cvtsd2ss xmm2, xmm1
movss dword [eax + esi], xmm2
imul ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x34]
add edx, 1
mov dword [esi + ebx], ecx
addsd xmm4, xmm3
cmp edx, eax
jl 0x858b2d
mov eax, dword [esp + 0x9c]
test eax, eax
jle 0x858c71
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
xor eax, eax
sub edx, ecx
movsd xmm4, qword [esp + 0x78]
movsd xmm3, qword [esp + 0x60]
mov ecx, dword [esp + 0xb4]
lea ebx, [edx - 1]
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x80], edx
movsd xmm0, qword [0x89ff68]
addsd xmm0, xmm4
mov esi, dword [esp + 0x90]
cvttsd2si edx, xmm0
cmp edx, esi
jne 0x858c23
add edx, 0xfffffffe
mov esi, eax
shl esi, 2
mov dword [ecx + esi], 0x40000000
jmp 0x858c5a
mov esi, dword [ebp + 0x18]
add esi, edx
jne 0x858c2f
add edx, 1
jmp 0x858c41
mov esi, dword [esp + 0x80]
lea edi, [esi - 2]
lea esi, [edx - 1]
cmp edx, edi
cmove edx, esi
cvtsi2sd xmm0, edx
mov esi, eax
shl esi, 2
movaps xmm1, xmm4
subsd xmm1, xmm0
cvtsd2ss xmm2, xmm1
movss dword [ecx + esi], xmm2
add edx, edx
mov dword [esi + ebx], edx
mov edx, dword [esp + 0x9c]
add eax, 1
addsd xmm4, xmm3
cmp eax, edx
jl 0x858bf7
mov eax, dword [ebp + 0x30]
test eax, eax
jle 0x858d2f
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
xor eax, eax
sub edx, ecx
sar edx, 1
movsd xmm3, qword [esp + 0x68]
movsd xmm4, qword [esp + 0x88]
mov ecx, dword [esp + 0xb0]
lea ebx, [edx - 1]
mov dword [esp + 0x80], ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x90], edx
movsd xmm0, qword [0x89ff68]
addsd xmm0, xmm4
mov esi, dword [esp + 0x80]
cvttsd2si edx, xmm0
cmp edx, esi
jne 0x858ce2
add edx, 0xfffffffe
mov esi, eax
shl esi, 2
mov dword [ecx + esi], 0x40000000
jmp 0x858d1b
mov esi, dword [ebp + 0x18]
sar esi, 1
add esi, edx
jne 0x858cf0
add edx, 1
jmp 0x858d02
mov esi, dword [esp + 0x90]
lea edi, [esi - 2]
lea esi, [edx - 1]
cmp edx, edi
cmove edx, esi
cvtsi2sd xmm0, edx
mov esi, eax
shl esi, 2
movaps xmm1, xmm4
subsd xmm1, xmm0
cvtsd2ss xmm2, xmm1
movss dword [ecx + esi], xmm2
shl edx, 2
mov dword [esi + ebx], edx
mov edx, dword [ebp + 0x30]
add eax, 1
addsd xmm4, xmm3
cmp eax, edx
jl 0x858cb6
mov eax, dword [esp + 0xa4]
cmp eax, 2
jl 0x858f85
cmp eax, 2
je 0x859639
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov dword [esp + 0xcc], eax
test eax, eax
jne 0x858daa
xor edi, edi
mov dword [esp + 0xc0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xc8], esi
xor ebx, ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x8593d6
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0xc8], eax
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0xc4], eax
test eax, eax
jne 0x858e0a
xor edi, edi
mov dword [esp + 0xc0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], eax
xor ebx, ebx
mov eax, 0xfffffff7
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
jmp 0x8593d6
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov dword [esp + 0xc0], eax
test eax, eax
jne 0x858e57
xor edi, edi
mov dword [esp + 0xbc], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xb8], esi
mov dword [esp + 0x8c], eax
xor ebx, ebx
mov eax, 0xfffffff7
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], esi
jmp 0x8593d6
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0xbc], eax
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0xb8], eax
test eax, eax
je 0x859612
mov eax, dword [esp + 0xa4]
cmp eax, 4
jge 0x858eab
xor edi, edi
mov dword [esp + 0x8c], edi
xor esi, esi
mov dword [esp + 0x88], esi
xor ebx, ebx
mov dword [esp + 0x84], esi
jmp 0x858fca
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov dword [esp + 0x8c], eax
test eax, eax
jne 0x858ee3
xor edi, edi
xor esi, esi
mov dword [esp + 0x88], esi
xor eax, eax
mov dword [esp + 0x84], eax
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x8593d6
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0x88], eax
test eax, eax
jne 0x858f10
xor edi, edi
xor esi, esi
xor eax, eax
mov dword [esp + 0x84], eax
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x8593d6
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0x84], eax
test eax, eax
jne 0x858f34
xor edi, edi
xor esi, esi
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x8593d6
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov edi, eax
test edi, edi
jne 0x858f55
xor esi, esi
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x8593d6
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov esi, eax
test esi, esi
jne 0x858f70
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x8593d6
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov ebx, eax
test ebx, ebx
je 0x859608
jmp 0x858fca
xor edi, edi
mov dword [esp + 0xcc], edi
xor esi, esi
mov dword [esp + 0xc0], esi
xor ebx, ebx
mov dword [esp + 0xc8], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], esi
mov eax, dword [esp + 0xa4]
cmp eax, 1
je 0x859300
cmp eax, 2
jne 0x859218
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0xc8]
mov dword [esp + 0x80], ebx
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edx
mov dword [esp + 0x90], edi
mov edi, dword [ebx]
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x74], eax
lea esi, [edi - 1]
add edi, 1
cmp ebx, 0
cmovg edi, esi
mov dword [esp + 0x60], edi
push eax
push edx
push ecx
mov eax, dword [esp + 0xbc]
push eax
mov eax, dword [esp + 0xc4]
push eax
mov eax, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0xb0]
push eax
mov eax, dword [ebp + 0x30]
push eax
mov eax, dword [ebp + 8]
push eax
mov ebx, dword [esp + 0xa4]
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xa0]
call fcn.00869200
add esp, 0x24
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x8592f9
xor eax, eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x9c], esi
mov esi, eax
mov dword [esp + 0x7c], edi
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + esi*4]
mov edx, dword [ebp + 0x14]
test edx, edx
jle 0x859809
mov edx, dword [esp + 0x60]
cmp ebx, edx
jle 0x8591b0
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x70], edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x14]
lea eax, [eax + edi]
add eax, ebx
mov dword [esp + 0x74], edx
push edx
push ecx
push esi
mov edx, dword [esp + 0xbc]
push edx
mov edx, dword [esp + 0xc4]
push edx
mov edx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0xb0]
push edx
mov edx, dword [ebp + 0x30]
push edx
push eax
mov esi, dword [esp + 0x9c]
call fcn.00869200
add esp, 0x24
mov edx, dword [esp + 0x60]
add edx, dword [ebp + 0x14]
cmp ebx, edx
jle 0x8591ac
mov edx, dword [ebp + 8]
lea eax, [edx + ebx]
mov ecx, dword [esp + 0x90]
push ecx
mov edi, dword [esp + 0x6c]
push edi
mov edx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0xbc]
push edx
mov edx, dword [esp + 0xc4]
push edx
mov edx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0xb0]
push edx
mov edx, dword [ebp + 0x30]
push edx
push eax
call fcn.00869200
add esp, 0x24
mov dword [esp + 0x60], ebx
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0x74]
push ecx
mov ebx, dword [esp + 0x94]
push ebx
mov edi, dword [esp + 0x6c]
push edi
movzx eax, word [edx + esi*2]
mov edx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x84]
push edx
mov edx, dword [ebp + 0x30]
push eax
push edx
mov edx, dword [esp + 0xc8]
push edx
call fcn.00869460
add esp, 0x24
mov edx, dword [esp + 0xa8]
add edx, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x34]
add esi, 1
mov dword [esp + 0xa8], edx
cmp esi, ecx
jl 0x8590bf
jmp 0x8593c2
cmp eax, 4
jne 0x8592f9
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x5c], ebx
call fcn.00859dc0
xor eax, eax
jmp 0x8593d6
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x8592f9
xor ecx, ecx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x9c], esi
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0xa8]
mov ebx, dword [esi + ecx*4]
add ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x30]
mov edx, edi
test eax, eax
jle 0x8593b1
xor eax, eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x90], ecx
mov dword [esp + 0xa8], edi
mov esi, dword [esp + 0x98]
mov ebx, dword [esp + 0x94]
mov edi, dword [esp + 0x74]
mov ecx, dword [esi + eax*8]
mov esi, dword [esi + eax*8 + 4]
mov ebx, dword [ebx + eax*4]
movzx ecx, byte [ecx + edi]
mov dword [esp + 0x78], ebx
add eax, 1
mov byte [edx], cl
mov ecx, ebx
movzx ebx, byte [ecx + edi + 1]
mov byte [edx + 1], bl
movzx ecx, byte [esi + edi]
mov byte [edx + 2], cl
mov ecx, dword [esp + 0x78]
movzx ecx, byte [ecx + edi + 3]
mov byte [edx + 3], cl
add edx, 4
mov ecx, dword [ebp + 0x30]
cmp eax, ecx
jl 0x85934c
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0xa8]
add edi, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x34]
add ecx, 1
cmp ecx, eax
jl 0x859329
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x9c]
mov edi, dword [esp + 0x7c]
xor eax, eax
mov edx, dword [esp + 0xa0]
test edx, edx
je 0x8593f6
mov edx, dword [esp + 0xa0]
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x98]
test edx, edx
je 0x85940f
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x94]
test edx, edx
je 0x859428
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xa4]
cmp edx, 2
jl 0x8595aa
mov edx, dword [esp + 0xb4]
test edx, edx
je 0x859451
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xb0]
test edx, edx
je 0x85946a
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xcc]
test edx, edx
je 0x859483
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xc8]
test edx, edx
je 0x85949c
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xc4]
test edx, edx
je 0x8594b5
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xc0]
test edx, edx
je 0x8594ce
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xbc]
test edx, edx
je 0x8594e7
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xb8]
test edx, edx
je 0x859500
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xac]
test edx, edx
je 0x859519
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xa4]
cmp edx, 4
jl 0x8595aa
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x859542
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x88]
test edx, edx
je 0x85955b
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
test edx, edx
je 0x859574
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
test edi, edi
je 0x859586
push edi
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
test esi, esi
je 0x859598
push esi
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
test ebx, ebx
je 0x8595aa
push ebx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
add esp, 0xd4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor edi, edi
mov dword [esp + 0xcc], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xc0], esi
xor ebx, ebx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x8593e1
mov eax, 0xfffffff7
jmp 0x8593d6
xor edi, edi
mov dword [esp + 0x8c], edi
xor esi, esi
mov dword [esp + 0x88], esi
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x8593d6
mov eax, dword [esp + 0x9c]
push eax
call 0x72de9c
mov dword [esp + 0xcc], eax
test eax, eax
jne 0x85969b
xor edi, edi
mov dword [esp + 0xc0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xc8], esi
xor ebx, ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x8593d6
mov eax, dword [ebp + 0x30]
push eax
call 0x72de9c
mov dword [esp + 0xc8], eax
test eax, eax
jne 0x8596f2
xor edi, edi
mov dword [esp + 0xc0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc4], eax
xor ebx, ebx
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x8593d6
mov eax, dword [ebp + 0x30]
push eax
call 0x72de9c
mov dword [esp + 0xc4], eax
test eax, eax
jne 0x859742
xor edi, edi
mov dword [esp + 0xc0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], eax
xor ebx, ebx
mov eax, 0xfffffff7
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
jmp 0x8593d6
mov eax, dword [esp + 0x9c]
push eax
call 0x72de9c
mov dword [esp + 0xc0], eax
test eax, eax
jne 0x85978f
xor edi, edi
mov dword [esp + 0xbc], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xb8], esi
mov dword [esp + 0x8c], eax
xor ebx, ebx
mov eax, 0xfffffff7
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], esi
jmp 0x8593d6
mov eax, dword [ebp + 0x30]
push eax
call 0x72de9c
mov dword [esp + 0xbc], eax
test eax, eax
jne 0x8597d1
xor edi, edi
mov dword [esp + 0xb8], edi
xor esi, esi
mov dword [esp + 0x8c], esi
xor eax, eax
mov dword [esp + 0x88], eax
xor ebx, ebx
mov eax, 0xfffffff7
mov dword [esp + 0x84], esi
jmp 0x8593d6
mov eax, dword [ebp + 0x30]
push eax
call 0x72de9c
mov dword [esp + 0xb8], eax
test eax, eax
je 0x859612
xor edi, edi
mov dword [esp + 0x8c], edi
xor esi, esi
mov dword [esp + 0x88], esi
xor ebx, ebx
mov dword [esp + 0x84], esi
jmp 0x858fe3
mov edx, dword [esp + 0x60]
cmp ebx, edx
jge 0x8591b0
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x70], edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x14]
lea eax, [eax + edi]
add eax, ebx
mov dword [esp + 0x74], edx
push edx
push ecx
push esi
mov edx, dword [esp + 0xbc]
push edx
mov edx, dword [esp + 0xc4]
push edx
mov edx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0xb0]
push edx
mov edx, dword [ebp + 0x30]
push edx
push eax
mov esi, dword [esp + 0x9c]
call fcn.00869200
add esp, 0x24
mov edx, dword [esp + 0x60]
add edx, dword [ebp + 0x14]
cmp ebx, edx
jge 0x8591ac
mov edx, dword [ebp + 8]
lea eax, [edx + ebx]
mov ecx, dword [esp + 0x90]
push ecx
mov edi, dword [esp + 0x6c]
push edi
mov edx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0xbc]
push edx
mov edx, dword [esp + 0xc4]
push edx
mov edx, dword [esp + 0xa8]
push edx
mov edx, dword [esp + 0xb0]
push edx
mov edx, dword [ebp + 0x30]
push edx
push eax
call fcn.00869200
add esp, 0x24
jmp 0x8591ac
movsd xmm1, qword [0x89ff78]
movsd xmm3, qword [0x89ff78]
divsd xmm1, qword [ebp + 0x38]
divsd xmm3, qword [ebp + 0x40]
mov eax, dword [ebp + 0x34]
movsd xmm2, qword [0x89ff60]
movaps xmm0, xmm2
mulsd xmm0, xmm1
mulsd xmm2, xmm3
test eax, eax
jle 0x859a79
mov ecx, dword [ebp + 0x34]
mov eax, 0x80000001
imul ecx
add edx, ecx
sar ecx, 0x1f
sub edx, ecx
je 0x859d2d
mov esi, dword [esp + 0xa0]
xor eax, eax
movsd xmm4, qword [0x89ff68]
movsd xmm5, qword [0x89ff68]
addsd xmm4, xmm2
cvttsd2si ecx, xmm4
mov dword [esi + eax*8], ecx
addsd xmm2, xmm3
addsd xmm5, xmm2
cvttsd2si ebx, xmm5
mov dword [esi + eax*8 + 4], ebx
add eax, 1
addsd xmm2, xmm3
cmp eax, edx
jb 0x859942
lea ecx, [eax + eax + 1]
mov eax, dword [ebp + 0x34]
lea edx, [ecx - 1]
cmp eax, edx
jbe 0x85999d
addsd xmm2, qword [0x89ff68]
mov edx, dword [esp + 0xa0]
cvttsd2si eax, xmm2
mov dword [edx + ecx*4 - 4], eax
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x859a79
mov eax, dword [esp + 0xa0]
and eax, 0xf
je 0x8599c4
test al, 3
jne 0x859d26
neg eax
add eax, 0x10
shr eax, 2
mov edx, dword [ebp + 0x34]
lea ecx, [eax + 4]
cmp edx, ecx
jl 0x859d26
mov ecx, dword [ebp + 0x34]
mov edx, ecx
sub edx, eax
and edx, 3
neg edx
add edx, ecx
test eax, eax
jbe 0x8599ff
mov ebx, dword [esp + 0xa0]
lea ecx, [ebx + eax*4]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebx]
imul esi, edi
mov dword [ebx], esi
add ebx, 4
cmp ebx, ecx
jb 0x8599f1
mov ecx, dword [ebp + 0x14]
movd xmm4, ecx
punpckldq xmm4, xmm4
movdqa xmm2, xmmword [0x89ff50]
punpckldq xmm4, xmm4
movdqa xmm3, xmm4
psrlq xmm3, 0x20
mov ecx, dword [esp + 0xa0]
movdqa xmm5, xmmword [ecx + eax*4]
movdqa xmm6, xmm4
pmuludq xmm6, xmm5
psrlq xmm5, 0x20
pand xmm6, xmm2
pmuludq xmm5, xmm3
psllq xmm5, 0x20
por xmm6, xmm5
movdqa xmmword [ecx + eax*4], xmm6
add eax, 4
cmp eax, edx
jb 0x859a26
mov eax, dword [ebp + 0x34]
cmp edx, eax
jae 0x859a79
mov ecx, dword [esp + 0xa0]
mov esi, dword [ebp + 0x34]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ecx + edx*4]
imul eax, ebx
mov dword [ecx + edx*4], eax
add edx, 1
cmp edx, esi
jb 0x859a69
mov eax, dword [ebp + 0x30]
test eax, eax
jle 0x859c51
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
cmp eax, edx
jbe 0x859aae
mov eax, dword [ebp + 0x30]
shl eax, 2
mov edx, dword [esp + 0x94]
sub edx, dword [esp + 0x98]
cmp eax, edx
jb 0x859ae0
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
cmp eax, edx
jbe 0x859b9c
mov eax, dword [ebp + 0x30]
shl eax, 2
mov edx, dword [esp + 0x98]
sub edx, dword [esp + 0x94]
cmp eax, edx
jae 0x859b9c
mov ecx, dword [ebp + 0x30]
mov eax, 0x80000001
imul ecx
add edx, ecx
sar ecx, 0x1f
sub edx, ecx
je 0x859d37
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
xor ebx, ebx
movsd xmm2, qword [0x89ff68]
movsd xmm3, qword [0x89ff68]
addsd xmm2, xmm0
cvttsd2si edi, xmm2
lea esi, [edi + edi]
mov dword [ecx + ebx*8], esi
shl edi, 2
mov dword [eax + ebx*8], edi
addsd xmm0, xmm1
addsd xmm3, xmm0
cvttsd2si edi, xmm3
lea esi, [edi + edi]
mov dword [ecx + ebx*8 + 4], esi
shl edi, 2
mov dword [eax + ebx*8 + 4], edi
addsd xmm0, xmm1
add ebx, 1
cmp ebx, edx
jb 0x859b07
lea ecx, [ebx + ebx]
lea eax, [ebx + ebx + 1]
mov edx, dword [ebp + 0x30]
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x859c53
movsd xmm2, qword [0x89ff68]
addsd xmm2, xmm0
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
cvttsd2si ebx, xmm2
lea edx, [ebx + ebx]
mov dword [ecx + eax*4 - 4], edx
shl ebx, 2
mov ecx, eax
mov dword [esi + eax*4 - 4], ebx
addsd xmm0, xmm1
jmp 0x859c53
mov ecx, dword [ebp + 0x30]
mov eax, 0x80000001
imul ecx
add edx, ecx
sar ecx, 0x1f
sub edx, ecx
je 0x859d43
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
xor ebx, ebx
movsd xmm2, qword [0x89ff68]
movsd xmm3, qword [0x89ff68]
addsd xmm2, xmm0
cvttsd2si edi, xmm2
lea esi, [edi + edi]
mov dword [ecx + ebx*8], esi
shl edi, 2
mov dword [eax + ebx*8], edi
addsd xmm0, xmm1
addsd xmm3, xmm0
cvttsd2si edi, xmm3
lea esi, [edi + edi]
mov dword [ecx + ebx*8 + 4], esi
shl edi, 2
mov dword [eax + ebx*8 + 4], edi
addsd xmm0, xmm1
add ebx, 1
cmp ebx, edx
jb 0x859bc3
lea ecx, [ebx + ebx]
lea eax, [ebx + ebx + 1]
mov edx, dword [ebp + 0x30]
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x859c53
movsd xmm2, qword [0x89ff68]
addsd xmm2, xmm0
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
cvttsd2si ebx, xmm2
lea edx, [ebx + ebx]
mov dword [ecx + eax*4 - 4], edx
shl ebx, 2
mov ecx, eax
mov dword [esi + eax*4 - 4], ebx
addsd xmm0, xmm1
jmp 0x859c53
xor ecx, ecx
mov eax, dword [esp + 0x9c]
cmp ecx, eax
jge 0x859d0a
mov ebx, eax
sub ebx, ecx
mov dword [esp + 0x60], ebx
mov eax, 0x80000001
imul ebx
add edx, ebx
sar ebx, 0x1f
sub edx, ebx
je 0x859d4f
mov ebx, dword [esp + 0x98]
xor eax, eax
lea ebx, [ebx + ecx*4]
movsd xmm2, qword [0x89ff68]
movsd xmm3, qword [0x89ff68]
addsd xmm2, xmm0
cvttsd2si esi, xmm2
add esi, esi
mov dword [ebx + eax*8], esi
addsd xmm0, xmm1
addsd xmm3, xmm0
cvttsd2si edi, xmm3
add edi, edi
mov dword [ebx + eax*8 + 4], edi
add eax, 1
addsd xmm0, xmm1
cmp eax, edx
jb 0x859c8a
lea ebx, [eax + eax + 1]
mov eax, dword [esp + 0x60]
lea edx, [ebx - 1]
cmp eax, edx
jbe 0x859d0a
addsd xmm0, qword [0x89ff68]
mov edx, dword [esp + 0x98]
add ecx, ebx
xor ebx, ebx
mov dword [esp + 0xb4], ebx
cvttsd2si eax, xmm0
add eax, eax
mov dword [edx + ecx*4 - 4], eax
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
jmp 0x858d2f
xor eax, eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], eax
jmp 0x858d2f
xor edx, edx
jmp 0x859a55
mov ecx, 1
jmp 0x85997c
xor ecx, ecx
mov eax, 1
jmp 0x859b57
xor ecx, ecx
mov eax, 1
jmp 0x859c13
mov ebx, 1
jmp 0x859cc8
xor edi, edi
mov dword [esp + 0xac], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xb4], esi
xor ebx, ebx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x8593e1