Function at 0x46fea0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x34]
xor esi, esi
mov byte [edi + 0xc4], 0
mov byte [esp + 0xf], 0
cmp eax, esi
je 0x46fec9
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x30]
cmp eax, esi
je 0x46fed3
mov dword [edi + 0x2c], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov eax, ecx
cmp eax, 0x117
mov dword [0x561a40], esi
jg 0x46ff8b
je 0x46ff39
cmp eax, 0x1c
je case.0x46ffa2.514
cmp eax, 0x21
jne case.default.0x46ffa2
mov esi, dword [0x564fe4]
test esi, esi
je 0x46ff21
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
cmp esi, dword [eax + 0x5c]
je 0x46ff21
mov ecx, esi
mov eax, edi
call fcn.00472640
mov dword [0x564fe4], 0
mov eax, 0xf4241
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x17
mov byte [0x5648a4], 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
neg eax
inc eax
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jbe 0x46ff77
mov edx, dword [ebx + 8]
mov dword [0x5649ac], edx
mov eax, 0xf4241
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [0x5649ac], esi
mov eax, 0xf4241
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
sub eax, 0x11f
cmp eax, 0xeb
ja case.default.0x46ffa2
movzx eax, byte [eax + 0x4706d0]
jmp dword [eax*4 + 0x4706a8]
mov ecx, edi
lea esi, [esp + 0x18]
call fcn.004018c0
mov dword [edi + 0x2c], 0
movsx ecx, word [ebx + 0xc]
movsx edx, word [ebx + 0xe]
cvtsi2ss xmm0, ecx
movss dword [esp + 0x10], xmm0
cvtsi2ss xmm0, edx
push 0xd
lea ecx, [esp + 0x14]
lea eax, [esp + 0x3c]
movss dword [esp + 0x18], xmm0
call fcn.0046f360
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x47002e
lea esi, [edi + 0x2c]
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.00442510
cmp eax, 0xf4240
jne 0x47002e
cmp dword [esi], 0
mov byte [esp + 0xf], 1
je 0x47002e
mov eax, dword [edi + 0x28]
test eax, eax
je 0x470034
mov ecx, dword [eax + 0x5c]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
lea eax, [esp + 0x18]
call fcn.004018f0
jmp 0x47058c
call dword [sym.imp.USER32.dll_ReleaseCapture]
lea eax, [esp + 0x18]
call fcn.004018f0
jmp 0x47058c
mov ecx, edi
lea esi, [esp + 0x18]
call fcn.004018c0
mov dword [edi + 0x2c], 0
movsx edx, word [ebx + 0xc]
movsx eax, word [ebx + 0xe]
cvtsi2ss xmm0, edx
movss dword [esp + 0x10], xmm0
cvtsi2ss xmm0, eax
push 1
lea ecx, [esp + 0x14]
lea eax, [esp + 0x3c]
movss dword [esp + 0x18], xmm0
call fcn.0046f360
call fcn.00490fa0
mov ecx, dword [edi + 0xa8]
mov byte [esp + 0x85], al
test ecx, ecx
je 0x4700a3
lea eax, [edi + 0x2c]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00442510
cmp dword [edi + 0x2c], 0
je 0x4700bf
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4700ba
mov eax, dword [eax + 0x5c]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov byte [esp + 0xf], 1
lea eax, [esp + 0x18]
call fcn.004018f0
jmp 0x47058c
mov ecx, edi
lea esi, [esp + 0x18]
call fcn.004018c0
mov dword [edi + 0x34], 0
movsx ecx, word [ebx + 0xc]
movsx edx, word [ebx + 0xe]
cvtsi2ss xmm0, ecx
movss dword [esp + 0x10], xmm0
cvtsi2ss xmm0, edx
push 7
lea ecx, [esp + 0x14]
lea eax, [esp + 0x3c]
movss dword [esp + 0x18], xmm0
call fcn.0046f360
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x470122
lea eax, [edi + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00442510
cmp dword [edi + 0x34], 0
je 0x4700bf
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4700ba
mov ecx, dword [eax + 0x5c]
push ecx
jmp 0x4700b4
cmp ecx, 0x204
sete byte [esp + 0x23]
lea eax, [edi + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
cmp dword [edi + 8], esi
je 0x47015c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x470165
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
cmp dword [ebx + 4], 0x1c
jne 0x4701a5
cmp dword [ebx + 8], esi
je 0x470181
mov esi, dword [edi + 0xb0]
test esi, esi
je 0x470188
call fcn.00472230
jmp 0x470188
mov eax, edi
call fcn.0046f3d0
cmp dword [edi + 0x2c], 0
jne 0x4701a5
lea eax, [esp + 0x10]
call fcn.004018f0
mov eax, 0xf4240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0x2c], 0
lea esi, [edi + 0x2c]
je 0x4701fe
movsx ecx, word [ebx + 0xc]
movsx edx, word [ebx + 0xe]
cvtsi2ss xmm0, ecx
movss dword [esp + 0x10], xmm0
cvtsi2ss xmm0, edx
push 4
lea ecx, [esp + 0x14]
lea eax, [esp + 0x3c]
movss dword [esp + 0x18], xmm0
call fcn.0046f360
mov ecx, dword [esi]
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.00442510
cmp eax, 0xf4240
jne 0x4701f8
mov byte [esp + 0xf], 1
mov dword [esi], 0
cmp byte [esp + 0x23], 0
je 0x47026a
lea esi, [edi + 0x30]
mov dword [esi], 0
movsx ecx, word [ebx + 0xc]
movsx edx, word [ebx + 0xe]
cvtsi2ss xmm0, ecx
movss dword [esp + 0x10], xmm0
cvtsi2ss xmm0, edx
push 5
lea ecx, [esp + 0x14]
lea eax, [esp + 0x3c]
movss dword [esp + 0x18], xmm0
call fcn.0046f360
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x47024e
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.00442510
mov eax, dword [esi]
test eax, eax
je 0x47026a
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x3c]
push ebx
mov ecx, edi
mov dword [esi], 0
call eax
mov byte [esp + 0xf], 1
cmp dword [edi + 8], 0
je 0x47027f
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47058c
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
jmp 0x47058c
mov ecx, edi
lea esi, [esp + 0x18]
call fcn.004018c0
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0x34], 0
je 0x4700bf
movsx ecx, word [ebx + 0xc]
movsx edx, word [ebx + 0xe]
cvtsi2ss xmm0, ecx
movss dword [esp + 0x10], xmm0
cvtsi2ss xmm0, edx
push 8
lea ecx, [esp + 0x14]
lea eax, [esp + 0x3c]
movss dword [esp + 0x18], xmm0
call fcn.0046f360
mov ecx, dword [edi + 0x34]
lea esi, [edi + 0x34]
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.00442510
cmp eax, 0xf4240
jne 0x4702f0
mov byte [esp + 0xf], 1
lea eax, [esp + 0x18]
mov dword [esi], 0
call fcn.004018f0
jmp 0x47058c
call fcn.00446b50
test al, al
jne case.default.0x46ffa2
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
add eax, 2
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
ja case.default.0x46ffa2
mov ecx, edi
lea esi, [esp + 0x28]
call fcn.004018c0
movsx eax, word [ebx + 0xc]
movsx edx, word [ebx + 0xa]
movsx ecx, word [ebx + 0xe]
cvtsi2ss xmm0, edx
cvtss2sd xmm0, xmm0
divsd xmm0, qword [0x4d39c8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x28]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x24], xmm0
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x470384
mov eax, dword [eax + 0x5c]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
cvtsi2ss xmm0, dword [esp + 0x18]
movss xmm1, dword [0x4bb568]
movss dword [esp + 0x10], xmm0
cvtsi2ss xmm0, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
movss dword [esp + 0x14], xmm0
xorps xmm0, xmm0
mov edx, dword [esp + 0x14]
mov dword [esp + 0x7c], ecx
mov ecx, dword [edi + 0xa8]
movss dword [esp + 0x50], xmm0
movss dword [esp + 0x54], xmm0
movss dword [esp + 0x58], xmm0
movss dword [esp + 0x60], xmm0
movss dword [esp + 0x64], xmm0
movss dword [esp + 0x68], xmm0
movss dword [esp + 0x74], xmm0
movss dword [esp + 0x78], xmm0
cvtss2sd xmm0, dword [esp + 0x24]
mov dword [esp + 0x38], vtable.ytUIEvent.0
mov dword [esp + 0x48], 0
movss dword [esp + 0x4c], xmm1
movss dword [esp + 0x5c], xmm1
movss dword [esp + 0x6c], xmm1
mov byte [esp + 0x70], 1
mov dword [esp + 0x80], edx
mov dword [esp + 0x3c], 0xe
movsd qword [esp + 0x40], xmm0
mov byte [esp + 0x85], 0
mov byte [esp + 0x84], 0
test ecx, ecx
je 0x47045d
lea eax, [esp + 0x8c]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00442510
cmp eax, 0xf4240
jne 0x47045d
mov byte [esp + 0xf], 1
lea eax, [esp + 0x28]
call fcn.004018f0
jmp case.0x46ffa2.288
mov ecx, edi
lea esi, [esp + 0x18]
call fcn.004018c0
cmp dword [edi + 0x2c], 0
je 0x4704d7
movsx eax, word [ebx + 0xc]
movsx ecx, word [ebx + 0xe]
cvtsi2ss xmm0, eax
movss dword [esp + 0x10], xmm0
cvtsi2ss xmm0, ecx
push 3
lea ecx, [esp + 0x14]
lea eax, [esp + 0x3c]
movss dword [esp + 0x18], xmm0
call fcn.0046f360
call fcn.00490fa0
mov ecx, dword [edi + 0x2c]
mov byte [esp + 0x85], al
lea eax, [edi + 0x2c]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00442510
cmp eax, 0xf4240
jne 0x4704d7
mov eax, esi
call fcn.004018f0
jmp 0x4705c7
cmp dword [edi + 0xa8], 0
je 0x470537
movsx eax, word [ebx + 0xc]
movsx ecx, word [ebx + 0xe]
cvtsi2ss xmm0, eax
movss dword [esp + 0x10], xmm0
cvtsi2ss xmm0, ecx
push 2
lea ecx, [esp + 0x14]
lea eax, [esp + 0x3c]
movss dword [esp + 0x18], xmm0
call fcn.0046f360
call fcn.00490fa0
mov ecx, dword [edi + 0xa8]
mov byte [esp + 0x85], al
lea eax, [edi + 0x2c]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00442510
cmp eax, 0xf4240
jne 0x470537
mov byte [esp + 0xf], 1
mov edx, dword [edi]
mov byte [edi + 0xc5], 0
movsx eax, word [ebx + 0xc]
movsx ebx, word [ebx + 0xe]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
push eax
lea esi, [esp + 0x94]
call fcn.00444d90
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax]
jl 0x47057d
mov edx, ecx
cmp edx, dword [eax + 8]
jge 0x47057d
cmp ebx, dword [eax + 4]
jl 0x47057d
cmp ebx, dword [eax + 0xc]
jge 0x47057d
mov bl, 1
jmp 0x47057f
xor bl, bl
lea eax, [esp + 0x18]
call fcn.004018f0
test bl, bl
je case.0x46ffa2.288
cmp byte [edi + 0xc4], 0
jne case.0x46ffa2.288
cmp byte [edi + 0xc5], 0
jne case.0x46ffa2.288
push 0x7f00
push 0
mov byte [edi + 0xc5], 1
mov byte [edi + 0xc4], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [esp + 0xf], 0
je case.default.0x46ffa2
fldz
mov edx, dword [edi]
push ecx
fstp dword [esp]
or eax, 0xffffffff
push 1
push 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
movq xmm0, qword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
sub esp, 0x10
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x4c]
movq qword [eax + 8], xmm0
mov eax, dword [edx + 0x4c]
mov ecx, edi
call eax
mov eax, 0xf4241
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x5649ac], esi
je case.default.0x46ffa2
cmp dword [ebx + 8], 2
jne case.default.0x46ffa2
call fcn.00446b50
test al, al
jne case.default.0x46ffa2
cmp byte [0x5648a4], al
je 0x47066f
push 0
push str.32768
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, eax
test esi, esi
je 0x47066f
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push 0x11c0001
push 0xd
push 0x100
push esi
call edi
push 0xc11c0001
push 0xd
push 0x101
push esi
call edi
mov dword [0x5649ac], 0
mov eax, 0xf4241
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x8000
test word [ebx + 0xa], ax
pop edi
seta cl
pop esi
mov byte [0x5648a4], cl
mov eax, 0xf4241
pop ebx
mov esp, ebp
pop ebp
ret 4