Function at 0x46fea4
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 0x46fa69
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x30]
cmp eax, esi
je 0x46fa73
mov dword [edi + 0x2c], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov eax, ecx
cmp eax, 0x117
mov dword [0x561440], esi
jg 0x46fb2b
je 0x46fad9
cmp eax, 0x1c
je case.0x46fb42.514
cmp eax, 0x21
jne case.default.0x46fb42
mov esi, dword [0x5649e4]
test esi, esi
je 0x46fac1
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
cmp esi, dword [eax + 0x5c]
je 0x46fac1
mov ecx, esi
mov eax, edi
call fcn.004721e0
mov dword [0x5649e4], 0
mov eax, 0xf4241
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x17
mov byte [0x5642a4], 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 0x46fb17
mov edx, dword [ebx + 8]
mov dword [0x5643ac], edx
mov eax, 0xf4241
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [0x5643ac], 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.0x46fb42
movzx eax, byte [eax + 0x470270]
jmp dword [eax*4 + 0x470248]
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.0046ef00
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x46fbce
lea esi, [edi + 0x2c]
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.00442200
cmp eax, 0xf4240
jne 0x46fbce
cmp dword [esi], 0
mov byte [esp + 0xf], 1
je 0x46fbce
mov eax, dword [edi + 0x28]
test eax, eax
je 0x46fbd4
mov ecx, dword [eax + 0x5c]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
lea eax, [esp + 0x18]
call fcn.004018f0
jmp 0x47012c
call dword [sym.imp.USER32.dll_ReleaseCapture]
lea eax, [esp + 0x18]
call fcn.004018f0
jmp 0x47012c
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.0046ef00
call fcn.00490b10
mov ecx, dword [edi + 0xa8]
mov byte [esp + 0x85], al
test ecx, ecx
je 0x46fc43
lea eax, [edi + 0x2c]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00442200
cmp dword [edi + 0x2c], 0
je 0x46fc5f
mov eax, dword [edi + 0x28]
test eax, eax
je 0x46fc5a
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 0x47012c
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.0046ef00
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x46fcc2
lea eax, [edi + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00442200
cmp dword [edi + 0x34], 0
je 0x46fc5f
mov eax, dword [edi + 0x28]
test eax, eax
je 0x46fc5a
mov ecx, dword [eax + 0x5c]
push ecx
jmp 0x46fc54
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 0x46fcfc
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x46fd05
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
cmp dword [ebx + 4], 0x1c
jne 0x46fd45
cmp dword [ebx + 8], esi
je 0x46fd21
mov esi, dword [edi + 0xb0]
test esi, esi
je 0x46fd28
call fcn.00471dd0
jmp 0x46fd28
mov eax, edi
call fcn.0046ef70
cmp dword [edi + 0x2c], 0
jne 0x46fd45
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 0x46fd9e
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.0046ef00
mov ecx, dword [esi]
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.00442200
cmp eax, 0xf4240
jne 0x46fd98
mov byte [esp + 0xf], 1
mov dword [esi], 0
cmp byte [esp + 0x23], 0
je 0x46fe0a
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.0046ef00
mov ecx, dword [edi + 0xa8]
test ecx, ecx
je 0x46fdee
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.00442200
mov eax, dword [esi]
test eax, eax
je 0x46fe0a
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 0x46fe1f
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47012c
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
jmp 0x47012c
mov ecx, edi
lea esi, [esp + 0x18]
call fcn.004018c0
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [edi + 0x34], 0
je 0x46fc5f
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.0046ef00
mov ecx, dword [edi + 0x34]
lea esi, [edi + 0x34]
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.00442200
cmp eax, 0xf4240
jne 0x46fe90
mov byte [esp + 0xf], 1
lea eax, [esp + 0x18]
mov dword [esi], 0
call fcn.004018f0
jmp 0x47012c
call fcn.00446830
test al, al
jne case.default.0x46fb42
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.0x46fb42
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 [0x4d3998]
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 0x46ff24
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 0x46fffd
lea eax, [esp + 0x8c]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00442200
cmp eax, 0xf4240
jne 0x46fffd
mov byte [esp + 0xf], 1
lea eax, [esp + 0x28]
call fcn.004018f0
jmp case.0x46fb42.288
mov ecx, edi
lea esi, [esp + 0x18]
call fcn.004018c0
cmp dword [edi + 0x2c], 0
je 0x470077
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.0046ef00
call fcn.00490b10
mov ecx, dword [edi + 0x2c]
mov byte [esp + 0x85], al
lea eax, [edi + 0x2c]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00442200
cmp eax, 0xf4240
jne 0x470077
mov eax, esi
call fcn.004018f0
jmp 0x470167
cmp dword [edi + 0xa8], 0
je 0x4700d7
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.0046ef00
call fcn.00490b10
mov ecx, dword [edi + 0xa8]
mov byte [esp + 0x85], al
lea eax, [edi + 0x2c]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00442200
cmp eax, 0xf4240
jne 0x4700d7
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.00444a80
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax]
jl 0x47011d
mov edx, ecx
cmp edx, dword [eax + 8]
jge 0x47011d
cmp ebx, dword [eax + 4]
jl 0x47011d
cmp ebx, dword [eax + 0xc]
jge 0x47011d
mov bl, 1
jmp 0x47011f
xor bl, bl
lea eax, [esp + 0x18]
call fcn.004018f0
test bl, bl
je case.0x46fb42.288
cmp byte [edi + 0xc4], 0
jne case.0x46fb42.288
cmp byte [edi + 0xc5], 0
jne case.0x46fb42.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.0x46fb42
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 [0x5643ac], esi
je case.default.0x46fb42
cmp dword [ebx + 8], 2
jne case.default.0x46fb42
call fcn.00446830
test al, al
jne case.default.0x46fb42
cmp byte [0x5642a4], al
je 0x47020f
push 0
push str.32768
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, eax
test esi, esi
je 0x47020f
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 [0x5643ac], 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 [0x5642a4], cl
mov eax, 0xf4241
pop ebx
mov esp, ebp
pop ebp
ret 4