Function at 0x491de0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [0x588a0c], eax
push ebx
push esi
mov esi, edx
movsd xmm2, qword [ebp + 0x10]
movsd xmm3, qword [ebp + 0x18]
push edi
mov edi, ecx
movsd qword [0x588a38], xmm2
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
cdq
sub eax, edx
mov dword [ebp - 0x6c], edi
sar eax, 1
add eax, dword [esi]
mov dword [ebp - 0x70], eax
mov dword [0x588a08], eax
mov eax, dword [esi + 0xc]
cdq
movdqu xmm0, xmmword [esi]
sub eax, edx
mov dword [0x588a40], edi
sar eax, 1
add eax, dword [esi + 4]
mov dword [ebp - 0x84], eax
mov dword [0x588a34], eax
mov eax, dword [ecx + 8]
cdq
sub eax, edx
movd esi, xmm0
sar eax, 1
add eax, dword [ecx]
mov dword [ebp - 0x74], eax
mov dword [0x588a10], eax
mov eax, dword [ecx + 0xc]
cdq
sub eax, edx
movsd qword [0x588a18], xmm3
sar eax, 1
add eax, dword [ecx + 4]
mov dword [ebp - 0x80], eax
mov dword [0x5889ec], eax
movdqu xmmword [0x5889f8], xmm0
mov edx, dword [0x588a00]
mov dword [0x5889f8], esi
test esi, esi
jns 0x491ea5
add edx, esi
xor esi, esi
mov dword [0x588a00], edx
mov dword [0x5889f8], esi
mov ebx, dword [0x5889fc]
mov ecx, dword [0x588a04]
mov dword [ebp - 0x7c], edx
test ebx, ebx
jns 0x491ec8
add ecx, ebx
xor ebx, ebx
mov dword [0x588a04], ecx
mov dword [0x5889fc], ebx
mov edi, dword [edi]
lea eax, [edx + esi]
mov dword [ebp - 0x78], ecx
cmp eax, edi
jle 0x491ee1
mov edx, edi
sub edx, esi
mov dword [ebp - 0x7c], edx
mov dword [0x588a00], edx
mov esi, dword [ebp - 0x6c]
lea eax, [ecx + ebx]
mov esi, dword [esi + 4]
cmp eax, esi
jle 0x491efb
mov ecx, esi
sub ecx, ebx
mov dword [ebp - 0x78], ecx
mov dword [0x588a04], ecx
test edx, edx
jle 0x492322
test ecx, ecx
jle 0x492322
mov eax, dword [ebp + 0xc]
movdqu xmm0, xmmword [eax]
movd ebx, xmm0
movdqu xmmword [0x588a24], xmm0
mov esi, dword [0x588a2c]
mov dword [0x588a24], ebx
test ebx, ebx
jns 0x491f3e
add esi, ebx
xor ebx, ebx
mov dword [0x588a2c], esi
mov dword [0x588a24], ebx
mov edi, dword [0x588a28]
mov ecx, dword [0x588a30]
test edi, edi
jns 0x491f5e
add ecx, edi
xor edi, edi
mov dword [0x588a30], ecx
mov dword [0x588a28], edi
mov eax, dword [ebp + 8]
mov edx, dword [eax]
lea eax, [esi + ebx]
cmp eax, edx
jle 0x491f74
mov esi, edx
sub esi, ebx
mov dword [0x588a2c], esi
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
lea eax, [ecx + edi]
cmp eax, edx
jle 0x491f8b
mov ecx, edx
sub ecx, edi
mov dword [0x588a30], ecx
test esi, esi
jle 0x492322
test ecx, ecx
jle 0x492322
movsd xmm1, qword [0x4c9e90]
movapd xmm0, xmm1
mov edx, dword [ebp - 0x74]
divsd xmm0, xmm2
sub edx, ebx
cvttsd2si eax, xmm0
imul edx, eax
mov dword [ebp - 0x6c], eax
mov dword [0x588a20], eax
mov dword [ebp - 0x74], edx
mov edx, dword [ebp - 0x70]
shl edx, 0xe
sub edx, dword [ebp - 0x74]
mov dword [ebp - 0x70], edx
cdq
sub eax, edx
mov edx, dword [ebp - 0x70]
sar eax, 1
add edx, 0xffffe000
add edx, eax
mov eax, dword [0x5889f8]
shl eax, 0xe
mov dword [0x5889f0], edx
mov dword [ebp - 0x70], eax
cmp edx, eax
jge 0x492019
mov eax, dword [ebp - 0x6c]
dec esi
inc ebx
add edx, eax
mov dword [0x588a24], ebx
mov dword [0x588a2c], esi
mov dword [0x5889f0], edx
test esi, esi
jle 0x492322
cmp edx, dword [ebp - 0x70]
jl 0x491ff6
mov eax, dword [ebp - 0x7c]
add eax, dword [0x5889f8]
shl eax, 0xe
sub eax, 0x4000
cvttsd2si ebx, xmm0
mov dword [ebp - 0x6c], eax
lea eax, [esi - 1]
imul eax, ebx
add eax, edx
mov edx, dword [ebp - 0x6c]
cmp eax, edx
jl 0x492057
neg ebx
dec esi
add eax, ebx
mov dword [0x588a2c], esi
test esi, esi
jle 0x492322
cmp eax, edx
jge 0x492042
divsd xmm1, xmm3
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x84]
sub eax, edi
shl ebx, 0xe
cvttsd2si esi, xmm1
imul eax, esi
mov dword [0x5889f4], esi
sub ebx, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
lea edx, [eax - 0x2000]
mov eax, dword [0x5889fc]
add edx, ebx
shl eax, 0xe
mov dword [0x588a14], edx
cmp edx, eax
jge 0x4920c2
lea esp, [esp]
dec ecx
inc edi
add edx, esi
mov dword [0x588a28], edi
mov dword [0x588a30], ecx
mov dword [0x588a14], edx
test ecx, ecx
jle 0x492322
cmp edx, eax
jl 0x4920a0
mov ebx, dword [ebp - 0x78]
lea eax, [ecx - 1]
mov edi, dword [0x5889fc]
imul eax, esi
lea edi, [ebx + edi]
shl edi, 0xe
sub edi, 0x4000
add eax, edx
cmp eax, edi
jl 0x4920fa
neg esi
dec ecx
add eax, esi
mov dword [0x588a30], ecx
test ecx, ecx
jle 0x492322
cmp eax, edi
jge 0x4920e5
cmp ebx, 0x64
jl 0x49230f
call fcn.00487340
cmp eax, 8
jl 0x4921dd
mov esi, dword [0x588a30]
lea edi, [ebp - 0x48]
mov ebx, dword [0x4b420c]
mov eax, esi
cdq
and edx, 7
mov dword [ebp - 0xc], esi
add edx, eax
mov dword [ebp - 0x48], 0
sar edx, 3
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
lea eax, [edx*4]
mov dword [ebp - 0x2c], eax
lea ecx, [edx + edx]
mov dword [ebp - 0x28], eax
lea eax, [edx + edx*4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [edx + edx*2]
add eax, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [edx*8]
sub eax, edx
mov dword [ebp - 0x38], ecx
lea ecx, [edx + edx*2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], ecx
xor esi, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], eax
nop
push 0
push 0
push edi
push fcn.00491ae0
push 0
push 0
call fcn.004981a8
add esp, 0x18
mov dword [ebp + esi*4 - 0x68], eax
push 2
push eax
call ebx
inc esi
add edi, 8
cmp esi, 8
jl 0x492180
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x68]
push eax
push 8
call dword [0x4b409c]
mov edi, dword [0x4b4264]
xor esi, esi
push dword [ebp + esi*4 - 0x68]
call edi
inc esi
cmp esi, 8
jl 0x4921c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493955
mov esp, ebp
pop ebp
ret
cmp eax, 4
jl 0x492281
mov esi, dword [0x588a30]
lea edi, [ebp - 0x48]
mov ebx, dword [0x4b420c]
mov eax, esi
cdq
and edx, 3
mov dword [ebp - 0x2c], esi
add eax, edx
mov dword [ebp - 0x48], 0
sar eax, 2
xor esi, esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea ecx, [eax + eax]
lea eax, [eax + eax*2]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
push 0
push 0
push edi
push fcn.00491ae0
push 0
push 0
call fcn.004981a8
add esp, 0x18
mov dword [ebp + esi*4 - 0x68], eax
push 2
push eax
call ebx
inc esi
add edi, 8
cmp esi, 4
jl 0x492224
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x68]
push eax
push 4
call dword [0x4b409c]
mov edi, dword [0x4b4264]
xor esi, esi
push dword [ebp + esi*4 - 0x68]
call edi
inc esi
cmp esi, 4
jl 0x492264
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493955
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x588a30]
cmp eax, 2
jl 0x49230f
mov ebx, dword [0x4b420c]
lea edi, [ebp - 0x48]
mov eax, ecx
mov dword [ebp - 0x48], 0
cdq
sub eax, edx
mov dword [ebp - 0x3c], ecx
sar eax, 1
xor esi, esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
push 0
push 0
push edi
push fcn.00491ae0
push 0
push 0
call fcn.004981a8
add esp, 0x18
mov dword [ebp + esi*4 - 0x68], eax
push 2
push eax
call ebx
inc esi
add edi, 8
cmp esi, 2
jl 0x4922b2
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x68]
push eax
push 2
call dword [0x4b409c]
mov edi, dword [0x4b4264]
xor esi, esi
push dword [ebp + esi*4 - 0x68]
call edi
inc esi
cmp esi, 2
jl 0x4922f2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493955
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
mov dword [ebp - 0x44], ecx
call fcn.00491ae0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493955
mov esp, ebp
pop ebp
ret