Function at 0x140042020
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 0x140042050
jmp 0x14004258a
movzx eax, byte [0x1402387b2]
test eax, eax
jne 0x140042060
jmp 0x14004258a
mov rax, qword [rsp + 0x340]
add rax, 0xa0
mov rdx, rax
lea rcx, [rsp + 0x2f8]
call fcn.140024fc0
lea rdx, [rsp + 0x2f8]
lea rcx, [0x140237e48]
call fcn.140046360
movzx eax, al
test eax, eax
je 0x1400420b4
mov byte [0x1402387c4], 0
lea rdx, [rsp + 0x2f8]
lea rcx, [0x140237e48]
call fcn.140024dc0
mov edx, 0x18
lea rcx, [rsp + 0x2d8]
call fcn.140006720
lea rcx, [rsp + 0x21]
call fcn.140006f70
mov qword [rsp + 0x50], rax
movzx r8d, byte [rsp + 0x22]
lea rdx, str.smokegrenade
lea rcx, [rsp + 0x120]
call fcn.1400463a0
mov rcx, rax
call fcn.1400201b0
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.140024f60
movzx r8d, byte [rsp + 0x23]
lea rdx, str.flashbang
lea rcx, [rsp + 0xf0]
call fcn.140046590
mov rcx, rax
call fcn.140020730
mov rdx, rax
lea rcx, [rsp + 0x160]
call fcn.140024f60
movzx r8d, byte [rsp + 0x24]
lea rdx, str.hegrenade
lea rcx, [rsp + 0x100]
call fcn.140046710
mov rcx, rax
call fcn.140020730
mov rdx, rax
lea rcx, [rsp + 0x180]
call fcn.140024f60
movzx r8d, byte [rsp + 0x20]
lea rdx, str.molotov
lea rcx, [rsp + 0xe0]
call fcn.140046890
mov rcx, rax
call fcn.140020100
mov rdx, rax
lea rcx, [rsp + 0x1a0]
call fcn.140024f60
movzx r8d, byte [rsp + 0x26]
lea rdx, str.decoy
lea rcx, [rsp + 0x78]
call fcn.1400469d0
mov rcx, rax
call fcn.140018790
mov rdx, rax
lea rcx, [rsp + 0x1c0]
call fcn.140024f60
movzx r8d, byte [rsp + 0x27]
lea rdx, str.incgrenade
lea rcx, [rsp + 0x110]
call fcn.140046ac0
mov rcx, rax
call fcn.140020680
mov rdx, rax
lea rcx, [rsp + 0x1e0]
call fcn.140024f60
movzx r8d, byte [rsp + 0x28]
lea rdx, [0x140150f14]
lea rcx, [rsp + 0x68]
call fcn.140046c70
mov rcx, rax
call fcn.140040970
mov rdx, rax
lea rcx, [rsp + 0x200]
call fcn.140024f60
movzx r8d, byte [rsp + 0x29]
lea rdx, str.ssg08
lea rcx, [rsp + 0x80]
call fcn.140046d20
mov rcx, rax
call fcn.140018790
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.140024f60
movzx r8d, byte [rsp + 0x25]
lea rdx, [0x14015103c]
lea rcx, [rsp + 0x70]
call fcn.140046e10
mov rcx, rax
call fcn.140040970
mov rdx, rax
lea rcx, [rsp + 0x240]
call fcn.140024f60
movzx r8d, byte [rsp + 0x2a]
lea rdx, str.sg556
lea rcx, [rsp + 0x88]
call fcn.140046ec0
mov rcx, rax
call fcn.140018790
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.140024f60
movzx r8d, byte [rsp + 0x2b]
lea rdx, str.knife
lea rcx, [rsp + 0x90]
call fcn.140046fb0
mov rcx, rax
call fcn.140018790
mov rdx, rax
lea rcx, [rsp + 0x280]
call fcn.140024f60
movzx r8d, byte [rsp + 0x2c]
lea rdx, [0x1401510e0]
lea rcx, [rsp + 0x48]
call fcn.1400470a0
mov rcx, rax
call fcn.140020cb0
mov rdx, rax
lea rcx, [rsp + 0x2a0]
call fcn.140024f60
lea rax, [rsp + 0x2c0]
mov r8, rax
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x130]
call fcn.140006e90
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.1400244d0
lea r9, [fcn.140007270]
mov r8d, 0xc
mov edx, 0x20
lea rcx, [rsp + 0x140]
call fcn.140141c3c
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x2d8]
call fcn.140024800
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x2d8]
call fcn.140024860
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.140047130
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x2d8]
call fcn.140024800
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.140023580
movzx eax, al
test eax, eax
je 0x140042459
lea rcx, [rsp + 0x2d8]
call fcn.1400244b0
lea rcx, [rsp + 0x2f8]
call fcn.140007270
jmp 0x14004258a
mov eax, dword [0x1401c3f64]
mov rcx, qword [rsp + 0x340]
add rax, qword [rcx + 0x48]
lea r8, [rsp + 0x2f0]
mov rdx, rax
lea rcx, [0x1402389a0]
call fcn.140007e30
mov eax, dword [0x1401c3ff8]
mov rcx, qword [rsp + 0x2f0]
add rcx, rax
mov rax, rcx
lea r8, [rsp + 0x2d0]
mov rdx, rax
lea rcx, [0x1402389a0]
call fcn.140026d30
movzx eax, byte [rsp + 0x2d0]
test eax, eax
je 0x1400424c0
mov byte [0x1402387c4], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x30], eax
movzx eax, byte [0x14016e404]
test eax, eax
jne 0x140042531
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140042531
mov eax, dword [0x1402387c8]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
cmp eax, 0x1f4
jb 0x140042531
movzx eax, byte [0x1402387c4]
test eax, eax
jne 0x140042514
mov dword [rsp + 0x34], 1
jmp 0x14004251c
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [0x1402387c4], al
mov eax, dword [rsp + 0x30]
mov dword [0x1402387c8], eax
movzx eax, byte [0x1402387c4]
test eax, eax
je 0x14004256f
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, [0x1402389a0]
call fcn.1400400d0
lea rcx, [rsp + 0x2d8]
call fcn.1400244b0
lea rcx, [rsp + 0x2f8]
call fcn.140007270
nop
mov rcx, qword [rsp + 0x318]
xor rcx, rsp
call fcn.140141ac0
add rsp, 0x328
pop rdi
pop rsi
ret