Function at 0x854328
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 0x85435b
mov eax, dword [ebp + 0x10]
cmp eax, 4
jge 0x854386
mov eax, 2
cmp edx, 4
cmove edx, eax
mov dword [esp + 0xa4], edx
cmp ecx, 4
jl 0x85437a
mov eax, dword [ebp + 0x10]
cmp eax, 2
jge 0x854386
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 0x854400
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 0x8552d4
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 0x85448b
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 0x85528d
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0x94], eax
test eax, eax
je 0x855bdb
mov eax, dword [esp + 0xa4]
cmp eax, 1
je 0x855796
mov edx, dword [ebp + 0x20]
cvtsi2sd xmm2, edx
mulsd xmm2, qword [ebp + 0x38]
xorps xmm1, xmm1
movsd xmm0, qword [0x89fee0]
movsd qword [esp + 0x88], xmm1
comisd xmm2, xmm0
jbe 0x8544f0
lea eax, [edx - 1]
cvtsi2sd xmm1, eax
subsd xmm2, xmm0
divsd xmm1, xmm2
movsd qword [esp + 0x60], xmm1
jmp 0x8544ff
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 0x85452c
lea eax, [eax - 1]
cvtsi2sd xmm1, eax
subsd xmm2, xmm0
divsd xmm1, xmm2
movsd qword [esp + 0x70], xmm1
jmp 0x85453b
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 0x854567
add edx, 0xffffffff
cvtsi2sd xmm1, edx
subsd xmm2, xmm0
divsd xmm1, xmm2
movsd qword [esp + 0x68], xmm1
jmp 0x854576
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 0x8548a7
mov eax, dword [ebp + 0x34]
push eax
call 0x72de9c
mov dword [esp + 0xac], eax
test eax, eax
jne 0x854611
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 0x85528d
mov eax, dword [ebp + 0x30]
shl eax, 2
push eax
call 0x72de9c
mov dword [esp + 0xb4], eax
test eax, eax
jne 0x854680
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 0x85528d
mov eax, dword [esp + 0x9c]
push eax
call 0x72de9c
mov dword [esp + 0xb0], eax
test eax, eax
je 0x855463
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x854728
movsd xmm0, qword [0x89fed0]
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 0x8546f4
add ebx, 0xffffffff
mov edi, 0x4000
mov word [ecx + eax*2], di
jmp 0x854713
cvtsi2sd xmm1, ebx
movaps xmm2, xmm4
subsd xmm2, xmm1
mulsd xmm2, qword [0x89fed8]
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 0x8546d7
mov eax, dword [esp + 0x9c]
test eax, eax
jle 0x8547e6
movsd xmm0, qword [0x89fed0]
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 0x85479b
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 0x8547cf
cvtsi2sd xmm1, ebx
movaps xmm2, xmm4
subsd xmm2, xmm1
mulsd xmm2, qword [0x89fed8]
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 0x85476b
mov eax, dword [ebp + 0x30]
test eax, eax
jle 0x854bdb
movsd xmm0, qword [0x89fed0]
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 0x85485a
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 0x85488e
cvtsi2sd xmm1, ebx
movaps xmm2, xmm4
subsd xmm2, xmm1
mulsd xmm2, qword [0x89fed8]
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 0x85482a
jmp 0x854bdb
mov eax, dword [ebp + 0x34]
push eax
call fcn.0086b17c
mov dword [esp + 0xac], eax
test eax, eax
jne 0x85491a
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 0x85528d
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov dword [esp + 0xb4], eax
test eax, eax
jne 0x85498a
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 0x85528d
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0xb0], eax
test eax, eax
je 0x855463
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x854a5f
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 [0x89fed0]
addsd xmm0, xmm4
mov eax, dword [esp + 0x90]
cvttsd2si ecx, xmm0
cmp ecx, eax
jne 0x854a0c
mov eax, dword [esp + 0xac]
add ecx, 0xfffffffe
mov esi, edx
shl esi, 2
mov dword [eax + esi], 0x40000000
jmp 0x854a46
mov eax, dword [ebp + 0x1c]
add eax, ecx
jne 0x854a18
add ecx, 1
jmp 0x854a26
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 0x8549d9
mov eax, dword [esp + 0x9c]
test eax, eax
jle 0x854b1d
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 [0x89fed0]
addsd xmm0, xmm4
mov esi, dword [esp + 0x90]
cvttsd2si edx, xmm0
cmp edx, esi
jne 0x854acf
add edx, 0xfffffffe
mov esi, eax
shl esi, 2
mov dword [ecx + esi], 0x40000000
jmp 0x854b06
mov esi, dword [ebp + 0x18]
add esi, edx
jne 0x854adb
add edx, 1
jmp 0x854aed
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 0x854aa3
mov eax, dword [ebp + 0x30]
test eax, eax
jle 0x854bdb
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 [0x89fed0]
addsd xmm0, xmm4
mov esi, dword [esp + 0x80]
cvttsd2si edx, xmm0
cmp edx, esi
jne 0x854b8e
add edx, 0xfffffffe
mov esi, eax
shl esi, 2
mov dword [ecx + esi], 0x40000000
jmp 0x854bc7
mov esi, dword [ebp + 0x18]
sar esi, 1
add esi, edx
jne 0x854b9c
add edx, 1
jmp 0x854bae
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 0x854b62
mov eax, dword [esp + 0xa4]
cmp eax, 2
jl 0x854e31
cmp eax, 2
je 0x8554e5
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov dword [esp + 0xcc], eax
test eax, eax
jne 0x854c56
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 0x855282
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 0x854cb6
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 0x855282
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov dword [esp + 0xc0], eax
test eax, eax
jne 0x854d03
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 0x855282
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 0x8554be
mov eax, dword [esp + 0xa4]
cmp eax, 4
jge 0x854d57
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 0x854e76
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov dword [esp + 0x8c], eax
test eax, eax
jne 0x854d8f
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 0x855282
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0x88], eax
test eax, eax
jne 0x854dbc
xor edi, edi
xor esi, esi
xor eax, eax
mov dword [esp + 0x84], eax
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x855282
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov dword [esp + 0x84], eax
test eax, eax
jne 0x854de0
xor edi, edi
xor esi, esi
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x855282
mov eax, dword [esp + 0x9c]
push eax
call fcn.0086b17c
mov edi, eax
test edi, edi
jne 0x854e01
xor esi, esi
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x855282
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov esi, eax
test esi, esi
jne 0x854e1c
xor ebx, ebx
mov eax, 0xfffffff7
jmp 0x855282
mov eax, dword [ebp + 0x30]
push eax
call fcn.0086b17c
mov ebx, eax
test ebx, ebx
je 0x8554b4
jmp 0x854e76
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 0x8551ac
cmp eax, 2
jne 0x8550c4
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.00868830
add esp, 0x24
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x8551a5
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 0x8556b5
mov edx, dword [esp + 0x60]
cmp ebx, edx
jle 0x85505c
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.00868830
add esp, 0x24
mov edx, dword [esp + 0x60]
add edx, dword [ebp + 0x14]
cmp ebx, edx
jle 0x855058
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.00868830
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.00868a90
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 0x854f6b
jmp 0x85526e
cmp eax, 4
jne 0x8551a5
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.00855c44
xor eax, eax
jmp 0x855282
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x8551a5
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 0x85525d
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 0x8551f8
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 0x8551d5
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 0x8552a2
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 0x8552bb
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x94]
test edx, edx
je 0x8552d4
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xa4]
cmp edx, 2
jl 0x855456
mov edx, dword [esp + 0xb4]
test edx, edx
je 0x8552fd
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xb0]
test edx, edx
je 0x855316
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xcc]
test edx, edx
je 0x85532f
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xc8]
test edx, edx
je 0x855348
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xc4]
test edx, edx
je 0x855361
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xc0]
test edx, edx
je 0x85537a
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xbc]
test edx, edx
je 0x855393
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xb8]
test edx, edx
je 0x8553ac
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xac]
test edx, edx
je 0x8553c5
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xa4]
cmp edx, 4
jl 0x855456
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x8553ee
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x88]
test edx, edx
je 0x855407
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
test edx, edx
je 0x855420
push edx
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
test edi, edi
je 0x855432
push edi
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
test esi, esi
je 0x855444
push esi
mov dword [esp + 0x7c], eax
call fcn.0086b198
mov eax, dword [esp + 0x78]
test ebx, ebx
je 0x855456
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 0x85528d
mov eax, 0xfffffff7
jmp 0x855282
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 0x855282
mov eax, dword [esp + 0x9c]
push eax
call 0x72de9c
mov dword [esp + 0xcc], eax
test eax, eax
jne 0x855547
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 0x855282
mov eax, dword [ebp + 0x30]
push eax
call 0x72de9c
mov dword [esp + 0xc8], eax
test eax, eax
jne 0x85559e
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 0x855282
mov eax, dword [ebp + 0x30]
push eax
call 0x72de9c
mov dword [esp + 0xc4], eax
test eax, eax
jne 0x8555ee
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 0x855282
mov eax, dword [esp + 0x9c]
push eax
call 0x72de9c
mov dword [esp + 0xc0], eax
test eax, eax
jne 0x85563b
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 0x855282
mov eax, dword [ebp + 0x30]
push eax
call 0x72de9c
mov dword [esp + 0xbc], eax
test eax, eax
jne 0x85567d
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 0x855282
mov eax, dword [ebp + 0x30]
push eax
call 0x72de9c
mov dword [esp + 0xb8], eax
test eax, eax
je 0x8554be
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 0x854e8f
mov edx, dword [esp + 0x60]
cmp ebx, edx
jge 0x85505c
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.00868830
add esp, 0x24
mov edx, dword [esp + 0x60]
add edx, dword [ebp + 0x14]
cmp ebx, edx
jge 0x855058
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.00868830
add esp, 0x24
jmp 0x855058
movsd xmm1, qword [0x89fee0]
movsd xmm3, qword [0x89fee0]
divsd xmm1, qword [ebp + 0x38]
divsd xmm3, qword [ebp + 0x40]
mov eax, dword [ebp + 0x34]
movsd xmm2, qword [0x89fec8]
movaps xmm0, xmm2
mulsd xmm0, xmm1
mulsd xmm2, xmm3
test eax, eax
jle 0x8558fb
mov ecx, dword [ebp + 0x34]
mov eax, 0x80000001
imul ecx
add edx, ecx
sar ecx, 0x1f
sub edx, ecx
je 0x855baf
mov esi, dword [esp + 0xa0]
xor eax, eax
movsd xmm4, qword [0x89fed0]
movsd xmm5, qword [0x89fed0]
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 0x8557ee
lea ecx, [eax + eax + 1]
mov eax, dword [ebp + 0x34]
lea edx, [ecx - 1]
cmp eax, edx
jbe 0x855849
addsd xmm2, qword [0x89fed0]
mov edx, dword [esp + 0xa0]
cvttsd2si eax, xmm2
mov dword [edx + ecx*4 - 4], eax
mov eax, dword [ebp + 0x34]
test eax, eax
jle 0x8558fb
mov eax, dword [esp + 0xa0]
and eax, 0xf
je 0x855870
test al, 3
jne 0x855ba8
neg eax
add eax, 0x10
shr eax, 2
mov edx, dword [ebp + 0x34]
lea ecx, [eax + 4]
cmp edx, ecx
jl 0x855ba8
mov ecx, dword [ebp + 0x34]
mov edx, ecx
sub edx, eax
and edx, 3
neg edx
add edx, ecx
test eax, eax
jbe 0x8558ab
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 0x85589d
mov ecx, dword [ebp + 0x14]
movd xmm2, ecx
punpckldq xmm2, xmm2
mov ecx, dword [esp + 0xa0]
punpckldq xmm2, xmm2
movdqa xmm3, xmmword [ecx + eax*4]
pmulld xmm3, xmm2
movdqa xmmword [ecx + eax*4], xmm3
add eax, 4
cmp eax, edx
jb 0x8558c1
mov eax, dword [ebp + 0x34]
cmp edx, eax
jae 0x8558fb
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 0x8558eb
mov eax, dword [ebp + 0x30]
test eax, eax
jle 0x855ad3
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
cmp eax, edx
jbe 0x855930
mov eax, dword [ebp + 0x30]
shl eax, 2
mov edx, dword [esp + 0x94]
sub edx, dword [esp + 0x98]
cmp eax, edx
jb 0x855962
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
cmp eax, edx
jbe 0x855a1e
mov eax, dword [ebp + 0x30]
shl eax, 2
mov edx, dword [esp + 0x98]
sub edx, dword [esp + 0x94]
cmp eax, edx
jae 0x855a1e
mov ecx, dword [ebp + 0x30]
mov eax, 0x80000001
imul ecx
add edx, ecx
sar ecx, 0x1f
sub edx, ecx
je 0x855bb9
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
xor ebx, ebx
movsd xmm2, qword [0x89fed0]
movsd xmm3, qword [0x89fed0]
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 0x855989
lea ecx, [ebx + ebx]
lea eax, [ebx + ebx + 1]
mov edx, dword [ebp + 0x30]
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x855ad5
movsd xmm2, qword [0x89fed0]
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 0x855ad5
mov ecx, dword [ebp + 0x30]
mov eax, 0x80000001
imul ecx
add edx, ecx
sar ecx, 0x1f
sub edx, ecx
je 0x855bc5
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
xor ebx, ebx
movsd xmm2, qword [0x89fed0]
movsd xmm3, qword [0x89fed0]
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 0x855a45
lea ecx, [ebx + ebx]
lea eax, [ebx + ebx + 1]
mov edx, dword [ebp + 0x30]
lea ebx, [eax - 1]
cmp edx, ebx
jbe 0x855ad5
movsd xmm2, qword [0x89fed0]
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 0x855ad5
xor ecx, ecx
mov eax, dword [esp + 0x9c]
cmp ecx, eax
jge 0x855b8c
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 0x855bd1
mov ebx, dword [esp + 0x98]
xor eax, eax
lea ebx, [ebx + ecx*4]
movsd xmm2, qword [0x89fed0]
movsd xmm3, qword [0x89fed0]
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 0x855b0c
lea ebx, [eax + eax + 1]
mov eax, dword [esp + 0x60]
lea edx, [ebx - 1]
cmp eax, edx
jbe 0x855b8c
addsd xmm0, qword [0x89fed0]
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 0x854bdb
xor eax, eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], eax
jmp 0x854bdb
xor edx, edx
jmp 0x8558d7
mov ecx, 1
jmp 0x855828
xor ecx, ecx
mov eax, 1
jmp 0x8559d9
xor ecx, ecx
mov eax, 1
jmp 0x855a95
mov ebx, 1
jmp 0x855b4a
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 0x85528d