Function at 0x180021260
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x180050040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, qword [0x180050e28]
lea rcx, [rsp + 0x20]
mov rdx, rdi
mov qword [rsp + 0x90], rsi
call fcn.180008510
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.180006c90
mov rsi, rax
mov rax, qword [rax + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x1800212af
mov rsi, qword [rsi]
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r15
cmp rax, 0x12
jb 0x180021335
lea rbp, [rax + rsi]
mov edx, 0x41
lea r8, [rbp - 0x11]
mov rcx, rsi
sub r8, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x180021335
movabs r14, 0x52746c7561737341
movabs r15, 0x5243415f656c6669
cmp qword [rbx], r14
jne 0x180021316
cmp qword [rbx + 8], r15
jne 0x180021316
cmp word [rbx + 0x10], 0x435f
je 0x180021391
inc rbx
lea r8, [rbp - 0x11]
sub r8, rbx
mov rcx, rbx
mov edx, 0x41
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x180021303
mov rbx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x48]
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
cmp rdx, 0xf
jbe 0x18002139b
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180021396
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180021396
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rbx, rsi
jmp 0x18002133c
call fcn.18003ce04
cmp rbx, 0xffffffffffffffff
je 0x18002155e
cmp byte [0x1800508e5], 0
je 0x1800213e5
mov ecx, dword [0x180050934]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800213e5
inc dword [0x18005092c]
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x18005092c]
cmp eax, 0xd
jne 0x1800213eb
xor eax, eax
mov dword [0x18005092c], eax
jmp 0x1800213eb
mov eax, dword [0x18005092c]
cmp eax, 0xc
ja case.default.0x180021407
lea rcx, [0x180000000]
cdqe
mov edx, dword [rcx + rax*4 + 0x2157c]
add rdx, rcx
jmp rdx
lea rcx, str.Default__AssaultRifle_ACR_Edge_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__AssaultRifle_ACR_Edge_Lv4_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__Carbine_Atlas_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__Carbine_Atlas_v1_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__Carbine_Soulstealer2_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__Carbine_Soulstealer2_v1_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__Carbine_Afterglow2_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__Carbine_Afterglow2_v2_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__Carbine_Cyberpunk2_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__Carbine_Cyberpunk2_Lv4_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__Carbine_King_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__Carbine_King_Lv4_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__Carbine_Daedalus_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__Carbine_Daedalus_Lv4_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__Carbine_SpecOps_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__Carbine_SpecOps_Lv4_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__Carbine_URF_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__Carbine_URF_Lv4_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__Carbine_Protocol_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__Carbine_Protocol_Lv4_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__AssaultRifle_ACR_Oni_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__AssaultRifle_ACR_Oni_Black_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__Carbine_Cosmos_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__Carbine_Cosmos_Lv1_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__Carbine_Lunar_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__Carbine_Lunar_Lv1_PrimaryAsset_C
jmp 0x180021542
lea rcx, str.Default__AssaultRifle_ACR_Oblivion_PrimaryAsset_C
call fcn.1800079e0
lea rcx, str.Default__AssaultRifle_ACR_Oblivion_Lv4_PrimaryAsset_C
mov rbx, rax
call fcn.1800079e0
mov r9d, 4
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.180018fd0
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18003cda0
add rsp, 0x70
pop rdi
ret