Function at 0x140041270
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x328
mov rax, qword [0x14016e340]
xor rax, rsp
mov qword [rsp + 0x318], rax
movzx eax, byte [0x14016e3f8]
test eax, eax
je 0x1400412a0
jmp 0x1400417e0
movzx eax, byte [0x1402387c2]
test eax, eax
jne 0x1400412b0
jmp 0x1400417e0
mov rax, qword [rsp + 0x340]
add rax, 0xa0
mov rdx, rax
lea rcx, [rsp + 0x2f8]
call fcn.1400253e0
nop
lea rdx, [rsp + 0x2f8]
lea rcx, [0x140237e58]
call fcn.140045bc0
movzx eax, al
test eax, eax
je 0x140041306
mov byte [0x1402387db], 0
lea rdx, [rsp + 0x2f8]
lea rcx, [0x140237e58]
call fcn.1400251e0
nop
mov edx, 0x18
lea rcx, [rsp + 0x2d8]
call fcn.140006860
lea rcx, [rsp + 0x21]
call fcn.1400070c0
mov qword [rsp + 0x50], rax
movzx r8d, byte [rsp + 0x22]
lea rdx, str.smokegrenade
lea rcx, [rsp + 0x120]
call fcn.140045c00
mov rcx, rax
call fcn.140020530
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.140025380
movzx r8d, byte [rsp + 0x23]
lea rdx, str.flashbang
lea rcx, [rsp + 0xf0]
call fcn.140045df0
mov rcx, rax
call fcn.140020ab0
mov rdx, rax
lea rcx, [rsp + 0x160]
call fcn.140025380
movzx r8d, byte [rsp + 0x24]
lea rdx, str.hegrenade
lea rcx, [rsp + 0x100]
call fcn.140045f70
mov rcx, rax
call fcn.140020ab0
mov rdx, rax
lea rcx, [rsp + 0x180]
call fcn.140025380
movzx r8d, byte [rsp + 0x20]
lea rdx, str.molotov
lea rcx, [rsp + 0xe0]
call fcn.1400460f0
mov rcx, rax
call fcn.140020480
mov rdx, rax
lea rcx, [rsp + 0x1a0]
call fcn.140025380
movzx r8d, byte [rsp + 0x26]
lea rdx, str.decoy
lea rcx, [rsp + 0x78]
call fcn.140046230
mov rcx, rax
call fcn.140018a40
mov rdx, rax
lea rcx, [rsp + 0x1c0]
call fcn.140025380
movzx r8d, byte [rsp + 0x27]
lea rdx, str.incgrenade
lea rcx, [rsp + 0x110]
call fcn.140046320
mov rcx, rax
call fcn.140020a00
mov rdx, rax
lea rcx, [rsp + 0x1e0]
call fcn.140025380
movzx r8d, byte [rsp + 0x28]
lea rdx, [0x140150eec]
lea rcx, [rsp + 0x68]
call fcn.1400464d0
mov rcx, rax
call fcn.14003fba0
mov rdx, rax
lea rcx, [rsp + 0x200]
call fcn.140025380
movzx r8d, byte [rsp + 0x29]
lea rdx, str.ssg08
lea rcx, [rsp + 0x80]
call fcn.140046580
mov rcx, rax
call fcn.140018a40
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.140025380
movzx r8d, byte [rsp + 0x25]
lea rdx, [0x140151014]
lea rcx, [rsp + 0x70]
call fcn.140046670
mov rcx, rax
call fcn.14003fba0
mov rdx, rax
lea rcx, [rsp + 0x240]
call fcn.140025380
movzx r8d, byte [rsp + 0x2a]
lea rdx, str.sg556
lea rcx, [rsp + 0x88]
call fcn.140046720
mov rcx, rax
call fcn.140018a40
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.140025380
movzx r8d, byte [rsp + 0x2b]
lea rdx, str.knife
lea rcx, [rsp + 0x90]
call fcn.140046810
mov rcx, rax
call fcn.140018a40
mov rdx, rax
lea rcx, [rsp + 0x280]
call fcn.140025380
movzx r8d, byte [rsp + 0x2c]
lea rdx, [0x1401510b8]
lea rcx, [rsp + 0x48]
call fcn.140046900
mov rcx, rax
call fcn.140021030
mov rdx, rax
lea rcx, [rsp + 0x2a0]
call fcn.140025380
lea rax, [rsp + 0x2c0]
mov r8, rax
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x130]
call fcn.140006fe0
lea rcx, [rsp + 0xb8]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xd0]
lea rcx, [rsp + 0xb8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x2d8]
call fcn.1400248b0
lea r9, [fcn.1400073c0]
mov r8d, 0xc
mov edx, 0x20
lea rcx, [rsp + 0x140]
call fcn.140141bdc
nop
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x2d8]
call fcn.140024be0
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x2d8]
call fcn.140024c40
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
lea r9, [rsp + 0x2f8]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xa8]
call fcn.140046990
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x2d8]
call fcn.140024be0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.140023960
movzx eax, al
test eax, eax
je 0x1400416ad
lea rcx, [rsp + 0x2d8]
call fcn.140024890
lea rcx, [rsp + 0x2f8]
call fcn.1400073c0
nop
jmp 0x1400417e0
mov eax, dword [0x1401c3f64]
mov rcx, qword [rsp + 0x340]
add rax, qword [rcx + 0x48]
lea r8, [rsp + 0x2f0]
mov rdx, rax
lea rcx, [0x1402389a8]
call fcn.140007f80
mov eax, dword [0x1401c3ff8]
mov rcx, qword [rsp + 0x2f0]
add rcx, rax
mov rax, rcx
lea r8, [rsp + 0x2d0]
mov rdx, rax
lea rcx, [0x1402389a8]
call fcn.140027290
nop
movzx eax, byte [rsp + 0x2d0]
test eax, eax
je 0x140041715
mov byte [0x1402387db], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x30], eax
movzx eax, byte [0x14016e404]
test eax, eax
jne 0x140041786
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140041786
mov eax, dword [0x1402387d4]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
cmp eax, 0x1f4
jb 0x140041786
movzx eax, byte [0x1402387db]
test eax, eax
jne 0x140041769
mov dword [rsp + 0x34], 1
jmp 0x140041771
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [0x1402387db], al
mov eax, dword [rsp + 0x30]
mov dword [0x1402387d4], eax
movzx eax, byte [0x1402387db]
test eax, eax
je 0x1400417c5
mov dword [rsp + 0x2d4], 0x2d
mov eax, dword [0x1401c3fb8]
mov rcx, qword [rsp + 0x340]
add rax, qword [rcx]
lea r8, [rsp + 0x2d4]
mov rdx, rax
lea rcx, [0x1402389a8]
call fcn.14003f2f0
nop
lea rcx, [rsp + 0x2d8]
call fcn.140024890
lea rcx, [rsp + 0x2f8]
call fcn.1400073c0
nop
mov rcx, qword [rsp + 0x318]
xor rcx, rsp
call fcn.140141a60
add rsp, 0x328
pop rdi
pop rsi
ret