Function at 0x180045810
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
xorps xmm0, xmm0
xor edi, edi
movups xmmword [0x18005f960], xmm0
movups xmmword [0x18005f970], xmm0
movups xmmword [0x18005f980], xmm0
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [0x18005fa10]
lea rcx, [0x18005f960]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x180045880
lea rcx, [0x18005f960]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x18005f960]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
call fcn.180046bc0
cmp rbx, qword [rax + 0x18]
jne 0x1800458c8
mov edx, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x18005fa10]
xor r9d, r9d
mov dword [rsp + 0x30], 3
mov rdx, rax
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_SetWindowPos]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rdi
movups xmmword [rsp + 0x40], xmm0
call fcn.180046bc0
lea rdx, [rsp + 0x40]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_GetClientRect]
call fcn.180046bc0
lea rdx, [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x60]
mov rbx, qword [0x18005f8f0]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x44], eax
call fcn.180046bc0
mov rcx, qword [rax + 0x18]
mov qword [rbx + 0x120], rcx
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x68]
mov ecx, 1
sub eax, dword [rsp + 0x60]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x128], xmm0
mov eax, dword [rsp + 0x6c]
sub eax, dword [rsp + 0x64]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x12c], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180045995
mov byte [rbx + 0x130], 1
mov eax, dword [rbx + 0x128]
mov dword [rbx + 0x3cc], eax
mov eax, dword [rbx + 0x12c]
mov dword [rbx + 0x3d0], eax
mov byte [rbx + 0x420], 1
jmp 0x18004599c
mov byte [rbx + 0x130], dil
mov eax, dword [0x180061cc0]
cmp dword [rsp + 0x40], eax
jne 0x1800459d0
mov eax, dword [0x180061cc8]
cmp dword [rsp + 0x48], eax
jne 0x1800459d0
mov eax, dword [0x180061cc4]
cmp dword [rsp + 0x44], eax
jne 0x1800459d0
mov eax, dword [0x180061ccc]
cmp dword [rsp + 0x4c], eax
je 0x180045a60
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [0x180061cc0], xmm0
call fcn.180046bc0
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x28], ecx
call fcn.180046bc0
mov ecx, dword [rsp + 0x4c]
mov dword [rax + 0x24], ecx
call fcn.180046bc0
mov ecx, dword [rax + 0x28]
mov dword [0x18005f920], ecx
call fcn.180046bc0
mov ecx, dword [rax + 0x24]
mov dword [0x18005f924], ecx
call fcn.180046bc0
mov ebx, dword [rax + 0x24]
call fcn.180046bc0
mov r9d, dword [rsp + 0x64]
xor edx, edx
mov r8d, dword [rsp + 0x60]
mov dword [rsp + 0x30], 8
mov ecx, dword [rax + 0x28]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov rcx, qword [0x18005fa10]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x18005f998]
lea rdx, [0x18005f920]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.1800441f0
cmp dword [0x18005f968], 0x12
jne 0x180045840
mov rcx, qword [0x18005fa68]
test rcx, rcx
je 0x180045b0f
mov rdx, qword [0x18005fa70]
test rdx, rdx
je 0x180045aa5
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x18005fa68]
mov qword [0x18005fa70], rdi
mov rdx, qword [0x18005fa60]
test rdx, rdx
je 0x180045ac8
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x18005fa68]
mov qword [0x18005fa60], rdi
mov rdx, qword [0x18005fa58]
test rdx, rdx
je 0x180045afd
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x18005f8f0]
mov qword [0x18005fa58], rdi
mov rcx, qword [rax + 0xa8]
mov qword [rcx + 8], rdi
mov rcx, qword [0x18005fa68]
test rcx, rcx
je 0x180045b0f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x18005fa68], rdi
mov rcx, qword [0x18005fa80]
test rcx, rcx
je 0x180045b21
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [0x18005f8f0]
mov rcx, rbx
mov qword [0x18005fa80], rdi
mov qword [0x18005fa88], rdi
mov qword [0x18005fa90], rdi
mov qword [0x18005fa98], rdi
mov qword [0x18005faa0], rdi
mov qword [0x18005faa8], rdi
mov dword [0x18005f530], 9
mov byte [0x18005fa78], dil
mov byte [0x18005f37f], 1
call fcn.180009690
mov rax, qword [0x18005f8f0]
cmp rax, rbx
cmove rax, rdi
mov qword [0x18005f8f0], rax
test rbx, rbx
je 0x180045bb5
mov rcx, rbx
call fcn.1800185b0
mov rax, qword [0x18005f8f0]
test rax, rax
je 0x180045ba6
dec dword [rax + 0x3b4]
mov rdx, qword [0x18005f8e0]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [0x18005f998]
test rcx, rcx
je 0x180045bd7
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x18005f998]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x18005f990]
test rcx, rcx
je 0x180045be9
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x18005fa10]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x18005f9d8]
mov rcx, qword [0x18005fa00]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp qword [sym.imp.USER32.dll_UnregisterClassA]