Function at 0x14004fc80
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140067040]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
xor ebp, ebp
movups xmmword [0x1400b2420], xmm0
movups xmmword [0x1400b2430], xmm0
movups xmmword [0x1400b2440], xmm0
nop dword [rax]
mov rdx, qword [0x1400b24d0]
lea rcx, [0x1400b2420]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14004fd30
nop word [rax + rax]
lea rcx, [0x1400b2420]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x1400b2420]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov rdx, qword [0x1400b24d0]
lea rcx, [0x1400b2420]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14004fcf0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [0x1400b23c8]
cmp rax, rcx
jne 0x14004fd7d
mov edx, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x1400b24d0]
xor r9d, r9d
mov dword [rsp + 0x30], 3
mov rdx, rax
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov dword [rsp + 0x20], ebp
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1400b23c8]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rbp
lea rdx, [rsp + 0x48]
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x1400b23c8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov rbx, qword [0x1400b23b0]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x4c], eax
mov rax, qword [0x1400b23c8]
mov qword [rbx + 0xe38], rax
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x58]
mov ecx, 1
sub eax, dword [rsp + 0x40]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe48], xmm0
mov eax, dword [rsp + 0x5c]
sub eax, dword [rsp + 0x44]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe4c], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004fe3d
mov byte [rbx + 0xe50], 1
mov byte [rbx + 0x3868], 1
mov eax, dword [rbx + 0xe48]
mov dword [rbx + 0x3818], eax
mov eax, dword [rbx + 0xe4c]
mov dword [rbx + 0x381c], eax
jmp 0x14004fe44
mov byte [rbx + 0xe50], bpl
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004fe7c
mov byte [rbx + 0xe51], 1
mov eax, dword [rbx + 0xe48]
mov dword [rbx + 0x3820], eax
mov eax, dword [rbx + 0xe4c]
mov dword [rbx + 0x3824], eax
mov byte [rbx + 0x3869], 1
jmp 0x14004fe83
mov byte [rbx + 0xe51], bpl
mov eax, dword [0x1400b2b90]
mov ecx, dword [rsp + 0x54]
mov edx, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jne 0x14004feb3
cmp edx, dword [0x1400b2b98]
jne 0x14004feb3
mov eax, dword [0x1400b2b94]
cmp dword [rsp + 0x4c], eax
jne 0x14004feb3
cmp ecx, dword [0x1400b2b9c]
je 0x14004ff17
movups xmm0, xmmword [rsp + 0x48]
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov dword [0x1400b23c0], edx
mov dword [0x1400b2478], ecx
mov dword [0x1400b23e0], edx
xor edx, edx
mov dword [0x1400b23e4], ecx
mov rcx, qword [0x1400b24d0]
movups xmmword [0x1400b2b90], xmm0
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1400b2458]
lea rdx, [0x1400b23e0]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.14004f5a0
cmp dword [0x1400b2428], 0x12
jne 0x14004fcc0
mov r8, qword [0x1400b23b0]
test r8, r8
je 0x14004ff3e
mov rdi, qword [r8 + 0x98]
jmp 0x14004ff41
mov rdi, rbp
lea rsi, [r8 + 8]
test r8, r8
je 0x14004ffb1
mov rbx, qword [r8 + 0x98]
test rbx, rbx
je 0x14004ffb1
cmp qword [rbx], rbp
je 0x14004ffb1
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14004ff75
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r8, qword [0x1400b23b0]
mov qword [rbx + 8], rbp
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004ff8f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r8, qword [0x1400b23b0]
mov qword [rbx + 0x10], rbp
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004ffb1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r8, qword [0x1400b23b0]
mov qword [rbx + 0x18], rbp
mov rax, qword [r8 + 0x38]
mov qword [rax + 8], rbp
mov rcx, qword [rdi]
test rcx, rcx
je 0x14004ffc6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r8, qword [0x1400b23b0]
mov qword [rsi + 0x80], rbp
mov qword [rsi + 0x90], rbp
test r8, r8
je 0x140050038
movsx rdx, word [r8 + 0x6078]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rdx*8 + 0x607c]
add rcx, r8
cmp dword [rcx], r9d
je 0x14005002d
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rcx, [rax*8 + 0x607c]
add rcx, r8
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6074]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [0x1400b23b0]
test r8, r8
je 0x140050056
mov rbx, qword [r8 + 0x90]
jmp 0x140050059
mov rbx, rbp
mov rcx, qword [rbx + 0x30]
lea rdi, [r8 + 8]
test rcx, rcx
je 0x140050073
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8, qword [0x1400b23b0]
mov qword [rdi + 0x78], rbp
mov qword [rdi + 0x88], rbp
test r8, r8
je 0x1400500e2
movsx rdx, word [r8 + 0x6078]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rdx*8 + 0x607c]
add rcx, r8
cmp dword [rcx], r9d
je 0x1400500d7
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rcx, [rax*8 + 0x607c]
add rcx, r8
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6074]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1400b23b0]
mov qword [0x1400b23b0], rbx
call fcn.14000d880
mov qword [0x1400b23b0], rbp
test rbx, rbx
je 0x140050187
mov rcx, rbx
call fcn.1400252b0
mov r8, qword [0x1400b23b0]
test r8, r8
je 0x14005017e
movsx r10, word [r8 + 0x6078]
lea rdx, [r8 + 0x607c]
mov r9d, dword [r8 + 0x3f60]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x140050173
lea ecx, [r10 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
lea rdx, [r8 + 0x607c]
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], ebp
inc word [rdx + 6]
inc dword [r8 + 0x6074]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1400b2458]
test rcx, rcx
je 0x1400501a9
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400b2458]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1400b2450]
test rcx, rcx
je 0x1400501bb
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1400b24d0]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x1400b2498]
mov rcx, qword [0x1400b24c0]
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400531f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret