Function at 0x140042820
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x328
mov rax, qword [0x140170340]
xor rax, rsp
mov qword [rsp + 0x318], rax
movzx eax, byte [0x1401703f8]
test eax, eax
je 0x140042850
jmp 0x140042d90
movzx eax, byte [0x14023a7a2]
test eax, eax
jne 0x140042860
jmp 0x140042d90
mov rax, qword [rsp + 0x340]
add rax, 0xa0
mov rdx, rax
lea rcx, [rsp + 0x2f8]
call fcn.1400252d0
nop
lea rdx, [rsp + 0x2f8]
lea rcx, [0x140239e38]
call fcn.140047050
movzx eax, al
test eax, eax
je 0x1400428b6
mov byte [0x14023a7b7], 0
lea rdx, [rsp + 0x2f8]
lea rcx, [0x140239e38]
call fcn.1400250d0
nop
mov edx, 0x18
lea rcx, [rsp + 0x2d8]
call fcn.140006710
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.140047090
mov rcx, rax
call fcn.140020410
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.140025270
movzx r8d, byte [rsp + 0x23]
lea rdx, str.flashbang
lea rcx, [rsp + 0xf0]
call fcn.140047280
mov rcx, rax
call fcn.140020990
mov rdx, rax
lea rcx, [rsp + 0x160]
call fcn.140025270
movzx r8d, byte [rsp + 0x24]
lea rdx, str.hegrenade
lea rcx, [rsp + 0x100]
call fcn.140047400
mov rcx, rax
call fcn.140020990
mov rdx, rax
lea rcx, [rsp + 0x180]
call fcn.140025270
movzx r8d, byte [rsp + 0x20]
lea rdx, str.molotov
lea rcx, [rsp + 0xe0]
call fcn.140047580
mov rcx, rax
call fcn.140020360
mov rdx, rax
lea rcx, [rsp + 0x1a0]
call fcn.140025270
movzx r8d, byte [rsp + 0x26]
lea rdx, str.decoy
lea rcx, [rsp + 0x78]
call fcn.1400476c0
mov rcx, rax
call fcn.140018920
mov rdx, rax
lea rcx, [rsp + 0x1c0]
call fcn.140025270
movzx r8d, byte [rsp + 0x27]
lea rdx, str.incgrenade
lea rcx, [rsp + 0x110]
call fcn.1400477b0
mov rcx, rax
call fcn.1400208e0
mov rdx, rax
lea rcx, [rsp + 0x1e0]
call fcn.140025270
movzx r8d, byte [rsp + 0x28]
lea rdx, [0x140152f4c]
lea rcx, [rsp + 0x68]
call fcn.140047960
mov rcx, rax
call fcn.140041150
mov rdx, rax
lea rcx, [rsp + 0x200]
call fcn.140025270
movzx r8d, byte [rsp + 0x29]
lea rdx, str.ssg08
lea rcx, [rsp + 0x80]
call fcn.140047a10
mov rcx, rax
call fcn.140018920
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.140025270
movzx r8d, byte [rsp + 0x25]
lea rdx, [0x140153074]
lea rcx, [rsp + 0x70]
call fcn.140047b00
mov rcx, rax
call fcn.140041150
mov rdx, rax
lea rcx, [rsp + 0x240]
call fcn.140025270
movzx r8d, byte [rsp + 0x2a]
lea rdx, str.sg556
lea rcx, [rsp + 0x88]
call fcn.140047bb0
mov rcx, rax
call fcn.140018920
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.140025270
movzx r8d, byte [rsp + 0x2b]
lea rdx, str.knife
lea rcx, [rsp + 0x90]
call fcn.140047ca0
mov rcx, rax
call fcn.140018920
mov rdx, rax
lea rcx, [rsp + 0x280]
call fcn.140025270
movzx r8d, byte [rsp + 0x2c]
lea rdx, [0x140153118]
lea rcx, [rsp + 0x48]
call fcn.140047d90
mov rcx, rax
call fcn.140020f10
mov rdx, rax
lea rcx, [rsp + 0x2a0]
call fcn.140025270
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.1400247a0
lea r9, [fcn.140007270]
mov r8d, 0xc
mov edx, 0x20
lea rcx, [rsp + 0x140]
call fcn.14014351c
nop
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x2d8]
call fcn.140024ad0
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x2d8]
call fcn.140024b30
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.140047e20
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x2d8]
call fcn.140024ad0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.140023850
movzx eax, al
test eax, eax
je 0x140042c5d
lea rcx, [rsp + 0x2d8]
call fcn.140024780
lea rcx, [rsp + 0x2f8]
call fcn.140007270
nop
jmp 0x140042d90
mov eax, dword [0x1401c5f64]
mov rcx, qword [rsp + 0x340]
add rax, qword [rcx + 0x48]
lea r8, [rsp + 0x2f0]
mov rdx, rax
lea rcx, [0x14023a990]
call fcn.140007e30
mov eax, dword [0x1401c5ff8]
mov rcx, qword [rsp + 0x2f0]
add rcx, rax
mov rax, rcx
lea r8, [rsp + 0x2d0]
mov rdx, rax
lea rcx, [0x14023a990]
call fcn.140027090
nop
movzx eax, byte [rsp + 0x2d0]
test eax, eax
je 0x140042cc5
mov byte [0x14023a7b7], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x30], eax
movzx eax, byte [0x140170404]
test eax, eax
jne 0x140042d36
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140042d36
mov eax, dword [0x14023a7b8]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
cmp eax, 0x1f4
jb 0x140042d36
movzx eax, byte [0x14023a7b7]
test eax, eax
jne 0x140042d19
mov dword [rsp + 0x34], 1
jmp 0x140042d21
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [0x14023a7b7], al
mov eax, dword [rsp + 0x30]
mov dword [0x14023a7b8], eax
movzx eax, byte [0x14023a7b7]
test eax, eax
je 0x140042d75
mov dword [rsp + 0x2d4], 0x2d
mov eax, dword [0x1401c5fb8]
mov rcx, qword [rsp + 0x340]
add rax, qword [rcx]
lea r8, [rsp + 0x2d4]
mov rdx, rax
lea rcx, [0x14023a990]
call fcn.1400408a0
nop
lea rcx, [rsp + 0x2d8]
call fcn.140024780
lea rcx, [rsp + 0x2f8]
call fcn.140007270
nop
mov rcx, qword [rsp + 0x318]
xor rcx, rsp
call fcn.1401433a0
add rsp, 0x328
pop rdi
pop rsi
ret