Function at 0x140043510
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14007e1c0]
xor rax, rsp
mov qword [rbp + 0x10], rax
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rdi
mov ecx, 0x10
call fcn.14004767c
test rax, rax
je 0x140043582
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
lea rcx, [0x1400459b0]
mov qword [rax + 8], rcx
jmp 0x140043585
mov rax, rdi
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140042d00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14004387a
cmp dword [rbp - 0x68], 0x12
je 0x140043792
lea rsi, [0x140057350]
movabs r14, 0x2e8ba2e8ba2e8ba3
nop word [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140043612
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call fcn.1400426b0
test al, al
je 0x1400436c0
call fcn.1400425d0
mov rdx, rax
mov r9b, 1
mov r8d, 0x48
lea rcx, [rbp - 0x40]
call fcn.1400428d0
nop
lea rcx, [0x140057300]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400438a9
cmp dword [0x14005734c], 0x7fffffff
je 0x140043894
movaps xmm0, xmmword [rbp - 0x40]
movaps xmmword [0x14007e580], xmm0
movaps xmm1, xmmword [rbp - 0x30]
movaps xmmword [0x14007e590], xmm1
movaps xmm0, xmmword [rbp - 0x20]
movaps xmmword [0x14007e5a0], xmm0
movaps xmm1, xmmword [rbp - 0x10]
movaps xmmword [0x14007e5b0], xmm1
movsd xmm0, qword [rbp]
movsd qword [0x14007e5c0], xmm0
lea rcx, [0x140057300]
call sub.MSVCP140.dll__Mtx_unlock
nop
lea r9, [fcn.140003340]
mov edx, 0xc
mov r8d, 3
lea rcx, [rbp - 0x1c]
call fcn.140046fb0
nop
call fcn.14000a390
mov rbx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm0, dword [rsp + 0x40]
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x120], xmm0
movd xmm1, dword [rsp + 0x44]
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x124], xmm1
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x128], al
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov qword [rbp - 0x78], rdi
mov qword [rsp + 0x30], rsi
mov rcx, rsi
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400438c9
cmp dword [0x14005739c], 0x7fffffff
je 0x1400438b4
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x60]
mov rax, r14
imul rcx
sar rdx, 4
mov r8, rdx
shr r8, 0x3f
add r8, rdx
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x78]
call fcn.140042a90
nop
mov rcx, rsi
call sub.MSVCP140.dll__Mtx_unlock
lea rcx, [rsp + 0x78]
call fcn.1400438e0
nop
lea rcx, [rsp + 0x78]
call fcn.140045810
cmp dword [rbp - 0x68], 0x12
jne 0x1400435e0
mov byte [0x1400573a0], 0
cmp dword [rsp + 0x58], 0
je 0x1400437d7
call sub.MSVCP140.dll__Thrd_id
cmp dword [rsp + 0x58], eax
je 0x140043889
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x30], xmm0
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll__Thrd_join
test eax, eax
jne 0x14004386f
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x50], xmm0
call fcn.14002a3d0
call fcn.14002a840
xor ecx, ecx
call fcn.1400084a0
mov rcx, qword [0x14007e4f0]
test rcx, rcx
je 0x1400437fa
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x14007e4e8]
test rcx, rcx
je 0x14004380c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x14007e488]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x14007e4a8]
mov rcx, qword [0x14007e4d0]
call qword [sym.imp.USER32.dll_UnregisterClassA]
nop
cmp dword [rsp + 0x58], 0
je 0x14004383c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
lea rcx, [rsp + 0x60]
call fcn.140045810
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140046f20
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 2
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rsp + 0x58], edi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [0x14005734c], 0x7ffffffe
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [0x14005739c], 0x7ffffffe
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3