Function at 0x85c8b0
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]
cmp ecx, 8
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], edx
jl 0x85c8e3
mov eax, dword [ebp + 0x10]
cmp eax, 4
jge 0x85c90e
mov eax, 2
cmp edx, 4
cmove edx, eax
mov dword [esp + 0xa4], edx
cmp ecx, 4
jl 0x85c902
mov eax, dword [ebp + 0x10]
cmp eax, 2
jge 0x85c90e
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 0x85c988
xor edi, edi
mov dword [esp + 0xac], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc0], eax
xor ebx, ebx
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 0x85d85c
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 0x85ca13
xor edi, edi
mov dword [esp + 0x94], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xac], esi
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xcc], eax
xor ebx, ebx
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 0x85d815
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0x94], eax
test eax, eax
je 0x85e192
mov eax, dword [esp + 0xa4]
cmp eax, 1
je 0x85dd1e
mov edx, dword [ebp + 0x20]
cvtsi2sd xmm2, edx
mulsd xmm2, qword [ebp + 0x38]
movsd xmm0, qword [0x8a0028]
comisd xmm2, xmm0
xorps xmm1, xmm1
movsd qword [esp + 0x88], xmm1
jbe 0x85ca78
lea eax, [edx - 1]
cvtsi2sd xmm1, eax
subsd xmm2, xmm0
divsd xmm1, xmm2
movsd qword [esp + 0x60], xmm1
jmp 0x85ca87
movsd xmm1, qword [esp + 0x88]
movsd qword [esp + 0x60], xmm1
mov eax, dword [ebp + 0x24]
cvtsi2sd xmm2, eax
movsd xmm1, qword [ebp + 0x40]
mulsd xmm2, xmm1
comisd xmm2, xmm0
jbe 0x85cab4
lea eax, [eax - 1]
cvtsi2sd xmm1, eax
subsd xmm2, xmm0
divsd xmm1, xmm2
movsd qword [esp + 0x70], xmm1
jmp 0x85cac3
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 0x85caef
add edx, 0xffffffff
cvtsi2sd xmm1, edx
subsd xmm2, xmm0
divsd xmm1, xmm2
movsd qword [esp + 0x68], xmm1
jmp 0x85cafe
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 0x85ce2f
mov eax, dword [ebp + 0x34]
push eax
call 0x72de9c
mov dword [esp + 0xac], eax
test eax, eax
jne 0x85cb99
xor edi, edi
mov dword [esp + 0xb4], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xb0], esi
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], eax
xor ebx, ebx
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 0x85d815
mov eax, dword [ebp + 0x30]
shl eax, 2
push eax
call 0x72de9c
mov dword [esp + 0xb4], eax
test eax, eax
jne 0x85cc08
xor edi, edi
mov dword [esp + 0xb0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xbc], eax
xor ebx, ebx
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 0x85d815
mov eax, dword [esp + 0x9c]
push eax
call 0x72de9c
mov dword [esp + 0xb0], eax
test eax, eax
je 0x85d9eb
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x85ccb0
movsd xmm0, qword [0x8a0018]
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 0x1c]
xor eax, eax
movsd xmm4, qword [esp + 0x80]
movsd xmm3, qword [esp + 0x70]
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0xa0]
add edx, 0xffffffff
movaps xmm1, xmm0
addsd xmm1, xmm4
cvttsd2si ebx, xmm1
cmp ebx, edx
jne 0x85cc7c
add ebx, 0xffffffff
mov edi, 0x4000
mov word [ecx + eax*2], di
jmp 0x85cc9b
cvtsi2sd xmm1, ebx
movaps xmm2, xmm4
subsd xmm2, xmm1
mulsd xmm2, qword [0x8a0020]
addsd xmm2, xmm0
cvttsd2si edi, xmm2
mov word [ecx + eax*2], di
imul ebx, dword [ebp + 0x14]
mov dword [esi + eax*4], ebx
mov ebx, dword [ebp + 0x34]
add eax, 1
addsd xmm4, xmm3
cmp eax, ebx
jl 0x85cc5f
mov eax, dword [esp + 0x9c]
test eax, eax
jle 0x85cd6e
movsd xmm0, qword [0x8a0018]
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x18]
xor edx, edx
movsd xmm4, qword [esp + 0x78]
movsd xmm3, qword [esp + 0x60]
mov ecx, dword [esp + 0xb4]
mov esi, dword [esp + 0x98]
add eax, 0xffffffff
mov dword [esp + 0x80], eax
movaps xmm1, xmm0
mov eax, dword [esp + 0x80]
addsd xmm1, xmm4
cvttsd2si ebx, xmm1
cmp ebx, eax
jne 0x85cd23
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 0x85cd57
cvtsi2sd xmm1, ebx
movaps xmm2, xmm4
subsd xmm2, xmm1
mulsd xmm2, qword [0x8a0020]
addsd xmm2, xmm0
cvttsd2si eax, xmm2
movzx edi, ax
mov eax, edx
shl eax, 2
mov word [ecx + edx*4 + 2], di
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 0x85ccf3
mov eax, dword [ebp + 0x30]
test eax, eax
jle 0x85d163
movsd xmm0, qword [0x8a0018]
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 0x18]
xor edx, edx
movsd xmm3, qword [esp + 0x68]
movsd xmm4, qword [esp + 0x88]
mov ecx, dword [esp + 0xb0]
mov esi, dword [esp + 0x94]
sar eax, 1
add eax, 0xffffffff
mov dword [esp + 0x90], eax
movaps xmm1, xmm0
mov eax, dword [esp + 0x90]
addsd xmm1, xmm4
cvttsd2si ebx, xmm1
cmp ebx, eax
jne 0x85cde2
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 0x85ce16
cvtsi2sd xmm1, ebx
movaps xmm2, xmm4
subsd xmm2, xmm1
mulsd xmm2, qword [0x8a0020]
addsd xmm2, xmm0
cvttsd2si eax, xmm2
movzx edi, ax
mov eax, edx
shl eax, 2
mov word [ecx + edx*4 + 2], di
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 0x85cdb2
jmp 0x85d163
mov eax, dword [ebp + 0x34]
push eax
call fcn.0086b17c
mov dword [esp + 0xac], eax
test eax, eax
jne 0x85cea2
xor edi, edi
mov dword [esp + 0xb4], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xb0], esi
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], eax
xor ebx, ebx
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 0x85d815
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov dword [esp + 0xb4], eax
test eax, eax
jne 0x85cf12
xor edi, edi
mov dword [esp + 0xb0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xbc], eax
xor ebx, ebx
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 0x85d815
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0xb0], eax
test eax, eax
je 0x85d9eb
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x85cfe7
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x1c]
movsd xmm4, qword [esp + 0x80]
movsd xmm3, qword [esp + 0x70]
xor edx, edx
mov ebx, ecx
sub ebx, eax
add ebx, 0xffffffff
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0xa0]
movsd xmm0, qword [0x8a0018]
mov eax, dword [esp + 0x90]
addsd xmm0, xmm4
cvttsd2si ecx, xmm0
cmp ecx, eax
jne 0x85cf94
mov eax, dword [esp + 0xac]
add ecx, 0xfffffffe
mov esi, edx
shl esi, 2
mov dword [eax + esi], 0x40000000
jmp 0x85cfce
mov eax, dword [ebp + 0x1c]
add eax, ecx
jne 0x85cfa0
add ecx, 1
jmp 0x85cfae
mov esi, dword [ebp + 0x10]
lea edi, [esi - 2]
lea esi, [ecx - 1]
cmp eax, edi
cmove ecx, esi
cvtsi2sd xmm0, ecx
movaps xmm1, xmm4
mov esi, edx
shl esi, 2
mov eax, dword [esp + 0xac]
subsd xmm1, xmm0
cvtsd2ss xmm2, xmm1
movss dword [eax + esi], xmm2
imul ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x34]
mov dword [esi + ebx], ecx
add edx, 1
addsd xmm4, xmm3
cmp edx, eax
jl 0x85cf61
mov eax, dword [esp + 0x9c]
test eax, eax
jle 0x85d0a5
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
movsd xmm4, qword [esp + 0x78]
movsd xmm3, qword [esp + 0x60]
xor eax, eax
sub edx, ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x80], edx
lea ebx, [edx - 1]
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0x98]
movsd xmm0, qword [0x8a0018]
mov esi, dword [esp + 0x90]
addsd xmm0, xmm4
cvttsd2si edx, xmm0
cmp edx, esi
jne 0x85d057
add edx, 0xfffffffe
mov esi, eax
shl esi, 2
mov dword [ecx + esi], 0x40000000
jmp 0x85d08e
mov esi, dword [ebp + 0x18]
add esi, edx
jne 0x85d063
add edx, 1
jmp 0x85d075
mov esi, dword [esp + 0x80]
lea edi, [esi - 2]
lea esi, [edx - 1]
cmp edx, edi
cmove edx, esi
cvtsi2sd xmm0, edx
movaps xmm1, xmm4
mov esi, eax
shl esi, 2
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 0x85d02b
mov eax, dword [ebp + 0x30]
test eax, eax
jle 0x85d163
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
movsd xmm3, qword [esp + 0x68]
movsd xmm4, qword [esp + 0x88]
xor eax, eax
sub edx, ecx
mov ecx, dword [esp + 0xb0]
sar edx, 1
mov dword [esp + 0x90], edx
lea ebx, [edx - 1]
mov dword [esp + 0x80], ebx
mov ebx, dword [esp + 0x94]
movsd xmm0, qword [0x8a0018]
mov esi, dword [esp + 0x80]
addsd xmm0, xmm4
cvttsd2si edx, xmm0
cmp edx, esi
jne 0x85d116
add edx, 0xfffffffe
mov esi, eax
shl esi, 2
mov dword [ecx + esi], 0x40000000
jmp 0x85d14f
mov esi, dword [ebp + 0x18]
sar esi, 1
add esi, edx
jne 0x85d124
add edx, 1
jmp 0x85d136
mov esi, dword [esp + 0x90]
lea edi, [esi - 2]
lea esi, [edx - 1]
cmp edx, edi
cmove edx, esi
cvtsi2sd xmm0, edx
movaps xmm1, xmm4
mov esi, eax
shl esi, 2
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 0x85d0ea
mov eax, dword [esp + 0xa4]
cmp eax, 2
jl 0x85d3b9
cmp eax, 2
je 0x85da6d
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov dword [esp + 0xcc], eax
test eax, eax
jne 0x85d1de
xor edi, edi
mov dword [esp + 0xc0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xc8], esi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb8], eax
xor ebx, ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x85d80a
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 0x85d23e
xor edi, edi
mov dword [esp + 0xc0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
xor ebx, ebx
mov dword [esp + 0x84], ebx
mov eax, 0xfffffff7
jmp 0x85d80a
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov dword [esp + 0xc0], eax
test eax, eax
jne 0x85d28b
xor edi, edi
mov dword [esp + 0xbc], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xb8], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x85d80a
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 0x85da46
mov eax, dword [esp + 0xa4]
cmp eax, 4
jge 0x85d2df
xor edi, edi
mov dword [esp + 0x8c], edi
xor esi, esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], esi
xor ebx, ebx
jmp 0x85d3fe
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov dword [esp + 0x8c], eax
test eax, eax
jne 0x85d317
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 0x85d80a
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0x88], eax
test eax, eax
jne 0x85d344
xor edi, edi
xor esi, esi
xor eax, eax
mov dword [esp + 0x84], eax
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x85d80a
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0x84], eax
test eax, eax
jne 0x85d368
xor edi, edi
xor esi, esi
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x85d80a
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov edi, eax
test edi, edi
jne 0x85d389
xor esi, esi
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x85d80a
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov esi, eax
test esi, esi
jne 0x85d3a4
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x85d80a
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov ebx, eax
test ebx, ebx
je 0x85da3c
jmp 0x85d3fe
xor edi, edi
mov dword [esp + 0xcc], edi
xor esi, esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc4], esi
xor ebx, ebx
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 0x85d734
cmp eax, 2
jne 0x85d64c
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.00869bd0
add esp, 0x24
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x85d72d
mov dword [esp + 0x80], ebx
mov dword [esp + 0x9c], esi
mov dword [esp + 0x7c], edi
xor eax, eax
mov esi, eax
mov ebx, dword [esp + 0xa0]
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebx + esi*4]
test edx, edx
jle 0x85dc3d
mov edx, dword [esp + 0x60]
cmp ebx, edx
jle 0x85d5e4
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 + 0x68], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x64], ecx
lea eax, [eax + edi]
mov dword [esp + 0x74], edx
push edx
push ecx
add eax, ebx
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.00869bd0
add esp, 0x24
mov edx, dword [esp + 0x60]
add edx, dword [ebp + 0x14]
cmp ebx, edx
jle 0x85d5e0
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x90]
push ecx
lea eax, [edx + ebx]
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.00869bd0
add esp, 0x24
mov dword [esp + 0x60], ebx
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0x74]
push ecx
movzx eax, word [edx + esi*2]
mov ebx, dword [esp + 0x94]
push ebx
mov edi, dword [esp + 0x6c]
push edi
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.00869e30
add esp, 0x24
mov edx, dword [esp + 0xa8]
add edx, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0xa8], edx
add esi, 1
cmp esi, ecx
jl 0x85d4f3
jmp 0x85d7f6
cmp eax, 4
jne 0x85d72d
mov eax, dword [ebp + 0x2c]
mov edx, dword [esp + 0xa8]
mov ecx, dword [ebp + 0x14]
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.0085e1f8
xor eax, eax
jmp 0x85d80a
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x85d72d
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]
xor ecx, ecx
mov eax, dword [ebp + 0x30]
mov ebx, dword [esi + ecx*4]
add ebx, dword [ebp + 8]
mov edx, edi
test eax, eax
jle 0x85d7e5
mov dword [esp + 0x74], ebx
mov dword [esp + 0x90], ecx
mov dword [esp + 0xa8], edi
xor eax, eax
mov esi, dword [esp + 0x98]
mov ebx, dword [esp + 0x94]
mov edi, dword [esp + 0x74]
mov ecx, dword [esi + eax*8]
mov ebx, dword [ebx + eax*4]
mov esi, dword [esi + eax*8 + 4]
movzx ecx, byte [ecx + edi]
mov dword [esp + 0x78], ebx
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]
add eax, 1
cmp eax, ecx
jl 0x85d780
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 0x85d75d
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 0x85d82a
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 0x85d843
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x94]
test edx, edx
je 0x85d85c
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xa4]
cmp edx, 2
jl 0x85d9de
mov edx, dword [esp + 0xb4]
test edx, edx
je 0x85d885
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xb0]
test edx, edx
je 0x85d89e
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xcc]
test edx, edx
je 0x85d8b7
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xc8]
test edx, edx
je 0x85d8d0
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xc4]
test edx, edx
je 0x85d8e9
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xc0]
test edx, edx
je 0x85d902
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xbc]
test edx, edx
je 0x85d91b
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xb8]
test edx, edx
je 0x85d934
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xac]
test edx, edx
je 0x85d94d
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xa4]
cmp edx, 4
jl 0x85d9de
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x85d976
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x88]
test edx, edx
je 0x85d98f
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
test edx, edx
je 0x85d9a8
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
test edi, edi
je 0x85d9ba
push edi
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
test esi, esi
je 0x85d9cc
push esi
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
test ebx, ebx
je 0x85d9de
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
mov dword [esp + 0xc8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], eax
xor ebx, ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x85d815
mov eax, 0xfffffff7
jmp 0x85d80a
xor edi, edi
mov dword [esp + 0x8c], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], eax
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x85d80a
mov eax, dword [esp + 0x9c]
push eax
call 0x72de9c
mov dword [esp + 0xcc], eax
test eax, eax
jne 0x85dacf
xor edi, edi
mov dword [esp + 0xc0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xc8], esi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb8], eax
xor ebx, ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x85d80a
mov eax, dword [ebp + 0x30]
push eax
call 0x72de9c
mov dword [esp + 0xc8], eax
test eax, eax
jne 0x85db26
xor edi, edi
mov dword [esp + 0xc0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], eax
xor ebx, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], eax
mov eax, 0xfffffff7
jmp 0x85d80a
mov eax, dword [ebp + 0x30]
push eax
call 0x72de9c
mov dword [esp + 0xc4], eax
test eax, eax
jne 0x85db76
xor edi, edi
mov dword [esp + 0xc0], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
xor ebx, ebx
mov dword [esp + 0x84], ebx
mov eax, 0xfffffff7
jmp 0x85d80a
mov eax, dword [esp + 0x9c]
push eax
call 0x72de9c
mov dword [esp + 0xc0], eax
test eax, eax
jne 0x85dbc3
xor edi, edi
mov dword [esp + 0xbc], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xb8], esi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x85d80a
mov eax, dword [ebp + 0x30]
push eax
call 0x72de9c
mov dword [esp + 0xbc], eax
test eax, eax
jne 0x85dc05
xor edi, edi
mov dword [esp + 0xb8], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x85d80a
mov eax, dword [ebp + 0x30]
push eax
call 0x72de9c
mov dword [esp + 0xb8], eax
test eax, eax
je 0x85da46
xor edi, edi
mov dword [esp + 0x8c], edi
xor esi, esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], esi
xor ebx, ebx
jmp 0x85d417
mov edx, dword [esp + 0x60]
cmp ebx, edx
jge 0x85d5e4
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 + 0x68], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x64], ecx
lea eax, [eax + edi]
mov dword [esp + 0x74], edx
push edx
push ecx
add eax, ebx
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.00869bd0
add esp, 0x24
mov edx, dword [esp + 0x60]
add edx, dword [ebp + 0x14]
cmp ebx, edx
jge 0x85d5e0
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x90]
push ecx
lea eax, [edx + ebx]
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.00869bd0
add esp, 0x24
jmp 0x85d5e0
movsd xmm1, qword [0x8a0028]
divsd xmm1, qword [ebp + 0x38]
movsd xmm3, qword [0x8a0028]
divsd xmm3, qword [ebp + 0x40]
movsd xmm2, qword [0x8a0010]
mulsd xmm2, xmm3
movsd xmm0, qword [0x8a0010]
mulsd xmm0, xmm1
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x85deb2
mov ecx, dword [ebp + 0x34]
mov eax, 0x80000001
imul ecx
add edx, ecx
sar ecx, 0x1f
sub edx, ecx
je 0x85e166
mov esi, dword [esp + 0xa0]
xor eax, eax
movsd xmm4, qword [0x8a0018]
movsd xmm5, qword [0x8a0018]
addsd xmm4, xmm2
addsd xmm2, xmm3
addsd xmm5, xmm2
cvttsd2si ecx, xmm4
cvttsd2si ebx, xmm5
addsd xmm2, xmm3
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], ebx
add eax, 1
cmp eax, edx
jb 0x85dd7b
lea ecx, [eax + eax + 1]
mov eax, dword [ebp + 0x34]
lea edx, [ecx - 1]
cmp eax, edx
jbe 0x85ddd6
addsd xmm2, qword [0x8a0018]
mov edx, dword [esp + 0xa0]
cvttsd2si eax, xmm2
mov dword [edx + ecx*4 - 4], eax
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x85deb2
mov eax, dword [esp + 0xa0]
and eax, 0xf
je 0x85ddfd
test al, 3
jne 0x85e15f
neg eax
add eax, 0x10
shr eax, 2
mov edx, dword [ebp + 0x34]
lea ecx, [eax + 4]
cmp edx, ecx
jl 0x85e15f
mov ecx, dword [ebp + 0x34]
mov edx, ecx
sub edx, eax
and edx, 3
neg edx
add edx, ecx
test eax, eax
jbe 0x85de38
mov ebx, dword [esp + 0xa0]
mov edi, dword [ebp + 0x14]
lea ecx, [ebx + eax*4]
mov esi, dword [ebx]
imul esi, edi
mov dword [ebx], esi
add ebx, 4
cmp ebx, ecx
jb 0x85de2a
mov ecx, dword [ebp + 0x14]
movdqa xmm2, xmmword [0x8a0000]
movd xmm4, ecx
punpckldq xmm4, xmm4
punpckldq xmm4, xmm4
movdqa xmm3, xmm4
psrlq xmm3, 0x20
mov ecx, dword [esp + 0xa0]
movdqa xmm6, xmm4
movdqa xmm5, xmmword [ecx + eax*4]
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 0x85de5f
mov eax, dword [ebp + 0x34]
cmp edx, eax
jae 0x85deb2
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 0x85dea2
mov eax, dword [ebp + 0x30]
test eax, eax
jle 0x85e08a
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
cmp eax, edx
jbe 0x85dee7
mov eax, dword [ebp + 0x30]
mov edx, dword [esp + 0x94]
shl eax, 2
sub edx, dword [esp + 0x98]
cmp eax, edx
jb 0x85df19
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
cmp eax, edx
jbe 0x85dfd5
mov eax, dword [ebp + 0x30]
mov edx, dword [esp + 0x98]
shl eax, 2
sub edx, dword [esp + 0x94]
cmp eax, edx
jae 0x85dfd5
mov ecx, dword [ebp + 0x30]
mov eax, 0x80000001
imul ecx
add edx, ecx
sar ecx, 0x1f
sub edx, ecx
je 0x85e170
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
xor ebx, ebx
movsd xmm2, qword [0x8a0018]
movsd xmm3, qword [0x8a0018]
addsd xmm2, xmm0
addsd xmm0, xmm1
addsd xmm3, xmm0
cvttsd2si edi, xmm2
lea esi, [edi + edi]
mov dword [ecx + ebx*8], esi
shl edi, 2
mov dword [eax + ebx*8], edi
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 0x85df40
lea ecx, [ebx + ebx]
lea eax, [ebx + ebx + 1]
mov edx, dword [ebp + 0x30]
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x85e08c
movsd xmm2, qword [0x8a0018]
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
addsd xmm2, xmm0
addsd xmm0, xmm1
cvttsd2si ebx, xmm2
lea edx, [ebx + ebx]
mov dword [ecx + eax*4 - 4], edx
shl ebx, 2
mov dword [esi + eax*4 - 4], ebx
mov ecx, eax
jmp 0x85e08c
mov ecx, dword [ebp + 0x30]
mov eax, 0x80000001
imul ecx
add edx, ecx
sar ecx, 0x1f
sub edx, ecx
je 0x85e17c
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
xor ebx, ebx
movsd xmm2, qword [0x8a0018]
movsd xmm3, qword [0x8a0018]
addsd xmm2, xmm0
addsd xmm0, xmm1
addsd xmm3, xmm0
cvttsd2si edi, xmm2
lea esi, [edi + edi]
mov dword [ecx + ebx*8], esi
shl edi, 2
mov dword [eax + ebx*8], edi
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 0x85dffc
lea ecx, [ebx + ebx]
lea eax, [ebx + ebx + 1]
mov edx, dword [ebp + 0x30]
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x85e08c
movsd xmm2, qword [0x8a0018]
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
addsd xmm2, xmm0
addsd xmm0, xmm1
cvttsd2si ebx, xmm2
lea edx, [ebx + ebx]
mov dword [ecx + eax*4 - 4], edx
shl ebx, 2
mov dword [esi + eax*4 - 4], ebx
mov ecx, eax
jmp 0x85e08c
xor ecx, ecx
mov eax, dword [esp + 0x9c]
cmp ecx, eax
jge 0x85e143
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 0x85e188
mov ebx, dword [esp + 0x98]
xor eax, eax
lea ebx, [ebx + ecx*4]
movsd xmm2, qword [0x8a0018]
movsd xmm3, qword [0x8a0018]
addsd xmm2, xmm0
addsd xmm0, xmm1
addsd xmm3, xmm0
cvttsd2si esi, xmm2
add esi, esi
mov dword [ebx + eax*8], esi
addsd xmm0, xmm1
cvttsd2si edi, xmm3
add edi, edi
mov dword [ebx + eax*8 + 4], edi
add eax, 1
cmp eax, edx
jb 0x85e0c3
lea ebx, [eax + eax + 1]
mov eax, dword [esp + 0x60]
lea edx, [ebx - 1]
cmp eax, edx
jbe 0x85e143
addsd xmm0, qword [0x8a0018]
mov edx, dword [esp + 0x98]
add ecx, ebx
cvttsd2si eax, xmm0
add eax, eax
mov dword [edx + ecx*4 - 4], eax
xor ecx, ecx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb0], ecx
jmp 0x85d163
xor eax, eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], eax
jmp 0x85d163
xor edx, edx
jmp 0x85de8e
mov ecx, 1
jmp 0x85ddb5
xor ecx, ecx
mov eax, 1
jmp 0x85df90
xor ecx, ecx
mov eax, 1
jmp 0x85e04c
mov ebx, 1
jmp 0x85e101
xor edi, edi
mov dword [esp + 0xac], edi
xor esi, esi
xor eax, eax
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc0], eax
xor ebx, ebx
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 0x85d815