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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x50d4cc]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x64]
push esi
mov esi, dword [ecx + 0x58]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x50]
sub esi, eax
push edi
mov edi, dword [ecx + 0x54]
sub edi, dword [ecx + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
push edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], esi
call dword [eax + 0x6c]
mov ecx, dword [esp + 0x14]
call fcn.0040ca90
add eax, 0x34
je 0x4503cf
add eax, 0xfffffff8
mov dword [esp + 0x10], eax
jmp 0x4503d7
mov dword [esp + 0x10], 0
push 0x519b84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x10]
push 0x519b84
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
shr eax, 0x1f
test al, 1
je 0x450513
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.0040ca90
add eax, 0x36
je 0x45041f
add eax, 0xfffffff6
mov dword [esp + 0x10], eax
jmp 0x450427
mov dword [esp + 0x10], 0
push 0x519b84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x10]
push 0x519b84
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
shr eax, 0xe
test al, 1
je 0x4504f6
mov ecx, dword [esp + 0x28]
sub esp, 0x10
mov edx, dword [esi]
mov eax, esp
movdqu xmm0, xmmword [ecx]
mov ecx, esi
movdqu xmmword [eax], xmm0
mov eax, dword [edx + 0xc8]
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
push 0x519b84
mov eax, dword [eax + 0x14c]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x14]
push 0x519b84
movdqu xmm0, xmmword [eax + 0x4c]
movdqa xmmword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movdqa xmm1, xmmword [esp + 0x30]
movdqa xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 8
movd ecx, xmm0
sub ecx, eax
lea eax, [esi - 1]
imul ecx, eax
mov eax, dword [esp + 0x18]
imul eax, esi
add ecx, eax
mov eax, dword [esp + 0x28]
movss xmm1, dword [eax + 8]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
mulss xmm1, dword [0x4e89d0]
cvttss2si esi, xmm1
mov dword [esp + 0x2c], esi
jmp 0x4504fa
mov esi, dword [esp + 0x2c]
test esi, esi
mov esi, dword [esp + 0x14]
jns 0x45068d
mov dword [esp + 0x2c], 0
jmp 0x45068d
mov ecx, dword [esp + 0x14]
call fcn.0040ca90
add eax, 0x36
je 0x45052a
add eax, 0xfffffff6
mov dword [esp + 0x10], eax
jmp 0x450532
mov dword [esp + 0x10], 0
push 0x519b84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x10]
push 0x519b84
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
shr eax, 0xd
test al, 1
je 0x4505cd
mov eax, dword [esp + 0x28]
movss xmm0, dword [eax + 0xc]
comiss xmm0, dword [esp + 0x78]
jbe 0x4505cd
mov ecx, dword [esp + 0x14]
call fcn.004518b0
movd xmm0, esi
mov esi, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
lea ecx, [eax - 1]
movd xmm1, ecx
mov ecx, dword [esi + 0x150]
cvtdq2ps xmm1, xmm1
imul ecx, eax
mulss xmm1, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm0, eax
mov eax, dword [esp + 0x28]
cvtdq2ps xmm0, xmm0
movss xmm1, dword [eax + 0xc]
subss xmm1, xmm0
mulss xmm1, dword [0x4e89d0]
cvttss2si eax, xmm1
mov dword [esp + 0x24], eax
jmp 0x4505d1
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.0040ca90
add eax, 0x36
je 0x4505e6
add eax, 0xfffffff6
mov dword [esp + 0x10], eax
jmp 0x4505ee
mov dword [esp + 0x10], 0
push 0x519b84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x10]
push 0x519b84
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
shr eax, 0xe
test al, 1
je 0x45068d
mov ecx, dword [esp + 0x14]
mov esi, dword [esi + 0x14c]
lea ecx, [ecx + 0xec]
call fcn.00411830
movd xmm2, edi
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4e8e50]
cvtpd2ps xmm1, xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
addss xmm0, xmm2
mulss xmm1, xmm0
cvttss2si eax, xmm1
movd xmm1, eax
mov eax, dword [esp + 0x28]
cvtdq2ps xmm1, xmm1
movss xmm0, dword [eax + 8]
comiss xmm0, xmm1
jbe 0x450689
subss xmm0, xmm1
mulss xmm0, dword [0x4e89d0]
cvttss2si esi, xmm0
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.0040ca90
add eax, 0x34
je 0x4506aa
add eax, 0xfffffff8
mov dword [esp + 0x10], eax
jmp 0x4506b2
mov dword [esp + 0x10], 0
push 0x519b84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x10]
push 0x519b84
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
shr eax, 0x1f
test al, 1
je 0x450b9e
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x154], 0
je 0x450929
lea eax, [edi + 0xec]
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.00411830
dec eax
mov dword [esp + 0x10], eax
js 0x450914
mov edi, edi
mov esi, dword [edi + 0x14c]
push 0x519b84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movdqu xmm0, xmmword [edi + 0x4c]
push 0x519b84
movdqa xmmword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x1c]
movdqa xmm1, xmmword [esp + 0x30]
add eax, esi
movdqa xmm0, xmm1
psrldq xmm0, 8
movd ecx, xmm0
movd xmm2, eax
movd eax, xmm1
cvtdq2ps xmm2, xmm2
sub ecx, eax
mov eax, dword [esp + 0x28]
movss xmm1, dword [eax + 8]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
comiss xmm2, xmm1
jb 0x4507c9
mov eax, dword [esp + 0x2c]
mov esi, dword [edi + 0x150]
push 0x519b84
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movdqu xmm0, xmmword [edi + 0x4c]
push 0x519b84
movdqa xmmword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movdqa xmm1, xmmword [esp + 0x30]
movdqa xmm0, xmm1
psrldq xmm1, 0xc
psrldq xmm0, 4
movd eax, xmm0
sub esi, eax
movd eax, xmm1
add esi, eax
add dword [esp + 0x24], esi
mov eax, dword [esp + 0x14]
push dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edi, dword [edi + 0x150]
mov esi, dword [eax + 0x14c]
call fcn.004118a0
movd xmm0, dword [esp + 0x1c]
lea ecx, [esp + 0x58]
cvtdq2ps xmm0, xmm0
push 0
push ecx
push eax
lea ecx, [eax + 0x130]
mov dword [esp + 0x2c], eax
movss dword [esp + 0x64], xmm0
movd xmm0, dword [esp + 0x30]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x68], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x6c], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x70], xmm0
call fcn.0040f590
cvttss2si eax, dword [esp + 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x519b84
cvttss2si ecx, dword [esp + 0x60]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
call edi
mov eax, dword [esp + 0x20]
push 0x519b84
mov esi, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, dword [esp + 0x50]
jne 0x45087f
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x54]
je 0x4508a5
push 0x519b84
call edi
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
push 0x519b84
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0x64], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4508a9
mov esi, dword [esp + 0x20]
cvttss2si eax, dword [esp + 0x60]
mov edi, dword [esp + 0x14]
push 0x519b84
mov dword [esi + 0x6c], eax
cvttss2si eax, dword [esp + 0x68]
mov dword [esi + 0x70], eax
mov esi, dword [edi + 0x14c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movdqu xmm0, xmmword [edi + 0x4c]
push 0x519b84
movdqa xmmword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movdqa xmm1, xmmword [esp + 0x30]
movdqa xmm0, xmm1
psrldq xmm1, 0xc
psrldq xmm0, 4
movd eax, xmm0
sub esi, eax
movd eax, xmm1
add esi, eax
add dword [esp + 0x1c], esi
dec dword [esp + 0x10]
jns 0x450710
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [esp + 0x20], eax
lea eax, [edi + 0xec]
mov dword [esp + 0x48], eax
lea esp, [esp]
lea esi, [eax + 4]
push esi
call fcn.004844c6
add esp, 4
test eax, eax
je 0x450959
push eax
call fcn.00484543
add esp, 4
mov eax, dword [edi + 0xf8]
sub eax, dword [edi + 0xf4]
sar eax, 2
push esi
mov dword [esp + 0x1c], eax
call fcn.004844d7
add esp, 4
test eax, eax
je 0x450982
push eax
call fcn.00484543
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x18]
jge 0x450914
test eax, eax
je 0x450a4d
mov esi, dword [edi + 0x14c]
push 0x519b84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movdqu xmm0, xmmword [edi + 0x4c]
push 0x519b84
movdqa xmmword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x1c]
movdqa xmm1, xmmword [esp + 0x30]
add eax, esi
movdqa xmm0, xmm1
psrldq xmm0, 8
movd ecx, xmm0
movd xmm2, eax
movd eax, xmm1
cvtdq2ps xmm2, xmm2
sub ecx, eax
mov eax, dword [esp + 0x28]
movss xmm1, dword [eax + 8]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
comiss xmm2, xmm1
jb 0x450a4d
mov eax, dword [esp + 0x2c]
mov esi, dword [edi + 0x150]
push 0x519b84
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movdqu xmm0, xmmword [edi + 0x4c]
push 0x519b84
movdqa xmmword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movdqa xmm1, xmmword [esp + 0x30]
movdqa xmm0, xmm1
psrldq xmm1, 0xc
psrldq xmm0, 4
movd eax, xmm0
sub esi, eax
movd eax, xmm1
add esi, eax
add dword [esp + 0x24], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov edi, dword [edi + 0x150]
mov esi, dword [eax + 0x14c]
mov eax, dword [esp + 0x20]
push eax
call fcn.004118a0
movd xmm0, dword [esp + 0x1c]
lea ecx, [esp + 0x58]
cvtdq2ps xmm0, xmm0
push 0
push ecx
push eax
lea ecx, [eax + 0x130]
mov dword [esp + 0x1c], eax
movss dword [esp + 0x64], xmm0
movd xmm0, dword [esp + 0x30]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x68], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x6c], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x70], xmm0
call fcn.0040f590
cvttss2si eax, dword [esp + 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x519b84
cvttss2si ecx, dword [esp + 0x60]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
call edi
mov eax, dword [esp + 0x10]
push 0x519b84
mov esi, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, dword [esp + 0x50]
jne 0x450b04
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x54]
je 0x450b2a
push 0x519b84
call edi
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
push 0x519b84
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0x64], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x450b2e
mov esi, dword [esp + 0x10]
cvttss2si eax, dword [esp + 0x60]
mov edi, dword [esp + 0x14]
push 0x519b84
mov dword [esi + 0x6c], eax
cvttss2si eax, dword [esp + 0x68]
mov dword [esi + 0x70], eax
mov esi, dword [edi + 0x14c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movdqu xmm0, xmmword [edi + 0x4c]
push 0x519b84
movdqa xmmword [esp + 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movdqa xmm1, xmmword [esp + 0x30]
movdqa xmm0, xmm1
psrldq xmm1, 0xc
psrldq xmm0, 4
movd eax, xmm0
sub esi, eax
movd eax, xmm1
add esi, eax
lea eax, [edi + 0xec]
add dword [esp + 0x1c], esi
inc dword [esp + 0x20]
jmp 0x450940
mov ecx, dword [esp + 0x28]
sub esp, 0x10
mov edx, dword [esi]
mov eax, esp
movdqu xmm0, xmmword [ecx]
mov ecx, esi
movdqu xmmword [eax], xmm0
mov eax, dword [edx + 0xc8]
call eax
cmp byte [esi + 0x154], 0
mov dword [esp + 0x28], eax
je 0x450ddb
lea eax, [esi + 0xec]
mov ecx, eax
mov dword [esp + 0x4c], eax
call fcn.00411830
dec eax
mov dword [esp + 0x20], eax
js 0x450914
add esi, 0xf0
mov edi, edi
push esi
call fcn.004844c6
add esp, 4
test eax, eax
je 0x450c06
push eax
call fcn.00484543
add esp, 4
mov eax, dword [esp + 0x14]
push esi
mov ecx, dword [eax + 0xf8]
sub ecx, dword [eax + 0xf4]
sar ecx, 2
mov dword [esp + 0x1c], ecx
call fcn.004844d7
add esp, 4
test eax, eax
je 0x450c33
push eax
call fcn.00484543
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub eax, ecx
dec eax
je 0x450c84
cdq
idiv dword [esp + 0x28]
test edx, edx
jne 0x450c84
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
movd xmm1, dword [eax + 0x150]
mov eax, dword [esp + 0x48]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movd xmm0, dword [esp + 0x24]
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
cvttss2si eax, xmm1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x50]
mov eax, dword [eax + 0x150]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x14c]
mov dword [esp + 0x1c], eax
call fcn.004118a0
movd xmm0, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
cvtdq2ps xmm0, xmm0
push 0
push ecx
push eax
lea ecx, [eax + 0x130]
mov dword [esp + 0x1c], eax
movss dword [esp + 0x3c], xmm0
movd xmm0, dword [esp + 0x30]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x40], xmm0
movd xmm0, dword [esp + 0x24]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x44], xmm0
movd xmm0, dword [esp + 0x5c]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x48], xmm0
call fcn.0040f590
cvttss2si eax, dword [esp + 0x30]
push 0x519b84
cvttss2si ecx, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x10]
push 0x519b84
mov eax, dword [ecx + 0x60]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x64]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x58]
jne 0x450d4d
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x5c]
je 0x450d75
push 0x519b84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
push 0x519b84
mov dword [ecx + 0x60], eax
mov eax, dword [esp + 0x60]
mov dword [ecx + 0x64], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esp + 0x20]
cvttss2si eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
movd xmm1, edi
mov dword [ecx + 0x6c], eax
cvttss2si eax, dword [esp + 0x3c]
cvtdq2ps xmm1, xmm1
mov dword [ecx + 0x70], eax
mov eax, dword [esp + 0x14]
movd xmm0, dword [eax + 0x14c]
mov eax, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [esp + 0x1c], eax
jns 0x450bf0
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [esp + 0x20], eax
lea eax, [esi + 0xec]
mov dword [esp + 0x18], eax
jmp 0x450df0
lea esi, [eax + 4]
push esi
call fcn.004844c6
add esp, 4
test eax, eax
je 0x450e09
push eax
call fcn.00484543
add esp, 4
mov ecx, dword [esp + 0x18]
push esi
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 2
mov dword [esp + 0x54], eax
call fcn.004844d7
add esp, 4
test eax, eax
je 0x450e30
push eax
call fcn.00484543
add esp, 4
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x50]
jge 0x450914
test ecx, ecx
je 0x450e88
mov eax, ecx
cdq
idiv dword [esp + 0x28]
test edx, edx
jne 0x450e88
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
movd xmm1, dword [eax + 0x150]
mov eax, dword [esp + 0x48]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movd xmm0, dword [esp + 0x24]
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
cvttss2si eax, xmm1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push ecx
mov eax, dword [eax + 0x150]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x14c]
lea ecx, [eax + 0xec]
call fcn.004118a0
movd xmm0, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
cvtdq2ps xmm0, xmm0
push 0
push ecx
push eax
lea ecx, [eax + 0x130]
mov dword [esp + 0x1c], eax
movss dword [esp + 0x3c], xmm0
movd xmm0, dword [esp + 0x30]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x40], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x44], xmm0
movd xmm0, dword [esp + 0x5c]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x48], xmm0
call fcn.0040f590
cvttss2si eax, dword [esp + 0x30]
push 0x519b84
cvttss2si ecx, dword [esp + 0x38]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x10]
push 0x519b84
mov esi, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x54], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, dword [esp + 0x58]
jne 0x450f45
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x5c]
je 0x450f6f
push 0x519b84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
push 0x519b84
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x60]
mov dword [esi + 0x64], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x450f73
mov esi, dword [esp + 0x10]
cvttss2si eax, dword [esp + 0x38]
inc dword [esp + 0x20]
movd xmm1, edi
mov dword [esi + 0x6c], eax
cvttss2si eax, dword [esp + 0x3c]
cvtdq2ps xmm1, xmm1
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x14]
movd xmm0, dword [eax + 0x14c]
mov eax, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
jmp 0x450df0