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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5eff05
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov dword [esp + 0x40], ecx
mov edi, dword [ebp + 8]
cmp edi, 2
jl 0x496aee
mov ebx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x10]
push ebx
push esi
push edi
call fcn.00517770
add esp, 0xc
test eax, eax
jl 0x496aee
xorps xmm0, xmm0
mov eax, dword [esi]
mov ecx, dword [esi + edi*4 - 4]
movsd qword [esp + 0xe4], xmm0
movsd qword [esp + 0xdc], xmm0
movsd qword [esp + 0xd4], xmm0
mov edx, dword [eax + 0x90]
mov eax, dword [eax + 0x9c]
mov ecx, dword [ecx + 0x9c]
mov byte [esp + 0x27], 0
mov dword [esp + 0x78], edx
test bl, bl
je 0x496200
cmp dword [ebp + 0x20], 0
jne 0x496200
cmp dword [ebp + 0x14], 0
jne 0x496200
cmp dword [ebp + 0x18], 0
jne 0x496200
mov byte [esp + 0x27], 1
mov dword [esp + 0x3c], 0
test edx, edx
jle 0x4961f1
mov esi, eax
sub eax, ecx
lea ebx, [ecx + 8]
mov dword [esp + 0x7c], eax
movsd xmm0, qword [esi]
subsd xmm0, qword [ebx - 8]
mov edx, dword [esp + 0x7c]
movsd qword [esp + 0xbc], xmm0
movsd xmm0, qword [edx + ebx]
subsd xmm0, qword [ebx]
movsd qword [esp + 0xc4], xmm0
movsd xmm0, qword [esi + 0x10]
subsd xmm0, qword [ebx + 8]
lea ecx, [esp + 0xbc]
movsd qword [esp + 0xcc], xmm0
call fcn.004a88b0
fld qword [0x5ff758]
fxch st(1)
fcompi st(1)
fstp st(0)
ja 0x4965c9
mov eax, dword [esp + 0x3c]
inc eax
add ebx, 0x18
add esi, 0x18
cmp eax, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
jl 0x496180
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0xd4]
mov ecx, eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], ecx
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x90], 0
je 0x496227
lea edx, [edi + 1]
mov dword [esp + 0x20], edx
mov dword [esp + 0x90], 1
cmp dword [ebp + 0x18], 0
je 0x496231
inc dword [esp + 0x20]
mov ecx, dword [esi]
mov bl, byte [ecx + 0x98]
and bl, 1
mov eax, 1
cmp edi, eax
mov byte [esp + 0x38], bl
jle 0x496269
lea esp, [esp]
test bl, bl
jne 0x496265
mov edx, dword [esi + eax*4]
mov bl, byte [edx + 0x98]
inc eax
and bl, 1
cmp eax, edi
jl 0x496250
mov byte [esp + 0x38], bl
mov eax, dword [ecx + 0x94]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x7c], 2
test bl, bl
je 0x49628a
mov dword [esp + 0x7c], 3
mov eax, dword [esp + 0x20]
cmp dword [ebp + 0xc], eax
jle 0x496296
mov dword [ebp + 0xc], eax
mov ecx, dword [esp + 0x20]
xor esi, esi
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], esi
mov dword [esp + 0x70], esi
call fcn.00412980
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0xc]
add eax, edx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x144], esi
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], eax
call fcn.00412880
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], esi
mov dword [esp + 0x60], esi
test bl, bl
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x140], 2
je 0x49630e
push ebx
lea ecx, [esp + 0x64]
call fcn.00412880
push ebx
lea ecx, [esp + 0x58]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], esi
mov dword [esp + 0x58], esi
call fcn.00412880
xor edx, edx
cmp edi, 4
mov byte [esp + 0x140], 3
jl 0x496399
mov eax, dword [esp + 0x90]
mov ecx, dword [ebp + 0x1c]
add eax, eax
add eax, eax
lea esi, [edi - 4]
shr esi, 2
add eax, eax
add ecx, 0x10
inc esi
lea edx, [esi*4]
jmp 0x496360
fld qword [ecx - 0x10]
mov ebx, dword [esp + 0x54]
fstp qword [eax + ebx]
mov ebx, dword [esp + 0x54]
fld qword [ecx - 8]
add eax, 0x20
fstp qword [eax + ebx - 0x18]
mov ebx, dword [esp + 0x54]
fld qword [ecx]
add ecx, 0x20
sub esi, 1
fstp qword [eax + ebx - 0x10]
fld qword [ecx - 0x18]
mov ebx, dword [esp + 0x54]
fstp qword [eax + ebx - 8]
jne 0x496360
mov ebx, dword [esp + 0x20]
cmp edx, edi
jge 0x4963c5
mov ecx, dword [esp + 0x90]
lea eax, [edx + ecx]
add eax, eax
add eax, eax
add eax, eax
lea ecx, [ecx]
mov ecx, dword [ebp + 0x1c]
fld qword [ecx + edx*8]
mov ecx, dword [esp + 0x54]
fstp qword [ecx + eax]
inc edx
add eax, 8
cmp edx, edi
jl 0x4963b0
movsd xmm1, qword [0x5fcc48]
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x14], esi
je 0x4963fb
fld qword [eax]
mov edx, dword [esp + 0x54]
fstp qword [edx]
movsd xmm0, qword [eax]
movsd xmm2, qword [eax + 8]
mov ecx, dword [esp + 0x54]
subsd xmm2, xmm0
divsd xmm2, xmm1
addsd xmm2, xmm0
movsd qword [ecx + 8], xmm2
cmp dword [ebp + 0x18], esi
je 0x49642e
fld qword [eax + edi*8 - 8]
mov edx, dword [esp + 0x54]
fstp qword [edx + ebx*8 - 8]
movsd xmm0, qword [eax + edi*8 - 8]
movsd xmm2, qword [eax + edi*8 - 0x10]
mov eax, dword [esp + 0x54]
subsd xmm2, xmm0
divsd xmm2, xmm1
addsd xmm2, xmm0
movsd qword [eax + ebx*8 - 0x10], xmm2
cmp dword [ebp + 0x20], esi
jne 0x4965d6
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, 4
jl 0x496482
lea edx, [ecx - 3]
mov esi, dword [esp + 0x54]
fld qword [esi]
mov esi, dword [esp + 0x28]
fstp qword [esi + eax*8]
mov esi, dword [esp + 0x54]
fld qword [esi]
mov esi, dword [esp + 0x28]
fstp qword [esi + eax*8 + 8]
mov esi, dword [esp + 0x54]
fld qword [esi]
mov esi, dword [esp + 0x28]
fstp qword [esi + eax*8 + 0x10]
mov esi, dword [esp + 0x54]
fld qword [esi]
mov esi, dword [esp + 0x28]
fstp qword [esi + eax*8 + 0x18]
add eax, 4
cmp eax, edx
jl 0x496444
cmp eax, ecx
jge 0x496498
mov edx, dword [esp + 0x54]
fld qword [edx]
mov edx, dword [esp + 0x28]
fstp qword [edx + eax*8]
inc eax
cmp eax, ecx
jl 0x496486
mov esi, dword [ebp + 0xc]
cmp esi, dword [esp + 0x20]
jge 0x49659c
xorps xmm1, xmm1
mov ecx, esi
lea eax, [ecx - 1]
mov edi, 1
sub edi, ecx
cvtsi2sd xmm0, eax
lea eax, [ecx*8]
mov dword [esp + 0x44], edi
mov ecx, dword [esp + 0x28]
movsd qword [ecx + eax], xmm1
lea ecx, [edi + esi]
cmp ecx, esi
jge 0x49657c
mov edx, esi
sub edx, ecx
cmp edx, 4
jl 0x49655a
mov edx, dword [ebp + 0xc]
lea ebx, [ecx + edx - 4]
jmp 0x4964f0
mov edi, dword [esp + 0x54]
movsd xmm2, qword [edi + ecx*8]
mov edx, dword [esp + 0x28]
addsd xmm2, qword [edx + eax]
movsd qword [edx + eax], xmm2
mov edi, dword [esp + 0x54]
movsd xmm2, qword [edi + ecx*8 + 8]
mov edx, dword [esp + 0x28]
addsd xmm2, qword [edx + eax]
movsd qword [edx + eax], xmm2
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
movsd xmm2, qword [edi + ecx*8 + 0x10]
addsd xmm2, qword [edx + eax]
movsd qword [edx + eax], xmm2
mov edi, dword [esp + 0x54]
movsd xmm2, qword [edi + ecx*8 + 0x18]
mov edx, dword [esp + 0x28]
addsd xmm2, qword [edx + eax]
add ecx, 4
cmp ecx, ebx
movsd qword [edx + eax], xmm2
jl 0x4964f0
mov edi, dword [esp + 0x44]
cmp ecx, esi
jge 0x49657c
mov edi, edi
mov ebx, dword [esp + 0x54]
movsd xmm2, qword [ebx + ecx*8]
mov edx, dword [esp + 0x28]
addsd xmm2, qword [edx + eax]
inc ecx
cmp ecx, esi
movsd qword [edx + eax], xmm2
jl 0x496560
mov ecx, dword [esp + 0x28]
movsd xmm2, qword [ecx + eax]
divsd xmm2, xmm0
movsd qword [ecx + eax], xmm2
inc esi
add eax, 8
cmp esi, dword [esp + 0x20]
jl 0x4964c3
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x3c]
jge 0x496762
mov edx, dword [esp + 0x3c]
mov ecx, eax
mov esi, dword [esp + 0x54]
fld qword [esi + ecx*8 - 8]
mov esi, dword [esp + 0x28]
fstp qword [esi + eax*8]
inc eax
cmp eax, edx
jl 0x4965b0
jmp 0x496762
mov esi, dword [ebp + 0x10]
mov byte [esp + 0x27], 0
jmp 0x496200
xor ecx, ecx
xor esi, esi
cmp dword [ebp + 0xc], 4
jl 0x496665
mov edx, dword [ebp + 0x20]
lea eax, [edx + 0x10]
mov ecx, 8
sub ecx, edx
mov edi, 0xfffffff0
sub edi, edx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffffc
shr edx, 2
inc edx
lea esi, [edx*4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x3c], edi
mov ecx, esi
jmp 0x496624
mov edi, dword [esp + 0x3c]
fld qword [eax - 0x10]
mov ebx, dword [esp + 0x28]
add edi, eax
fstp qword [edi + ebx]
mov ebx, dword [esp + 0x28]
fld qword [eax - 8]
fstp qword [edi + ebx + 8]
mov edi, dword [esp + 0x28]
fld qword [eax]
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x1c], 0x20
fstp qword [ebx + edi]
mov edi, dword [esp + 0x44]
fld qword [eax + 8]
mov ebx, dword [esp + 0x28]
add edi, eax
add eax, 0x20
fstp qword [edi + ebx]
sub edx, 1
jne 0x496620
mov ebx, dword [ebp + 0xc]
cmp esi, ebx
mov edi, dword [ebp + 0x20]
jge 0x496680
nop
fld qword [edi + esi*8]
mov eax, dword [esp + 0x28]
fstp qword [eax + ecx*8]
inc esi
inc ecx
cmp esi, ebx
jl 0x496670
cmp dword [ebp + 0x14], 0
movsd xmm0, qword [0x5fb9c8]
je 0x4966a7
movsd xmm1, qword [edi + ebx*8 - 8]
addsd xmm1, qword [edi + ebx*8]
mov edx, dword [esp + 0x28]
mulsd xmm1, xmm0
movsd qword [edx + ecx*8], xmm1
inc ecx
mov edx, dword [ebp + 8]
cmp ebx, edx
mov eax, ebx
jge 0x496720
mov esi, edx
sub esi, ebx
cmp esi, 4
jl 0x49670c
sub edx, ebx
sub edx, 4
shr edx, 2
inc edx
lea esi, [ebx + edx*4]
lea eax, [edi + ebx*8 + 0x10]
mov dword [esp + 0x18], esi
lea ecx, [ecx]
fld qword [eax - 0x10]
mov esi, dword [esp + 0x28]
fstp qword [esi + ecx*8]
mov esi, dword [esp + 0x28]
fld qword [eax - 8]
add ecx, 4
fstp qword [esi + ecx*8 - 0x18]
mov esi, dword [esp + 0x28]
fld qword [eax]
add eax, 0x20
sub edx, 1
fstp qword [esi + ecx*8 - 0x10]
fld qword [eax - 0x18]
mov esi, dword [esp + 0x28]
fstp qword [esi + ecx*8 - 8]
jne 0x4966d0
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 8]
cmp eax, edx
jge 0x496720
fld qword [edi + eax*8]
mov esi, dword [esp + 0x28]
fstp qword [esi + ecx*8]
inc eax
inc ecx
cmp eax, edx
jl 0x496710
cmp dword [ebp + 0x18], 0
je 0x49673f
movsd xmm1, qword [edi + edx*8 - 8]
addsd xmm1, qword [edi + edx*8]
mov eax, dword [esp + 0x28]
mulsd xmm1, xmm0
movsd qword [eax + ecx*8], xmm1
inc ecx
add ebx, edx
cmp edx, ebx
mov eax, edx
jge 0x496762
add ecx, ecx
add ecx, ecx
add ecx, ecx
lea ecx, [ecx]
fld qword [edi + eax*8]
mov edx, dword [esp + 0x28]
fstp qword [ecx + edx]
inc eax
add ecx, 8
cmp eax, ebx
jl 0x496750
mov edi, dword [ebp + 0xc]
mov esi, dword [esp + 0x20]
lea eax, [edi - 1]
imul eax, esi
xor ebx, ebx
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x4c], ebx
call fcn.00412880
mov byte [esp + 0x140], 4
mov dword [esp + 0x88], esi
cmp byte [ebp + 0x24], bl
je 0x496a4f
mov ecx, 1
xor esi, esi
cmp edi, 4
mov dword [esp + 0x1c], ecx
jl 0x496805
lea eax, [edi - 3]
jmp 0x4967c0
mov edx, dword [esp + 0x28]
fld qword [edx + esi*8]
mov edx, dword [esp + 0x48]
fstp qword [edx + esi*8]
mov edx, dword [esp + 0x28]
fld qword [edx + esi*8 + 8]
mov edx, dword [esp + 0x48]
fstp qword [edx + esi*8 + 8]
mov edx, dword [esp + 0x28]
fld qword [edx + esi*8 + 0x10]
mov edx, dword [esp + 0x48]
fstp qword [edx + esi*8 + 0x10]
mov edx, dword [esp + 0x28]
fld qword [edx + esi*8 + 0x18]
mov edx, dword [esp + 0x48]
fstp qword [edx + esi*8 + 0x18]
add esi, 4
cmp esi, eax
jl 0x4967c0
cmp esi, edi
jge 0x496823
lea esp, [esp]
mov eax, dword [esp + 0x28]
fld qword [eax + esi*8]
mov edx, dword [esp + 0x48]
fstp qword [edx + esi*8]
inc esi
cmp esi, edi
jl 0x496810
cmp edi, dword [esp + 0x20]
mov dword [esp + 0x18], edi
jge 0x49698e
mov edi, dword [ebp + 0x1c]
movsd xmm2, qword [0x5ff780]
add edi, 8
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
movsd xmm0, qword [edi]
movsd xmm1, qword [eax + ecx*8]
movapd xmm3, xmm0
subsd xmm3, xmm2
comisd xmm3, xmm1
jbe 0x496892
cmp esi, dword [esp + 0x50]
movsd qword [esp + 0x94], xmm1
jl 0x49687b
lea edx, [esi + 1]
push edx
lea ecx, [esp + 0x4c]
call fcn.00412880
mov eax, dword [esp + 0x48]
movsd xmm0, qword [esp + 0x94]
movsd qword [eax + esi*8], xmm0
jmp 0x49696b
addsd xmm0, xmm2
comisd xmm1, xmm0
jbe 0x49691b
lea esp, [esp]
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jle 0x4968f0
mov ebx, dword [ebp + 0xc]
dec ebx
lea esp, [esp]
cmp esi, dword [esp + 0x50]
movsd xmm0, qword [edi]
movsd qword [esp + 0xb4], xmm0
jl 0x4968d0
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00412880
mov edx, dword [esp + 0x48]
movsd xmm0, qword [esp + 0xb4]
movsd qword [edx + esi*8], xmm0
inc esi
sub ebx, 1
jne 0x4968b0
movsd xmm2, qword [0x5ff780]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x18]
inc eax
movsd xmm0, qword [ecx + eax*8]
lea edi, [ecx + eax*8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
movsd xmm1, qword [eax + edx*8]
addsd xmm0, xmm2
comisd xmm1, xmm0
ja 0x4968a0
mov ecx, dword [esp + 0x18]
movsd xmm0, qword [eax + ecx*8]
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x1c]
movsd xmm1, qword [edx + eax*8]
lea edi, [edx + eax*8]
addsd xmm1, xmm2
comisd xmm1, xmm0
jbe 0x496974
cmp esi, dword [esp + 0x50]
movsd qword [esp + 0xac], xmm0
jl 0x496959
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00412880
mov edx, dword [esp + 0x48]
movsd xmm0, qword [esp + 0xac]
movsd qword [edx + esi*8], xmm0
movsd xmm2, qword [0x5ff780]
inc esi
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jl 0x496840
mov ecx, dword [esp + 0x1c]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
dec eax
cmp ecx, eax
jge 0x4969f8
mov edx, dword [ebp + 0x1c]
lea edx, [edx + ecx*8]
sub eax, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], eax
lea eax, [edi - 1]
test eax, eax
jle 0x4969ec
mov ebx, eax
nop
cmp esi, dword [esp + 0x50]
mov eax, dword [esp + 0x1c]
movsd xmm0, qword [eax]
movsd qword [esp + 0x94], xmm0
jl 0x4969d4
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00412880
mov edx, dword [esp + 0x48]
movsd xmm0, qword [esp + 0x94]
movsd qword [edx + esi*8], xmm0
inc esi
sub ebx, 1
jne 0x4969b0
add dword [esp + 0x1c], 8
sub dword [esp + 0x3c], 1
jne 0x4969a6
test edi, edi
jle 0x496a40
mov edi, dword [ebp + 0xc]
mov ebx, dword [esp + 0x20]
cmp esi, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
movsd xmm0, qword [eax + ebx*8]
movsd qword [esp + 0x94], xmm0
jl 0x496a28
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00412880
mov edx, dword [esp + 0x48]
movsd xmm0, qword [esp + 0x94]
movsd qword [edx + esi*8], xmm0
inc esi
sub edi, 1
jne 0x496a03
sub esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x88], esi
xor ebx, ebx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x40]
push eax
push edi
mov edi, dword [esp + 0x80]
push ecx
push edx
push edi
mov ecx, esi
call fcn.00485ca0
cmp byte [esi + 4], 0
jne 0x496b08
mov eax, dword [esp + 0x48]
mov esi, dword [sym.imp.MSVCR90.dll_free]
cmp eax, ebx
je 0x496a96
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x54]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], ebx
cmp eax, ebx
je 0x496aac
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x60]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
cmp eax, ebx
je 0x496ac2
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebx
cmp eax, ebx
je 0x496ad8
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
cmp eax, ebx
je 0x496aee
push eax
call esi
add esp, 4
xor al, al
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp edi, ebx
xorps xmm0, xmm0
movsd qword [esi + 0x80], xmm0
mov dword [esp + 0x18], ebx
jle 0x4974b3
movsd xmm3, qword [0x5fcc48]
lea eax, [edi + edi*2]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0xac], eax
mov dword [esp + 0x3c], eax
lea eax, [edi*8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x7c], eax
mov edi, edi
cmp dword [ebp + 8], 4
mov dword [esp + 0x84], 0
jl 0x496d39
mov eax, dword [esp + 0x90]
mov edx, dword [ebp + 8]
movsd xmm1, qword [0x5fb270]
mov ebx, dword [esp + 0x1c]
lea ecx, [eax*8]
add edx, 0xfffffffc
lea eax, [eax + eax*2]
shr edx, 2
add eax, eax
inc edx
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x10]
add eax, eax
mov dword [esp + 0x44], edx
add edx, edx
add eax, eax
add ecx, 8
add edx, edx
mov dword [esp + 0x84], edx
mov edx, dword [ecx - 8]
mov esi, dword [edx + 0x9c]
mov edi, dword [edx + 0xa8]
movq xmm0, qword [ebx + esi]
lea edx, [ebx + esi]
mov esi, dword [esp + 0x6c]
add esi, eax
cmp byte [esp + 0x38], 0
movq qword [esi], xmm0
movq xmm0, qword [edx + 8]
movq qword [esi + 8], xmm0
movq xmm0, qword [edx + 0x10]
movq qword [esi + 0x10], xmm0
je 0x496c07
test edi, edi
je 0x496bf6
mov edx, dword [esp + 0x18]
movsd xmm0, qword [edi + edx*8]
jmp 0x496bfa
movapd xmm0, xmm1
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x34]
movsd qword [esi + edx], xmm0
cmp byte [esp + 0x38], 0
mov edx, dword [ecx - 4]
mov esi, dword [edx + 0x9c]
mov edi, dword [edx + 0xa8]
movq xmm0, qword [ebx + esi]
lea edx, [ebx + esi]
mov esi, dword [esp + 0x6c]
lea esi, [eax + esi + 0x18]
movq qword [esi], xmm0
movq xmm0, qword [edx + 8]
movq qword [esi + 8], xmm0
movq xmm0, qword [edx + 0x10]
movq qword [esi + 0x10], xmm0
je 0x496c66
test edi, edi
je 0x496c54
mov edx, dword [esp + 0x18]
movsd xmm0, qword [edi + edx*8]
jmp 0x496c58
movapd xmm0, xmm1
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x34]
movsd qword [esi + edx + 8], xmm0
cmp byte [esp + 0x38], 0
mov edx, dword [ecx]
mov esi, dword [edx + 0x9c]
mov edi, dword [edx + 0xa8]
movq xmm0, qword [ebx + esi]
lea edx, [ebx + esi]
mov esi, dword [esp + 0x6c]
lea esi, [eax + esi + 0x30]
movq qword [esi], xmm0
movq xmm0, qword [edx + 8]
movq qword [esi + 8], xmm0
movq xmm0, qword [edx + 0x10]
movq qword [esi + 0x10], xmm0
je 0x496cc4
test edi, edi
je 0x496cb2
mov edx, dword [esp + 0x18]
movsd xmm0, qword [edi + edx*8]
jmp 0x496cb6
movapd xmm0, xmm1
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x34]
movsd qword [esi + edx + 0x10], xmm0
cmp byte [esp + 0x38], 0
mov edx, dword [ecx + 4]
mov esi, dword [edx + 0x9c]
mov edi, dword [edx + 0xa8]
movq xmm0, qword [ebx + esi]
lea edx, [ebx + esi]
mov esi, dword [esp + 0x6c]
lea esi, [eax + esi + 0x48]
movq qword [esi], xmm0
movq xmm0, qword [edx + 8]
movq qword [esi + 8], xmm0
movq xmm0, qword [edx + 0x10]
movq qword [esi + 0x10], xmm0
je 0x496d23
test edi, edi
je 0x496d11
mov edx, dword [esp + 0x18]
movsd xmm0, qword [edi + edx*8]
jmp 0x496d15
movapd xmm0, xmm1
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x34]
movsd qword [esi + edx + 0x18], xmm0
add dword [esp + 0x34], 0x20
add eax, 0x60
add ecx, 0x10
sub dword [esp + 0x44], 1
jne 0x496bab
mov eax, dword [esp + 0x84]
cmp eax, dword [ebp + 8]
jge 0x496de7
mov ecx, dword [esp + 0x90]
movsd xmm1, qword [0x5fb270]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x84]
lea edx, [eax + ecx]
lea eax, [edx*8]
lea edx, [edx + edx*2]
add edx, edx
add edx, edx
mov dword [esp + 0x34], eax
add edx, edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + edi*4]
mov ecx, dword [eax + 0x9c]
mov esi, dword [eax + 0xa8]
movq xmm0, qword [ebx + ecx]
lea eax, [ebx + ecx]
mov ecx, dword [esp + 0x6c]
add ecx, edx
cmp byte [esp + 0x38], 0
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
je 0x496dd9
test esi, esi
je 0x496dc8
mov eax, dword [esp + 0x18]
movsd xmm0, qword [esi + eax*8]
jmp 0x496dcc
movapd xmm0, xmm1
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x34]
movsd qword [ecx + eax], xmm0
add dword [esp + 0x34], 8
inc edi
add edx, 0x18
cmp edi, dword [ebp + 8]
jl 0x496d7a
mov edi, dword [esp + 0x20]
cmp edi, 2
jle 0x497172
mov ecx, dword [esp + 0x6c]
mov bl, byte [esp + 0x38]
lea esi, [edi + edi*2 - 6]
add esi, esi
add esi, esi
add esi, esi
movq xmm0, qword [ecx + esi]
movq qword [esp + 0xbc], xmm0
movq xmm0, qword [ecx + esi + 8]
movq qword [esp + 0xc4], xmm0
movq xmm0, qword [ecx + esi + 0x10]
lea edx, [edi + edi*2 - 9]
movq xmm7, qword [ecx + edx*8]
lea eax, [ecx + edx*8]
movq qword [esp + 0xcc], xmm0
movq xmm0, qword [eax + 8]
movq qword [esp + 0xf4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0xfc], xmm0
movsd xmm0, qword [0x5fb270]
movsd qword [esp + 0xec], xmm7
movsd qword [esp + 0xb4], xmm0
movsd qword [esp + 0x94], xmm0
test bl, bl
je 0x496ea3
mov eax, dword [esp + 0x60]
movsd xmm0, qword [eax + edi*8 - 0x10]
movsd qword [esp + 0xb4], xmm0
movsd xmm0, qword [eax + edi*8 - 0x18]
movsd qword [esp + 0x94], xmm0
cmp byte [esp + 0x27], 0
je 0x496f09
subsd xmm7, qword [ecx + 0x18]
movsd xmm0, qword [esp + 0xf4]
subsd xmm0, qword [ecx + 0x20]
movsd xmm1, qword [esp + 0xfc]
subsd xmm1, qword [ecx + 0x28]
lea ecx, [esp + 0xd4]
movq qword [esp + 0xd4], xmm7
movq qword [esp + 0xdc], xmm0
movq qword [esp + 0xe4], xmm1
call fcn.004a8b50
fstp st(0)
mov ecx, dword [esp + 0x6c]
movsd xmm7, qword [esp + 0xec]
movsd xmm3, qword [0x5fcc48]
cmp dword [ebp + 0x14], 0
je 0x496fc0
movq xmm0, qword [ecx + 0x18]
movq qword [ecx], xmm0
movq xmm0, qword [ecx + 0x20]
lea eax, [ecx + 0x18]
mov ecx, dword [esp + 0x6c]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
mov edx, dword [esp + 0x6c]
movq qword [edx + 0x10], xmm0
mov eax, dword [esp + 0x6c]
movsd xmm4, qword [eax]
movsd xmm0, qword [eax + 0x30]
movsd xmm5, qword [eax + 8]
movsd xmm6, qword [eax + 0x10]
movsd xmm1, qword [eax + 0x38]
movsd xmm2, qword [eax + 0x40]
add eax, 0x18
subsd xmm0, xmm4
subsd xmm1, xmm5
subsd xmm2, xmm6
divsd xmm0, xmm3
divsd xmm1, xmm3
addsd xmm4, xmm0
movq qword [eax], xmm4
divsd xmm2, xmm3
addsd xmm5, xmm1
addsd xmm6, xmm2
movq qword [eax + 8], xmm5
movq qword [eax + 0x10], xmm6
test bl, bl
je 0x496fbc
mov eax, dword [esp + 0x60]
fld qword [eax + 8]
fstp qword [eax]
mov eax, dword [esp + 0x60]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 0x10]
subsd xmm1, xmm0
divsd xmm1, xmm3
addsd xmm1, xmm0
movsd qword [eax + 8], xmm1
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x49709e
movq xmm0, qword [esp + 0xbc]
movsd xmm1, qword [esp + 0xf4]
movsd xmm2, qword [esp + 0xfc]
lea eax, [edi + edi*2]
movq qword [ecx + eax*8 - 0x18], xmm0
movq xmm0, qword [esp + 0xc4]
movq qword [ecx + eax*8 - 0x10], xmm0
movq xmm0, qword [esp + 0xcc]
movq qword [ecx + eax*8 - 8], xmm0
lea ecx, [ecx + eax*8 - 0x18]
mov ecx, dword [esp + 0x6c]
subsd xmm1, qword [ecx + eax*8 - 0x10]
subsd xmm7, qword [ecx + eax*8 - 0x18]
movsd xmm4, qword [ecx + eax*8 - 0x10]
subsd xmm2, qword [ecx + eax*8 - 8]
divsd xmm1, xmm3
addsd xmm4, xmm1
movsd xmm1, qword [ecx + eax*8 - 8]
movapd xmm0, xmm7
divsd xmm0, xmm3
addsd xmm0, qword [ecx + eax*8 - 0x18]
lea eax, [ecx + esi]
movq qword [eax], xmm0
divsd xmm2, xmm3
addsd xmm1, xmm2
movq qword [eax + 8], xmm4
movq qword [eax + 0x10], xmm1
test bl, bl
je 0x49709e
mov eax, dword [esp + 0x60]
movsd xmm0, qword [esp + 0xb4]
movsd qword [eax + edi*8 - 8], xmm0
mov eax, dword [esp + 0x60]
movsd xmm1, qword [eax + edi*8 - 8]
movsd xmm0, qword [esp + 0x94]
subsd xmm0, xmm1
divsd xmm0, xmm3
addsd xmm0, xmm1
movsd qword [eax + edi*8 - 0x10], xmm0
mov ebx, dword [ebp + 0xc]
cmp ebx, 2
jle 0x497172
cmp dword [ebp + 8], 0x190
jge 0x497172
mov ecx, dword [ebp + 0x14]
push edx
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x80]
push edx
push 0
push ebx
push edi
call fcn.00593370
add esp, 0x24
cmp byte [ebp + 0x24], 0
je 0x49716a
push 0xe0
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x80], eax
mov byte [esp + 0x140], 5
test eax, eax
je 0x497129
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x74]
push ecx
push 0
push 0
push ebx
push edi
mov ecx, eax
call fcn.00513430
mov esi, eax
jmp 0x49712b
xor esi, esi
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x88]
lea edx, [esp + 0x48]
push edx
push eax
push 0
push ebx
push ecx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x84]
push eax
mov ecx, esi
mov byte [esp + 0x15c], 4
call fcn.00502690
test esi, esi
je 0x49716a
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
movsd xmm3, qword [0x5fcc48]
xor edi, edi
cmp dword [esp + 0x88], 4
jl 0x4973ec
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x78]
add ebx, ebx
add ebx, ebx
mov eax, edx
lea ecx, [edx + edx*2]
add ebx, ebx
mov dword [esp + 0xa0], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x18]
lea edx, [ebx + edx*2]
mov ebx, dword [esp + 0x78]
add edx, ebx
lea ebx, [edx*8]
lea edx, [edx + edx*2]
add edx, edx
add edx, edx
add edx, edx
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x78]
lea edx, [edx + ebx*2]
lea ebx, [edx*8]
lea edx, [edx + edx*2]
add edx, edx
add edx, edx
xor esi, esi
shl eax, 5
shl ecx, 5
add edx, edx
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x6c]
add edx, esi
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x40]
mov edx, dword [edx + 0xdc]
add edx, dword [esp + 0x84]
cmp byte [esp + 0x38], 0
mov ebx, dword [esp + 0x80]
movq xmm0, qword [ebx]
movq qword [edx], xmm0
movq xmm0, qword [ebx + 8]
movq qword [edx + 8], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [edx + 0x10], xmm0
je 0x497276
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
fld qword [ebx + edi*8]
mov edx, dword [edx + 0xe8]
mov ebx, dword [esp + 0xa0]
fstp qword [ebx + edx]
mov edx, dword [esp + 0x6c]
lea edx, [edx + esi + 0x18]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x40]
mov edx, dword [edx + 0xdc]
add edx, dword [esp + 0x34]
cmp byte [esp + 0x38], 0
mov ebx, dword [esp + 0x80]
movq xmm0, qword [ebx]
movq qword [edx], xmm0
movq xmm0, qword [ebx + 8]
movq qword [edx + 8], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [edx + 0x10], xmm0
je 0x4972d9
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
fld qword [ebx + edi*8 + 8]
mov edx, dword [edx + 0xe8]
mov ebx, dword [esp + 0xa4]
fstp qword [ebx + edx]
mov edx, dword [esp + 0x6c]
lea edx, [esi + edx + 0x30]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x40]
mov edx, dword [edx + 0xdc]
add edx, dword [esp + 0xa8]
cmp byte [esp + 0x38], 0
mov ebx, dword [esp + 0x80]
movq xmm0, qword [ebx]
movq qword [edx], xmm0
movq xmm0, qword [ebx + 8]
movq qword [edx + 8], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [edx + 0x10], xmm0
je 0x49733f
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
fld qword [ebx + edi*8 + 0x10]
mov edx, dword [edx + 0xe8]
mov ebx, dword [esp + 0x8c]
fstp qword [ebx + edx]
mov edx, dword [esp + 0x6c]
lea edx, [esi + edx + 0x48]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x40]
mov edx, dword [edx + 0xdc]
add edx, dword [esp + 0x9c]
cmp byte [esp + 0x38], 0
mov ebx, dword [esp + 0x80]
movq xmm0, qword [ebx]
movq qword [edx], xmm0
movq xmm0, qword [ebx + 8]
movq qword [edx + 8], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [edx + 0x10], xmm0
je 0x4973a2
mov ebx, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
fld qword [ebx + edi*8 + 0x18]
mov edx, dword [edx + 0xe8]
mov ebx, dword [esp + 0x44]
fstp qword [ebx + edx]
mov edx, dword [esp + 0x88]
add dword [esp + 0x84], ecx
add dword [esp + 0x34], ecx
add dword [esp + 0xa8], ecx
add dword [esp + 0x9c], ecx
add dword [esp + 0xa0], eax
add dword [esp + 0xa4], eax
add dword [esp + 0x8c], eax
add dword [esp + 0x44], eax
add edi, 4
add edx, 0xfffffffd
add esi, 0x60
cmp edi, edx
jl 0x497213
cmp edi, dword [esp + 0x88]
jge 0x49748a
mov ecx, dword [esp + 0x18]
mov eax, edi
imul eax, dword [esp + 0x78]
add eax, ecx
lea esi, [edi + edi*2]
add esi, esi
lea edx, [eax + eax*2]
add edx, edx
add esi, esi
add edx, edx
add esi, esi
lea ebx, [eax*8]
add edx, edx
mov eax, dword [esp + 0x6c]
movq xmm0, qword [esi + eax]
lea ecx, [esi + eax]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0xdc]
add eax, edx
cmp byte [esp + 0x38], 0
movq qword [eax], xmm0
movq xmm0, qword [ecx + 8]
movq qword [eax + 8], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
je 0x49746a
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0xe8]
mov ecx, dword [esp + 0x60]
fld qword [ecx + edi*8]
fstp qword [ebx + eax]
mov eax, dword [esp + 0x78]
add edx, dword [esp + 0xac]
add eax, eax
add eax, eax
add eax, eax
inc edi
add ebx, eax
add esi, 0x18
cmp edi, dword [esp + 0x88]
jl 0x49741f
mov eax, dword [esp + 0x18]
add dword [esp + 0x7c], 8
mov ecx, 0x18
add dword [esp + 0x1c], ecx
add dword [esp + 0x3c], ecx
inc eax
cmp eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
jl 0x496b50
mov esi, dword [esp + 0x40]
mov edi, dword [ebp + 0x10]
mov edx, dword [edi]
mov eax, dword [edx + 0xb4]
push eax
mov ecx, esi
call fcn.0048fdf0
cmp byte [ebp + 0x24], 0
lea eax, [esp + 0x48]
jne 0x4974d4
lea eax, [esp + 0x28]
mov ecx, dword [eax]
push ecx
mov ecx, esi
call fcn.0048fee0
mov edx, dword [edi]
mov eax, dword [edx + 0x98]
shr eax, 3
test al, 1
je 0x4974f4
or dword [esi + 0xd8], 8
fld qword [0x5ff790]
mov bl, byte [0x616388]
push 1
sub esp, 8
fstp qword [esp]
push 0x1f4
push 3
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0xc4]
push edx
mov ecx, esi
mov byte [0x616388], 0
call fcn.0048e230
test al, al
je 0x497551
mov eax, dword [esp + 0xac]
cmp eax, dword [esi + 0x10c]
jge 0x497551
mov ecx, dword [esi + 0xc8]
dec ecx
cmp eax, ecx
jle 0x497551
mov dword [esi + 0x10c], eax
mov byte [0x616388], bl
fld qword [esi + 0x38]
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [esi + 0x30]
fstp qword [esp]
call eax
fld qword [0x5ff790]
mov bl, byte [0x616388]
xor edi, edi
push edi
sub esp, 8
fstp qword [esp]
push 0x1f4
push 3
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0xc4]
push edx
mov ecx, esi
mov byte [0x616388], 0
call fcn.0048e230
test al, al
je 0x4975ce
mov eax, dword [esp + 0xac]
cmp eax, dword [esi + 0x110]
jge 0x4975ce
mov ecx, dword [esi + 0xcc]
dec ecx
cmp eax, ecx
jle 0x4975ce
mov dword [esi + 0x110], eax
mov byte [0x616388], bl
fld qword [esi + 0x48]
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [esi + 0x40]
fstp qword [esp]
call eax
fld qword [0x5fdae0]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.0048ea10
mov eax, dword [esp + 0x48]
mov esi, dword [sym.imp.MSVCR90.dll_free]
cmp eax, edi
je 0x497614
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x54]
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edi
cmp eax, edi
je 0x49762a
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x60]
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], edi
cmp eax, edi
je 0x497640
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], edi
mov dword [esp + 0x68], edi
cmp eax, edi
je 0x497656
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
cmp eax, edi
je 0x49766c
push eax
call esi
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20