Function at 0x504150
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5f3836
mov eax, dword fs:[0]
push eax
sub esp, 0x228
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x14]
movq xmm0, qword [esi]
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
movq qword [esp + 0x54], xmm0
movq xmm0, qword [esi + 8]
push edi
movq qword [esp + 0x60], xmm0
movq xmm0, qword [esi + 0x10]
push eax
lea ecx, [esp + 0x5c]
movq qword [esp + 0x6c], xmm0
call fcn.004a94d0
movsd xmm0, qword [esi]
subsd xmm0, qword [esp + 0x54]
movsd qword [esp + 0xc4], xmm0
movsd xmm0, qword [esi + 8]
subsd xmm0, qword [esp + 0x5c]
lea ecx, [esp + 0xc4]
movsd qword [esp + 0xcc], xmm0
movsd xmm0, qword [esi + 0x10]
subsd xmm0, qword [esp + 0x64]
push ecx
lea edx, [esp + 0xb0]
push edx
mov ecx, edi
movsd qword [esp + 0xdc], xmm0
call fcn.004a8ae0
movsd xmm0, qword [0x616648]
subsd xmm0, qword [0x5ff760]
movsd xmm1, qword [ebp + 0x20]
comisd xmm1, xmm0
jbe 0x504573
mov ebx, dword [ebp + 8]
push 9
mov ecx, ebx
call fcn.00412980
mov ecx, dword [ebp + 0xc]
push 9
call fcn.00412880
mov edi, dword [ebp + 0x10]
push 0xc
mov ecx, edi
call fcn.00412880
mov eax, dword [edi]
xorps xmm0, xmm0
movsd qword [eax + 0x10], xmm0
mov ecx, dword [edi]
movsd qword [ecx + 8], xmm0
mov edx, dword [edi]
movsd qword [edx], xmm0
mov eax, dword [edi]
movsd xmm0, qword [0x5fcc40]
movsd qword [eax + 0x20], xmm0
mov ecx, dword [edi]
movsd qword [ecx + 0x18], xmm0
mov edx, dword [edi]
movsd xmm0, qword [0x5fb9c8]
movsd qword [edx + 0x30], xmm0
mov eax, dword [edi]
movsd qword [eax + 0x28], xmm0
mov ecx, dword [edi]
movsd xmm0, qword [0x5fd930]
movsd qword [ecx + 0x40], xmm0
mov edx, dword [edi]
movsd qword [edx + 0x38], xmm0
mov eax, dword [edi]
movsd xmm0, qword [0x5fb270]
movsd qword [eax + 0x58], xmm0
mov ecx, dword [edi]
movsd qword [ecx + 0x50], xmm0
mov edx, dword [edi]
movsd qword [edx + 0x48], xmm0
mov eax, dword [ebx]
movq xmm1, qword [esi]
movq qword [eax], xmm1
movq xmm1, qword [esi + 8]
movq qword [eax + 8], xmm1
movq xmm1, qword [esi + 0x10]
movq qword [eax + 0x10], xmm1
mov eax, dword [ebx]
movq xmm1, qword [eax]
movq qword [eax + 0xc0], xmm1
movq xmm1, qword [eax + 8]
movq qword [eax + 0xc8], xmm1
movq xmm1, qword [eax + 0x10]
movq qword [eax + 0xd0], xmm1
mov eax, dword [ebx]
movsd xmm1, qword [esp + 0x54]
subsd xmm1, qword [esp + 0xc4]
movsd xmm2, qword [esp + 0x5c]
subsd xmm2, qword [esp + 0xcc]
movsd xmm3, qword [esp + 0x64]
subsd xmm3, qword [esp + 0xd4]
movq qword [eax + 0x60], xmm1
movq qword [eax + 0x68], xmm2
movq qword [eax + 0x70], xmm3
movsd xmm1, qword [esp + 0xac]
addsd xmm1, qword [esp + 0x54]
movsd xmm2, qword [esp + 0xb4]
addsd xmm2, qword [esp + 0x5c]
movsd xmm3, qword [esp + 0xbc]
addsd xmm3, qword [esp + 0x64]
add eax, 0x60
mov eax, dword [ebx]
movq qword [eax + 0x30], xmm1
add eax, 0x30
movq qword [eax + 8], xmm2
movq qword [eax + 0x10], xmm3
movsd xmm1, qword [esp + 0x54]
movsd xmm2, qword [esp + 0x5c]
subsd xmm1, qword [esp + 0xac]
subsd xmm2, qword [esp + 0xb4]
movsd xmm3, qword [esp + 0x64]
mov eax, dword [ebx]
subsd xmm3, qword [esp + 0xbc]
movq qword [eax + 0x90], xmm1
movq qword [eax + 0x98], xmm2
movq qword [eax + 0xa0], xmm3
movsd xmm1, qword [esp + 0xac]
addsd xmm1, qword [esp + 0xc4]
movsd xmm2, qword [esp + 0xb4]
addsd xmm2, qword [esp + 0xcc]
movsd xmm3, qword [esp + 0xbc]
addsd xmm3, qword [esp + 0xd4]
add eax, 0x90
mov eax, dword [ebx]
add eax, 0x18
movapd xmm4, xmm1
addsd xmm4, qword [esp + 0x54]
movapd xmm5, xmm2
addsd xmm5, qword [esp + 0x5c]
movapd xmm6, xmm3
addsd xmm6, qword [esp + 0x64]
movq qword [eax], xmm4
movq qword [eax + 8], xmm5
movq qword [eax + 0x10], xmm6
mov eax, dword [ebx]
movsd xmm4, qword [esp + 0x54]
subsd xmm4, xmm1
movsd xmm1, qword [esp + 0x5c]
subsd xmm1, xmm2
movsd xmm2, qword [esp + 0x64]
movq qword [eax + 0x78], xmm4
movq qword [eax + 0x80], xmm1
add eax, 0x78
subsd xmm2, xmm3
movq qword [eax + 0x10], xmm2
mov eax, dword [ebx]
movsd xmm1, qword [esp + 0xc4]
subsd xmm1, qword [esp + 0xac]
movsd xmm2, qword [esp + 0xcc]
subsd xmm2, qword [esp + 0xb4]
movsd xmm3, qword [esp + 0xd4]
subsd xmm3, qword [esp + 0xbc]
movsd xmm4, qword [esp + 0x54]
movsd xmm5, qword [esp + 0x5c]
movsd xmm6, qword [esp + 0x64]
add eax, 0x48
subsd xmm4, xmm1
movq qword [eax], xmm4
subsd xmm5, xmm2
movq qword [eax + 8], xmm5
subsd xmm6, xmm3
movq qword [eax + 0x10], xmm6
mov ebx, dword [ebx]
addsd xmm1, qword [esp + 0x54]
addsd xmm2, qword [esp + 0x5c]
addsd xmm3, qword [esp + 0x64]
mov eax, dword [ebp + 0xc]
movq qword [ebx + 0xa8], xmm1
movq qword [ebx + 0xb0], xmm2
movq qword [ebx + 0xb8], xmm3
mov ecx, dword [eax]
sqrtsd xmm1, qword [0x5fcc60]
movsd qword [ecx + 0x40], xmm0
mov edx, dword [eax]
movsd qword [edx + 0x30], xmm0
mov ecx, dword [eax]
add ebx, 0xa8
movsd qword [ecx + 0x20], xmm0
mov edx, dword [eax]
movsd qword [edx + 0x10], xmm0
mov ecx, dword [eax]
movsd qword [ecx], xmm0
mov ecx, dword [eax]
divsd xmm0, xmm1
movsd qword [ecx + 0x38], xmm0
fld qword [ecx + 0x38]
mov edx, dword [eax]
fstp qword [edx + 0x28]
mov ecx, dword [eax]
fld qword [edx + 0x28]
fstp qword [ecx + 0x18]
mov edx, dword [eax]
fld qword [ecx + 0x18]
mov eax, 9
fstp qword [edx + 8]
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xc4]
call fcn.004a8b50
fst qword [esp + 0x84]
fld qword [0x5ff758]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x504f77
lea ecx, [esp + 0xac]
call fcn.004a8b50
fstp st(0)
push edi
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x180]
call fcn.004e3930
lea edx, [esp + 0x1bc]
push edx
lea ecx, [esp + 0x178]
call fcn.004e3c60
xorps xmm0, xmm0
movsd qword [esp + 0xa4], xmm0
movsd qword [esp + 0x9c], xmm0
movsd xmm0, qword [esi]
subsd xmm0, qword [esp + 0x54]
movsd qword [esp + 0x6c], xmm0
movsd xmm0, qword [esi + 8]
subsd xmm0, qword [esp + 0x5c]
lea eax, [esp + 0x1bc]
movsd qword [esp + 0x74], xmm0
movsd xmm0, qword [esi + 0x10]
subsd xmm0, qword [esp + 0x64]
push eax
lea ecx, [esp + 0xe0]
push ecx
lea ecx, [esp + 0x74]
movsd qword [esp + 0x84], xmm0
call fcn.004a8910
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0xa0]
call fcn.004a84e0
lea ecx, [esp + 0x124]
call fcn.004ac260
fld qword [ebp + 0x20]
sub esp, 8
lea ecx, [esp + 0x12c]
fstp qword [esp]
call fcn.004ac2f0
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0xa4]
call fcn.004a77a0
movsd xmm0, qword [0x5ff700]
movsd xmm1, qword [ebp + 0x20]
movapd xmm2, xmm0
mulsd xmm2, qword [0x5fe0c0]
comisd xmm2, xmm1
jbe 0x5048a4
mov ebx, dword [ebp + 8]
push 3
mov ecx, ebx
call fcn.00412980
mov ecx, dword [ebp + 0xc]
push 3
call fcn.00412880
mov edi, dword [ebp + 0x10]
push 6
mov ecx, edi
call fcn.00412880
mov edx, dword [edi]
xorps xmm1, xmm1
movsd xmm0, qword [0x5fb270]
movsd qword [edx + 0x10], xmm1
mov eax, dword [edi]
movsd qword [eax + 8], xmm1
mov ecx, dword [edi]
movsd qword [ecx], xmm1
mov edx, dword [edi]
movsd qword [edx + 0x28], xmm0
mov eax, dword [edi]
movsd qword [eax + 0x20], xmm0
mov ecx, dword [edi]
mov edi, dword [ebp + 0xc]
movsd qword [ecx + 0x18], xmm0
mov edx, dword [edi]
movsd qword [edx + 0x10], xmm0
mov eax, dword [edi]
movsd qword [eax], xmm0
mov eax, dword [ebx]
movq xmm0, qword [esi]
movq qword [eax], xmm0
movq xmm0, qword [esi + 8]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
movsd xmm0, qword [esp + 0x8c]
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0xf8]
movsd qword [esp + 0x70], xmm0
movsd xmm0, qword [esp + 0x98]
push edx
lea ecx, [esp + 0x74]
movsd qword [esp + 0x7c], xmm0
movsd qword [esp + 0x84], xmm1
call fcn.004a8910
mov eax, dword [ebx]
movsd xmm0, qword [esp + 0xf4]
movsd xmm1, qword [esp + 0xfc]
movsd xmm2, qword [esp + 0x104]
addsd xmm0, qword [esp + 0x54]
addsd xmm1, qword [esp + 0x5c]
addsd xmm2, qword [esp + 0x64]
add eax, 0x30
movq qword [eax], xmm0
movq qword [eax + 8], xmm1
movq qword [eax + 0x10], xmm2
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0xfc]
push edx
call fcn.004cb500
movsd xmm0, qword [esp + 0x100]
add esp, 0xc
lea eax, [esp + 0x174]
movsd qword [esp + 0x6c], xmm0
movsd xmm0, qword [esp + 0xfc]
push eax
lea ecx, [esp + 0xe0]
movsd qword [esp + 0x78], xmm0
xorps xmm0, xmm0
push ecx
lea ecx, [esp + 0x74]
movsd qword [esp + 0x84], xmm0
call fcn.004a8910
movsd xmm0, qword [esp + 0xdc]
addsd xmm0, qword [esp + 0x54]
mov eax, dword [ebx]
fld qword [esp + 0x84]
movsd xmm1, qword [esp + 0xe4]
movsd xmm2, qword [esp + 0xec]
addsd xmm1, qword [esp + 0x5c]
addsd xmm2, qword [esp + 0x64]
add eax, 0x18
movq qword [eax], xmm0
sub esp, 8
movq qword [eax + 8], xmm1
fstp qword [esp]
movq qword [eax + 0x10], xmm2
mov esi, dword [edi]
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x104]
push ecx
add esi, 8
call fcn.004cb590
fstp qword [esi]
add esp, 0x14
mov eax, 3
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mulsd xmm0, qword [0x5fd500]
divsd xmm0, qword [0x5fcc48]
comisd xmm0, xmm1
mov ecx, dword [ebp + 8]
jbe 0x504bc1
push 5
call fcn.00412980
mov ebx, dword [ebp + 0xc]
push 5
mov ecx, ebx
call fcn.00412880
mov edi, dword [ebp + 0x10]
push 8
mov ecx, edi
call fcn.00412880
mov edx, dword [edi]
xorps xmm1, xmm1
movsd qword [edx + 0x10], xmm1
mov eax, dword [edi]
movsd qword [eax + 8], xmm1
mov ecx, dword [edi]
movsd xmm0, qword [0x5fb9c8]
movsd qword [ecx], xmm1
mov edx, dword [edi]
movsd qword [edx + 0x20], xmm0
mov eax, dword [edi]
movsd qword [eax + 0x18], xmm0
mov ecx, dword [edi]
movsd xmm0, qword [0x5fb270]
movsd qword [ecx + 0x38], xmm0
mov edx, dword [edi]
movsd qword [edx + 0x30], xmm0
mov eax, dword [edi]
mov edi, dword [ebp + 8]
movsd qword [eax + 0x28], xmm0
mov ecx, dword [ebx]
movsd qword [ecx + 0x20], xmm0
mov edx, dword [ebx]
movsd qword [edx + 0x10], xmm0
mov eax, dword [ebx]
movsd qword [eax], xmm0
mov eax, dword [edi]
movq xmm0, qword [esi]
movq qword [eax], xmm0
movq xmm0, qword [esi + 8]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
movsd xmm0, qword [esp + 0x8c]
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x70]
movsd qword [esp + 0xe0], xmm0
movsd xmm0, qword [esp + 0x98]
push edx
lea ecx, [esp + 0xe4]
movsd qword [esp + 0xec], xmm0
movsd qword [esp + 0xf4], xmm1
call fcn.004a8910
mov eax, dword [edi]
movsd xmm0, qword [esp + 0x6c]
movsd xmm1, qword [esp + 0x74]
movsd xmm2, qword [esp + 0x7c]
addsd xmm0, qword [esp + 0x54]
addsd xmm1, qword [esp + 0x5c]
addsd xmm2, qword [esp + 0x64]
add eax, 0x60
movq qword [eax], xmm0
movq qword [eax + 8], xmm1
push 3
lea ecx, [esp + 0xf8]
movq qword [eax + 0x10], xmm2
call fcn.00412cb0
movsd xmm0, qword [ebp + 0x20]
mulsd xmm0, qword [0x5fb9c8]
sub esp, 8
lea ecx, [esp + 0x12c]
mov dword [esp + 0x248], 0
movsd qword [esp], xmm0
call fcn.004ac2f0
lea eax, [esp + 0x124]
lea ecx, [esp + 0x6c]
push eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.004a77a0
mov esi, dword [esp + 0xf4]
movq xmm0, qword [esp + 0x6c]
lea edi, [esi + 0x10]
push edi
lea edx, [esp + 0xa0]
movq qword [edi], xmm0
movq xmm0, qword [esp + 0x78]
push edx
lea eax, [esp + 0x74]
push eax
movq qword [edi + 8], xmm0
call fcn.004cb500
movq xmm0, qword [eax]
lea ecx, [esp + 0x98]
push ecx
movq qword [esi], xmm0
movq xmm0, qword [eax + 8]
lea edx, [esp + 0x7c]
push edi
push edx
movq qword [esi + 8], xmm0
call fcn.004cb500
movq xmm0, qword [eax]
movq qword [esi + 0x20], xmm0
movq xmm0, qword [eax + 8]
mov eax, esi
add esp, 0x18
movq qword [esi + 0x28], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], eax
jmp 0x504ab4
mov eax, dword [esp + 0x4c]
movsd xmm0, qword [eax + 8]
movsd xmm1, qword [eax]
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0x110]
movsd qword [esp + 0x78], xmm0
xorps xmm0, xmm0
push ecx
lea ecx, [esp + 0x74]
movsd qword [esp + 0x74], xmm1
movsd qword [esp + 0x84], xmm0
call fcn.004a8910
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [esp + 0x50]
movsd xmm0, qword [esp + 0x10c]
movsd xmm1, qword [esp + 0x114]
movsd xmm2, qword [esp + 0x11c]
addsd xmm0, qword [esp + 0x54]
addsd xmm1, qword [esp + 0x5c]
addsd xmm2, qword [esp + 0x64]
add dword [esp + 0x4c], 0x10
lea eax, [ecx + eax + 0x18]
add ecx, 0x18
cmp ecx, 0x48
movq qword [eax], xmm0
movq qword [eax + 8], xmm1
movq qword [eax + 0x10], xmm2
mov dword [esp + 0x50], ecx
jl 0x504ab0
fld qword [esp + 0x84]
mov eax, dword [ebx]
sub esp, 8
fstp qword [esp]
push edi
lea ecx, [esp + 0xa8]
push ecx
add eax, 8
push esi
mov dword [esp + 0x64], eax
call fcn.004cb590
mov edx, dword [esp + 0x64]
fstp qword [edx]
mov ebx, dword [ebx]
fld qword [esp + 0x98]
add esp, 0xc
fstp qword [esp]
lea eax, [esp + 0x94]
push eax
lea eax, [esi + 0x20]
push edi
push eax
add ebx, 0x18
call fcn.004cb590
fstp qword [ebx]
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x18
mov eax, 5
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 7
call fcn.00412980
mov ebx, dword [ebp + 0xc]
push 7
mov ecx, ebx
call fcn.00412880
mov edi, dword [ebp + 0x10]
push 0xa
mov ecx, edi
call fcn.00412880
mov ecx, dword [edi]
xorps xmm1, xmm1
movsd qword [ecx + 0x10], xmm1
mov edx, dword [edi]
movsd qword [edx + 8], xmm1
mov eax, dword [edi]
movsd qword [eax], xmm1
mov ecx, dword [edi]
movsd xmm0, qword [0x5fc980]
movsd qword [ecx + 0x20], xmm0
mov edx, dword [edi]
movsd qword [edx + 0x18], xmm0
mov eax, dword [edi]
movsd xmm0, qword [0x5fdb88]
movsd qword [eax + 0x30], xmm0
mov ecx, dword [edi]
movsd qword [ecx + 0x28], xmm0
mov edx, dword [edi]
movsd xmm0, qword [0x5fb270]
movsd qword [edx + 0x48], xmm0
mov eax, dword [edi]
movsd qword [eax + 0x40], xmm0
mov ecx, dword [edi]
movsd qword [ecx + 0x38], xmm0
mov edx, dword [ebx]
mov edi, dword [ebp + 8]
movsd qword [edx + 0x30], xmm0
mov eax, dword [ebx]
movsd qword [eax + 0x20], xmm0
mov ecx, dword [ebx]
movsd qword [ecx + 0x10], xmm0
mov edx, dword [ebx]
movsd qword [edx], xmm0
mov eax, dword [edi]
movq xmm0, qword [esi]
movq qword [eax], xmm0
movq xmm0, qword [esi + 8]
movq qword [eax + 8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
movsd xmm0, qword [esp + 0x8c]
lea eax, [esp + 0x174]
push eax
lea ecx, [esp + 0xe0]
movsd qword [esp + 0x110], xmm0
movsd xmm0, qword [esp + 0x98]
push ecx
lea ecx, [esp + 0x114]
movsd qword [esp + 0x11c], xmm0
movsd qword [esp + 0x124], xmm1
call fcn.004a8910
mov eax, dword [edi]
movsd xmm0, qword [esp + 0xdc]
movsd xmm1, qword [esp + 0xe4]
movsd xmm2, qword [esp + 0xec]
addsd xmm0, qword [esp + 0x54]
addsd xmm1, qword [esp + 0x5c]
addsd xmm2, qword [esp + 0x64]
add eax, 0x90
movq qword [eax], xmm0
movq qword [eax + 8], xmm1
push 5
lea ecx, [esp + 0xf8]
movq qword [eax + 0x10], xmm2
call fcn.00412cb0
movsd xmm0, qword [ebp + 0x20]
divsd xmm0, qword [0x5fcc48]
sub esp, 8
mov dword [esp + 0x248], 1
movsd qword [esp], xmm0
lea ecx, [esp + 0x12c]
call fcn.004ac2f0
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xa4]
call fcn.004a77a0
mov esi, dword [esp + 0xf4]
movq xmm0, qword [esp + 0x6c]
lea edi, [esi + 0x10]
lea ecx, [esp + 0x124]
push ecx
movq qword [edi], xmm0
movq xmm0, qword [esp + 0x78]
lea edx, [esp + 0x70]
push edx
mov ecx, edi
movq qword [edi + 8], xmm0
call fcn.004a77a0
movq xmm0, qword [esp + 0x6c]
push edi
lea eax, [esp + 0xa0]
movq qword [esi + 0x30], xmm0
movq xmm0, qword [esp + 0x78]
push eax
lea ecx, [esp + 0x74]
push ecx
movq qword [esi + 0x38], xmm0
call fcn.004cb500
movq xmm0, qword [eax]
movq qword [esi], xmm0
movq xmm0, qword [eax + 8]
lea eax, [esi + 0x30]
push eax
lea edx, [esp + 0x7c]
push edi
push edx
movq qword [esi + 8], xmm0
call fcn.004cb500
movq xmm0, qword [eax]
movq qword [esi + 0x20], xmm0
movq xmm0, qword [eax + 8]
lea eax, [esp + 0xa4]
push eax
lea eax, [esi + 0x30]
push eax
lea ecx, [esp + 0x8c]
push ecx
movq qword [esi + 0x28], xmm0
call fcn.004cb500
movq xmm0, qword [eax]
movq qword [esi + 0x40], xmm0
movq xmm0, qword [eax + 8]
mov eax, esi
add esp, 0x24
movq qword [esi + 0x48], xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], eax
jmp 0x504e34
mov eax, dword [esp + 0x4c]
movsd xmm0, qword [eax + 8]
movsd xmm1, qword [eax]
lea edx, [esp + 0x174]
push edx
lea eax, [esp + 0x160]
movsd qword [esp + 0x150], xmm0
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x14c]
movsd qword [esp + 0x14c], xmm1
movsd qword [esp + 0x15c], xmm0
call fcn.004a8910
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x50]
movsd xmm0, qword [esp + 0x15c]
movsd xmm1, qword [esp + 0x164]
movsd xmm2, qword [esp + 0x16c]
addsd xmm0, qword [esp + 0x54]
addsd xmm1, qword [esp + 0x5c]
addsd xmm2, qword [esp + 0x64]
add dword [esp + 0x4c], 0x10
lea eax, [ecx + edx + 0x18]
add ecx, 0x18
cmp ecx, 0x78
movq qword [eax], xmm0
movq qword [eax + 8], xmm1
movq qword [eax + 0x10], xmm2
mov dword [esp + 0x50], ecx
jl 0x504e30
mov eax, dword [ebx]
fld qword [esp + 0x84]
sub esp, 8
add eax, 8
fstp qword [esp]
mov dword [esp + 0x58], eax
push edi
lea eax, [esp + 0xa8]
push eax
push esi
call fcn.004cb590
mov ecx, dword [esp + 0x64]
fstp qword [ecx]
mov eax, dword [ebx]
fld qword [esp + 0x98]
add eax, 0x18
add esp, 0xc
mov dword [esp + 0x58], eax
fstp qword [esp]
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x20]
push edi
push eax
call fcn.004cb590
mov edx, dword [esp + 0x64]
fstp qword [edx]
mov ebx, dword [ebx]
fld qword [esp + 0x98]
add esp, 0xc
fstp qword [esp]
lea eax, [esp + 0x94]
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x40]
push eax
add ebx, 0x28
call fcn.004cb590
fstp qword [ebx]
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x18
mov eax, 7
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsd xmm0, qword [0x5ff700]
movsd xmm1, qword [ebp + 0x20]
mov edi, dword [ebp + 0x10]
movapd xmm2, xmm0
mulsd xmm2, qword [0x5fe0c0]
comisd xmm2, xmm1
mov ecx, edi
jbe 0x504fe3
push 6
mov dword [esp + 0x50], 3
call fcn.00412880
mov ecx, dword [edi]
xorps xmm0, xmm0
movsd qword [ecx + 0x10], xmm0
mov edx, dword [edi]
movsd qword [edx + 8], xmm0
mov eax, dword [edi]
movsd qword [eax], xmm0
mov ecx, dword [edi]
movsd xmm0, qword [0x5fb270]
movsd qword [ecx + 0x28], xmm0
mov edx, dword [edi]
movsd qword [edx + 0x20], xmm0
mov eax, dword [edi]
movsd qword [eax + 0x18], xmm0
jmp 0x5050c3
mulsd xmm0, qword [0x5fd500]
divsd xmm0, qword [0x5fcc48]
comisd xmm0, xmm1
jbe 0x505054
push 8
mov dword [esp + 0x50], 5
call fcn.00412880
mov ecx, dword [edi]
xorps xmm0, xmm0
movsd qword [ecx + 0x10], xmm0
mov edx, dword [edi]
movsd qword [edx + 8], xmm0
mov eax, dword [edi]
movsd qword [eax], xmm0
mov ecx, dword [edi]
movsd xmm0, qword [0x5fb9c8]
movsd qword [ecx + 0x20], xmm0
mov edx, dword [edi]
movsd qword [edx + 0x18], xmm0
mov eax, dword [edi]
movsd xmm0, qword [0x5fb270]
movsd qword [eax + 0x38], xmm0
mov ecx, dword [edi]
movsd qword [ecx + 0x30], xmm0
mov edx, dword [edi]
movsd qword [edx + 0x28], xmm0
jmp 0x5050c3
push 0xa
mov dword [esp + 0x50], 7
call fcn.00412880
mov eax, dword [edi]
xorps xmm0, xmm0
movsd qword [eax + 0x10], xmm0
mov ecx, dword [edi]
movsd qword [ecx + 8], xmm0
mov edx, dword [edi]
movsd qword [edx], xmm0
mov eax, dword [edi]
movsd xmm0, qword [0x5fc980]
movsd qword [eax + 0x20], xmm0
mov ecx, dword [edi]
movsd qword [ecx + 0x18], xmm0
mov edx, dword [edi]
movsd xmm0, qword [0x5fdb88]
movsd qword [edx + 0x30], xmm0
mov eax, dword [edi]
movsd qword [eax + 0x28], xmm0
mov ecx, dword [edi]
movsd xmm0, qword [0x5fb270]
movsd qword [ecx + 0x48], xmm0
mov edx, dword [edi]
movsd qword [edx + 0x40], xmm0
mov eax, dword [edi]
movsd qword [eax + 0x38], xmm0
mov ebx, dword [esp + 0x4c]
mov edi, dword [ebp + 8]
push ebx
mov ecx, edi
call fcn.00412980
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.00412880
mov ecx, dword [esp + 0x4c]
movsd xmm0, qword [0x5fb270]
xor eax, eax
cmp ecx, 4
jl 0x5051d1
xor edx, edx
mov dword [esp + 0x50], edx
lea ebx, [ebx]
mov ecx, dword [edi]
movq xmm1, qword [esi]
movq qword [ecx + edx], xmm1
movq xmm1, qword [esi + 8]
movq qword [ecx + edx + 8], xmm1
movq xmm1, qword [esi + 0x10]
movq qword [ecx + edx + 0x10], xmm1
add ecx, edx
mov ecx, dword [ebx]
movsd qword [ecx + eax*8], xmm0
mov ecx, dword [edi]
movq xmm1, qword [esi]
movq qword [ecx + edx + 0x18], xmm1
movq xmm1, qword [esi + 8]
movq qword [ecx + edx + 0x20], xmm1
movq xmm1, qword [esi + 0x10]
movq qword [ecx + edx + 0x28], xmm1
lea ecx, [ecx + edx + 0x18]
mov ecx, dword [ebx]
movsd qword [ecx + eax*8 + 8], xmm0
mov ecx, dword [edi]
movq xmm1, qword [esi]
add edx, 0x48
movq qword [ecx + edx - 0x18], xmm1
movq xmm1, qword [esi + 8]
movq qword [ecx + edx - 0x10], xmm1
movq xmm1, qword [esi + 0x10]
lea ecx, [ecx + edx - 0x18]
movq qword [ecx + 0x10], xmm1
mov ecx, dword [ebx]
movsd qword [ecx + eax*8 + 0x10], xmm0
mov ecx, dword [edi]
movq xmm1, qword [esi]
add ecx, edx
movq qword [ecx], xmm1
movq xmm1, qword [esi + 8]
movq qword [ecx + 8], xmm1
movq xmm1, qword [esi + 0x10]
movq qword [ecx + 0x10], xmm1
mov edx, dword [ebx]
mov ecx, dword [esp + 0x4c]
movsd qword [edx + eax*8 + 0x18], xmm0
mov edx, dword [esp + 0x50]
add eax, 4
add edx, 0x60
add ecx, 0xfffffffd
cmp eax, ecx
mov dword [esp + 0x50], edx
jl 0x505100
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
jge 0x50522b
lea edx, [eax + eax*2]
add edx, edx
add edx, edx
add edx, edx
mov edi, edi
mov ecx, dword [edi]
movq xmm1, qword [esi]
add ecx, edx
movq qword [ecx], xmm1
movq xmm1, qword [esi + 8]
movq qword [ecx + 8], xmm1
movq xmm1, qword [esi + 0x10]
movq qword [ecx + 0x10], xmm1
mov ecx, dword [ebx]
movsd qword [ecx + eax*8], xmm0
inc eax
add edx, 0x18
cmp eax, dword [esp + 0x4c]
jl 0x5051e0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret