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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov al, byte [esi + 0x80]
push edi
test al, al
je 0x46085d
mov ecx, dword [ebx + 4]
cmp ecx, 0x207
je 0x460856
cmp ecx, 0x201
je 0x460856
cmp ecx, 0x204
jne 0x46085d
mov byte [esp + 0xf], 1
jmp 0x460862
mov byte [esp + 0xf], 0
cmp dword [ebx + 4], 0x207
jne 0x4608b3
test al, al
jne 0x4608b3
push 0x7f86
push 0
mov dword [esi + 0xa0], 0xff
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
movsx eax, word [ebx + 0xc]
movsx ecx, word [ebx + 0xe]
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ecx
mov eax, dword [esi + 0x28]
mov byte [esi + 0x80], 1
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x4608b3
push eax
call dword [sym.imp.USER32.dll_SetCapture]
or edi, 0xffffffff
cmp byte [esp + 0xf], 0
je 0x46090c
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
mov byte [esi + 0x80], 0
call eax
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
movq xmm0, qword [esp + 0x20]
movq qword [eax], xmm0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
movq xmm0, qword [esp + 0x28]
movq qword [eax + 8], xmm0
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
cmp dword [esi + 0x28], 0
je 0x46090c
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [ebx + 4], 0x200
jne 0x4609c1
cmp byte [esi + 0x80], 0
je 0x4609c1
movsx eax, word [ebx + 0xe]
sub eax, dword [esi + 0x74]
cvtsi2ss xmm0, eax
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x4d3610]
cvtsd2ss xmm0, xmm0
cvtss2sd xmm0, xmm0
movapd xmm1, xmm0
mulsd xmm1, xmm0
cvtsd2ss xmm0, xmm1
test eax, eax
jle 0x46095c
xorps xmm0, xmmword [0x4d3390]
xorps xmm1, xmm1
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
movss dword [esp + 0x14], xmm0
mov eax, dword [esp + 0x14]
push 0
movss dword [esp + 0x14], xmm1
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, esi
movss dword [esi + 0x78], xmm0
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
movq xmm0, qword [esp + 0x20]
movq qword [eax], xmm0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
movq xmm0, qword [esp + 0x28]
movq qword [eax + 8], xmm0
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
cmp dword [ebx + 4], 0x20a
jne 0x460a3e
movzx ecx, word [ebx + 0xa]
xorps xmm0, xmm0
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
movss dword [esp + 0x10], xmm0
cvtsi2sd xmm0, ecx
mulsd xmm0, qword [0x4c88e8]
mov ecx, dword [esp + 0x10]
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x14], xmm0
mov eax, dword [esp + 0x14]
push 1
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
mov ecx, esi
call edx
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
movq xmm0, qword [esp + 0x20]
movq qword [eax], xmm0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
movq xmm0, qword [esp + 0x28]
movq qword [eax + 8], xmm0
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
pop edi
pop esi
mov eax, 0xf4241
pop ebx
mov esp, ebp
pop ebp
ret 4