Function at 0x14009218a
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
sub rsp, 0x238
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x1d0], ecx
mov qword [rbp + 0x1d8], rdx
call fcn.1400c0b80
mov qword [0x1401f4d40], 0
mov qword [0x1401f4d48], 0
mov dword [0x1401f4d50], 0xffffffff
mov dword [0x1401f4d54], 0xffffffff
mov dword [0x1401f4d58], 0
mov dword [0x1401f4d5c], 0xffffffff
mov dword [0x1401f4d60], 0xffffffff
mov dword [0x1401f4d64], 0xffffffff
mov dword [0x140766c04], 0
jmp 0x14009230f
mov eax, dword [0x140766c04]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, [0x1401f4ca0]
mov dword [rdx + rax], 1
mov eax, dword [0x140766c04]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, [0x1401f4ca8]
mov qword [rdx + rax], 0
mov eax, dword [0x140766c04]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, [0x1401f4cb0]
mov qword [rdx + rax], 0
mov eax, dword [0x140766c04]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, [0x1401f4cb8]
mov dword [rdx + rax], 0
mov eax, dword [0x140766c04]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, [0x1401f4cbc]
mov dword [rdx + rax], 0
mov eax, dword [0x140766c04]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
lea rax, [0x1401f4cc0]
mov dword [rdx + rax], 0
mov eax, dword [0x140766c04]
add eax, 1
mov dword [0x140766c04], eax
mov eax, dword [0x140766c04]
cmp eax, 2
jle 0x14009220e
call fcn.14009957c
mov eax, dword [0x1401f4c94]
test eax, eax
je 0x140092337
mov dword [0x140174094], 0
mov eax, dword [0x1401f4c90]
test eax, eax
je 0x14009234d
mov eax, dword [0x1401f4c90]
mov dword [0x1401f4c68], eax
mov ecx, 0x20
call fcn.140034845
mov qword [0x14020f4f8], rax
mov ecx, 0x10
call fcn.140034845
mov qword [0x1401f4d28], rax
mov ecx, 0x28
call fcn.140034845
mov qword [0x1401f4d30], rax
mov ecx, 0x28
call fcn.140034845
mov qword [0x14073a960], rax
mov ecx, 0x50
call fcn.1400348f0
mov qword [0x1401f4d70], rax
mov ecx, 0x70
call fcn.140034845
mov qword [0x1401f4d88], rax
mov rax, qword [0x14020f4f8]
mov rcx, rax
call fcn.140034936
mov dword [0x14020f500], eax
mov eax, dword [0x14020f500]
mov dword [0x14020f504], eax
mov eax, dword [0x14020f504]
cdqe
mov rcx, qword [0x14020f4f8]
mov rdx, rax
call fcn.140034f7c
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1a8]
mov dword [rax + 8], 0xffff
mov rax, qword [rbp + 0x1a8]
mov eax, dword [rax + 8]
add eax, 1
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
mov rdx, rax
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rdx, rax
mov rax, qword [rbp + 0x1a8]
mov qword [rax], rdx
call fcn.1400ab030
mov rax, qword [0x1401c1bb0]
mov eax, dword [rax]
test eax, eax
je 0x140092453
mov dword [0x1401f4e0c], 1
mov rax, qword [0x1401c1820]
mov eax, dword [rax]
test eax, eax
je 0x14009249d
mov ecx, 0x3e8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x1a0], rax
mov rax, qword [rbp + 0x1a0]
mov edx, 0x100
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
call rax
cmp eax, 1
sete al
test al, al
je 0x14009249d
mov dword [0x1401f4e08], 1
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x28
mov dword [rax + 0x14], 0x3b00
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x50
mov dword [rax + 0x14], 0x3c00
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x78
mov dword [rax + 0x14], 0x3d00
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0xa0
mov dword [rax + 0x14], 0x3e00
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0xc8
mov dword [rax + 0x14], 0x3f00
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0xf0
mov dword [rax + 0x14], 0x4000
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x118
mov dword [rax + 0x14], 0x4100
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x140
mov dword [rax + 0x14], 0x4200
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x168
mov dword [rax + 0x14], 0x4300
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x190
mov dword [rax + 0x14], 0x4400
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x1b8
mov dword [rax + 0x14], 0x4800
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x1b8
mov dword [rax + 0x18], 0x187a8
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x1e0
mov dword [rax + 0x14], 0x4b00
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x1e0
mov dword [rax + 0x18], 0x187a4
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x208
mov dword [rax + 0x14], 0x4d00
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x208
mov dword [rax + 0x18], 0x187a6
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x230
mov dword [rax + 0x14], 0x5000
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x230
mov dword [rax + 0x18], 0x187a2
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x4b0
mov dword [rax + 0x14], 0x8500
mov rax, qword [0x1401c1ae0]
mov rax, qword [rax]
add rax, 0x4d8
mov dword [rax + 0x14], 0x8600
mov rax, qword [0x1401c1b00]
mov rax, qword [rax]
mov byte [rax], 1
mov rax, qword [0x1401c1b00]
mov rax, qword [rax]
mov dword [rax + 4], 0
mov rax, qword [0x1401c1b00]
mov rax, qword [rax]
mov byte [rax + 0x11], 0
mov rax, qword [0x1401c1b00]
mov rax, qword [rax]
mov byte [rax + 0x10], 0
mov rax, qword [0x1401f4e28]
add rax, 0x20
mov dword [rax], 8
mov rax, qword [0x1401f4e28]
add rax, 0x38
mov dword [rax], 8
mov rax, qword [0x1401f4e28]
add rax, 0x40
mov dword [rax], 8
mov rax, qword [0x1401f4e20]
add rax, 0x20
mov dword [rax], 8
mov rax, qword [0x1401f4e20]
add rax, 0x38
mov dword [rax], 0xe
mov rax, qword [0x1401f4e20]
add rax, 0x40
mov dword [rax], 0x10
mov rax, qword [0x1401f4e30]
add rax, 0x20
mov dword [rax], 0x10
mov rax, qword [0x1401f4e30]
add rax, 0x38
mov dword [rax], 0x10
mov rax, qword [0x1401f4e30]
add rax, 0x40
mov dword [rax], 0x10
mov rax, qword [0x1401f4e28]
add rax, 0x24
mov dword [rax], 0x10
mov rax, qword [0x1401f4e28]
add rax, 0x3c
mov dword [rax], 0x10
mov rax, qword [0x1401f4e28]
add rax, 0x44
mov dword [rax], 0x10
mov rax, qword [0x1401f4e20]
add rax, 0x24
mov dword [rax], 8
mov rax, qword [0x1401f4e20]
add rax, 0x3c
mov dword [rax], 0xe
mov rax, qword [0x1401f4e20]
add rax, 0x44
mov dword [rax], 0x10
mov rax, qword [0x1401f4e30]
add rax, 0x24
mov dword [rax], 0x10
mov rax, qword [0x1401f4e30]
add rax, 0x3c
mov dword [rax], 0x10
mov rax, qword [0x1401f4e30]
add rax, 0x44
mov dword [rax], 0x10
mov rax, qword [0x140205808]
mov r8d, 0xc0000
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
call fcn.140036e4d
mov dword [0x140766c18], eax
mov rcx, qword [0x140205808]
mov eax, dword [0x140766c18]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 6
add rax, rcx
mov byte [rax + 0x10], 0
call fcn.140036e4d
mov dword [0x140766c18], eax
mov rcx, qword [0x140205808]
mov eax, dword [0x140766c18]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 6
add rax, rcx
mov byte [rax + 0x10], 0
mov r8d, 0x3c
mov edx, 0
lea rax, [0x14020f520]
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [0x14020f520]
mov qword [0x14020f580], rax
lea rax, [0x14020f528]
mov qword [0x14020f588], rax
lea rax, [0x14020f52c]
mov qword [0x14020f590], rax
lea rax, [0x14020f524]
mov qword [0x14020f598], rax
lea rax, [0x14020f521]
mov qword [0x14020f5a0], rax
lea rax, [0x14020f529]
mov qword [0x14020f5a8], rax
lea rax, [0x14020f52d]
mov qword [0x14020f5b0], rax
lea rax, [0x14020f525]
mov qword [0x14020f5b8], rax
lea rax, [0x14020f520]
mov qword [0x14020f5c0], rax
lea rax, [0x14020f528]
mov qword [0x14020f5c8], rax
lea rax, [0x14020f52c]
mov qword [0x14020f5d0], rax
lea rax, [0x14020f524]
mov qword [0x14020f5d8], rax
lea rax, [0x14020f53c]
mov qword [0x14020f5e0], rax
lea rax, [0x14020f538]
mov qword [0x14020f5e8], rax
lea rax, [0x14020f530]
mov qword [0x14020f5f0], rax
lea rax, [0x14020f534]
mov qword [0x14020f5f8], rax
lea rax, [0x14020f520]
mov qword [0x14020f600], rax
lea rax, [0x14020f528]
mov qword [0x14020f608], rax
lea rax, [0x14020f52c]
mov qword [0x14020f610], rax
lea rax, [0x14020f524]
mov qword [0x14020f618], rax
lea rax, [0x14020f53c]
mov qword [0x14020f620], rax
lea rax, [0x14020f538]
mov qword [0x14020f628], rax
lea rax, [0x14020f530]
mov qword [0x14020f630], rax
lea rax, [0x14020f534]
mov qword [0x14020f638], rax
lea rax, [0x14020f546]
mov qword [0x14020f640], rax
lea rax, [0x14020f540]
mov qword [0x14020f648], rax
lea rax, [0x14020f542]
mov qword [0x14020f650], rax
lea rax, [0x14020f544]
mov qword [0x14020f658], rax
lea rax, [0x14020f548]
mov qword [0x14020f660], rax
lea rax, [0x14020f54a]
mov qword [0x14020f668], rax
mov dword [0x140766c04], 0
jmp 0x140092a33
mov eax, dword [0x140766c04]
cdqe
lea rdx, [0x140739ce0]
mov byte [rax + rdx], 0x20
mov eax, dword [0x140766c04]
add eax, 1
mov dword [0x140766c04], eax
mov eax, dword [0x140766c04]
cmp eax, 0x1f
jle 0x140092a11
mov byte [0x140739e60], 0x81
mov dword [0x14020f6f4], 0x100000
mov eax, dword [0x14020f6f4]
mov eax, eax
mov rcx, rax
call sub.msvcrt.dll_malloc
mov rdx, rax
mov rax, qword [0x1401c1a80]
mov qword [rax], rdx
mov rax, qword [0x1401c1a80]
mov rdx, qword [rax]
mov rax, qword [0x1401c1aa0]
mov qword [rax], rdx
mov rax, qword [0x1401c1a80]
mov rax, qword [rax]
mov edx, dword [0x14020f6f4]
mov edx, edx
add rdx, rax
mov rax, qword [0x1401c1a90]
mov qword [rax], rdx
mov r8d, 0x10fff3
mov edx, 0
mov rax, qword [0x1401c17e0]
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8d, 0x10000
mov edx, 0
lea rax, [0x14071ca40]
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [0x1401c17e0]
lea rdx, [rax + 0x500]
mov rax, qword [str.hqv_]
mov qword [rax], rdx
mov rax, qword [0x1401c1800]
mov eax, dword [rax]
lea edx, [rax - 8]
mov rax, qword [0x1401c1800]
mov dword [rax], edx
mov rax, qword [0x1401c1800]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [str.hqv_]
mov rax, qword [rax]
add rax, rdx
mov rdx, rax
mov rax, qword [0x1401c1ad0]
mov qword [rax], rdx
mov rax, qword [0x1401c1ad0]
mov rax, qword [rax]
mov qword [rax], 0
mov edx, 0
mov ecx, 0
call fcn.1400432bc
mov rdx, qword [0x1401c1ac0]
mov qword [rdx], rax
mov edx, 0
mov ecx, 1
call fcn.1400432bc
mov qword [0x14072ca40], rax
mov rax, qword [0x14072ca40]
mov rax, qword [rax]
mov byte [rax], 0x20
mov edx, 0
mov ecx, 0
call fcn.1400437be
mov rdx, qword [0x1401c1a30]
mov qword [rdx], rax
call fcn.14009f3e0
mov rdx, rax
mov rax, qword [0x1401c1a30]
mov rax, qword [rax]
mov rcx, rax
call fcn.14004398c
movzx eax, byte [0x140766c80]
test al, al
sete al
test al, al
je 0x140092bed
lea rax, [0x140766c80]
mov rcx, rax
call fcn.1401723c0
test eax, eax
setne al
test al, al
je 0x140092bed
mov ecx, 0x10000
call sub.msvcrt.dll_malloc
mov qword [0x140766c78], rax
lea rax, [0x140766c80]
mov rcx, rax
call fcn.140172600
mov rax, qword [0x140766c78]
mov r8d, 0x10000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
mov rax, qword [0x140766c78]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov dword [0x140766c04], eax
mov eax, dword [0x140766c04]
sub eax, 1
mov dword [0x140766c08], eax
jmp 0x140092cbf
mov rdx, qword [0x140766c78]
mov eax, dword [0x140766c08]
cdqe
add rax, rdx
movzx eax, byte [rax]
movsx eax, al
mov dword [0x140766c18], eax
mov eax, dword [0x140766c18]
cmp eax, 0x5c
je 0x140092c73
mov eax, dword [0x140766c18]
cmp eax, 0x2f
je 0x140092c73
mov eax, dword [0x140766c18]
cmp eax, 0x3a
jne 0x140092cb0
mov eax, dword [0x140766c18]
cmp eax, 0x3a
jne 0x140092c99
mov rdx, qword [0x140766c78]
mov eax, dword [0x140766c08]
cdqe
add rax, 1
add rax, rdx
mov byte [rax], 0
jmp 0x140092ccd
mov rdx, qword [0x140766c78]
mov eax, dword [0x140766c08]
cdqe
add rax, rdx
mov byte [rax], 0
jmp 0x140092ccd
mov eax, dword [0x140766c08]
sub eax, 1
mov dword [0x140766c08], eax
mov eax, dword [0x140766c08]
test eax, eax
jns 0x140092c34
mov rax, qword [0x140766c78]
mov rcx, rax
call sub.msvcrt.dll__chdir
mov edx, 0
mov ecx, 0
call fcn.1400437be
mov qword [0x140204ec8], rax
mov edx, 0x14
lea rax, str.Unknown_Opcode_____
mov rcx, rax
call fcn.140043595
mov rdx, rax
mov rax, qword [0x140204ec8]
mov rcx, rax
call fcn.14004398c
mov eax, dword [rbp + 0x1d0]
mov dword [0x140766c04], eax
mov eax, dword [0x140766c04]
cmp eax, 1
jle 0x140092ed6
mov dword [0x140766c08], 0
mov dword [0x140766c04], 1
jmp 0x140092da7
mov eax, dword [0x140766c04]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x1d8]
add rax, rdx
mov rax, qword [rax]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov edx, eax
mov eax, dword [0x140766c08]
add eax, edx
mov dword [0x140766c08], eax
mov eax, dword [0x140766c04]
cmp eax, 1
je 0x140092d98
mov eax, dword [0x140766c08]
add eax, 1
mov dword [0x140766c08], eax
mov eax, dword [0x140766c04]
add eax, 1
mov dword [0x140766c04], eax
mov eax, dword [0x140766c04]
cmp dword [rbp + 0x1d0], eax
jg 0x140092d49
mov eax, dword [0x140766c08]
mov edx, 0
mov ecx, eax
call fcn.1400437be
mov qword [0x140739f68], rax
mov dword [0x140766c0c], 0
mov dword [0x140766c04], 1
jmp 0x140092ec2
mov eax, dword [0x140766c04]
cmp eax, 1
je 0x140092e19
mov rax, qword [0x140739f68]
mov rdx, qword [rax]
mov eax, dword [0x140766c0c]
cdqe
add rax, rdx
mov byte [rax], 0x20
mov eax, dword [0x140766c0c]
add eax, 1
mov dword [0x140766c0c], eax
mov eax, dword [0x140766c04]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x1d8]
add rax, rdx
mov rax, qword [rax]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov rcx, rax
mov eax, dword [0x140766c04]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x1d8]
add rax, rdx
mov rdx, qword [rax]
mov rax, qword [0x140739f68]
mov r8, qword [rax]
mov eax, dword [0x140766c0c]
cdqe
add rax, r8
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [0x140766c04]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x1d8]
add rax, rdx
mov rax, qword [rax]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov edx, eax
mov eax, dword [0x140766c0c]
add eax, edx
mov dword [0x140766c0c], eax
mov eax, dword [0x140766c04]
add eax, 1
mov dword [0x140766c04], eax
mov eax, dword [0x140766c04]
cmp dword [rbp + 0x1d0], eax
jg 0x140092de7
jmp 0x140092eec
mov edx, 0
mov ecx, 0
call fcn.1400437be
mov qword [0x140739f68], rax
mov eax, dword [rbp + 0x1d0]
mov dword [0x140739f78], eax
mov rax, qword [rbp + 0x1d8]
mov qword [0x140739f70], rax
mov ecx, 0x91
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
and eax, 1
test eax, eax
setne al
test al, al
je 0x140092f2b
mov ecx, 0x30d4b
call fcn.14003606c
mov ecx, 0x91
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
shr ax, 0xf
test al, al
je 0x140092f55
mov dword [0x140204e48], 0x12e
mov ecx, 0x187ce
call fcn.1400363d3
mov ecx, 0xa0
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
shr ax, 0xf
test al, al
je 0x140092f7f
mov dword [0x140204e48], 0x130
mov ecx, 0x187d0
call fcn.1400363d3
mov ecx, 0xa1
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
shr ax, 0xf
test al, al
je 0x140092fa9
mov dword [0x140204e48], 0x12f
mov ecx, 0x187cf
call fcn.1400363d3
mov ecx, 0xa2
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
shr ax, 0xf
test al, al
je 0x140092fd3
mov dword [0x140204e48], 0x132
mov ecx, 0x187d2
call fcn.1400363d3
mov ecx, 0xa3
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
shr ax, 0xf
test al, al
je 0x140092ffd
mov dword [0x140204e48], 0x131
mov ecx, 0x187d1
call fcn.1400363d3
mov ecx, 0xa4
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
shr ax, 0xf
test al, al
je 0x140093027
mov dword [0x140204e48], 0x134
mov ecx, 0x187d4
call fcn.1400363d3
mov ecx, 0xa5
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
shr ax, 0xf
test al, al
je 0x140093051
mov dword [0x140204e48], 0x133
mov ecx, 0x187d3
call fcn.1400363d3
mov ecx, 0x14
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
and eax, 1
test eax, eax
setne al
test al, al
je 0x140093080
mov dword [0x140204e48], 0x12d
mov ecx, 0x187cd
call fcn.1400363d3
mov ecx, 0x90
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
and eax, 1
test eax, eax
setne al
test al, al
je 0x1400930af
mov dword [0x140204e48], 0x12c
mov ecx, 0x187cc
call fcn.1400363d3
call fcn.140095f6e
mov eax, dword [0x140204e40]
mov dword [0x140204e44], eax
mov rax, qword [0x1401c17e0]
mov byte [rax + 0x41a], 0x1e
mov rax, qword [0x1401c17e0]
mov byte [rax + 0x41b], 0
mov rax, qword [0x1401c17e0]
mov byte [rax + 0x41c], 0x1e
mov rax, qword [0x1401c17e0]
mov byte [rax + 0x41d], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.14014bc40
mov eax, dword [0x140174560]
cdqe
mov r8, rax
lea rax, [0x1401a0540]
mov rdx, rax
lea rax, [0x140205300]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov dword [0x140766c04], 0
jmp 0x14009317f
mov eax, dword [0x140766c04]
cdqe
lea rdx, [rax*4]
lea rax, [0x140205300]
mov edx, dword [rdx + rax]
mov eax, dword [0x140766c04]
mov ecx, edx
or ecx, 0xff000000
cdqe
lea rdx, [rax*4]
lea rax, [0x140205300]
mov dword [rdx + rax], ecx
mov eax, dword [0x140766c04]
add eax, 1
mov dword [0x140766c04], eax
mov eax, dword [0x140766c04]
cmp eax, 0xff
jle 0x140093134
mov eax, dword [0x140174564]
cdqe
mov r8, rax
lea rax, [0x1401a0940]
mov rdx, rax
lea rax, [0x140205700]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov dword [0x140766c04], 0
jmp 0x140093207
mov eax, dword [0x140766c04]
cdqe
lea rdx, [rax*4]
lea rax, [0x140205700]
mov edx, dword [rdx + rax]
mov eax, dword [0x140766c04]
mov ecx, edx
or ecx, 0xff000000
cdqe
lea rdx, [rax*4]
lea rax, [0x140205700]
mov dword [rdx + rax], ecx
mov eax, dword [0x140766c04]
add eax, 1
mov dword [0x140766c04], eax
mov eax, dword [0x140766c04]
cmp eax, 0x3f
jle 0x1400931bc
mov dword [0x14072cfe0], 0
mov dword [0x14072cfe4], 0
mov dword [0x14072cfe8], 0
mov dword [0x14072cfec], 0x808080
mov dword [0x14072cff0], 0x808080
mov dword [0x14072cff4], 0x808080
mov dword [0x14072cff8], 0xffffff
mov dword [0x14072cffc], 0xffffff
mov dword [0x14072d000], 0xffffff
mov dword [0x14072d004], 0
mov dword [0x14072d008], 0x808080
mov dword [0x14072d00c], 0xffffff
mov dword [0x14072d010], 0
mov dword [0x14072d014], 0x808080
mov dword [0x14072d018], 0xffffff
mov dword [0x14072d01c], 0
mov dword [0x14072d020], 0x808080
mov dword [0x14072d024], 0xffffff
mov eax, dword [0x140174558]
cdqe
mov r8, rax
lea rax, [0x140194540]
mov rdx, rax
lea rax, [0x14072d040]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [0x14017455c]
cdqe
mov r8, rax
lea rax, [0x140198540]
mov rdx, rax
lea rax, [0x140731040]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 0
call fcn.140048fa9
mov dword [0x14017456c], 1
mov rax, qword [0x1401c1820]
mov eax, dword [rax]
test eax, eax
je 0x1400933a3
mov r9d, 0
mov r8d, 0
mov edx, 0x19
mov ecx, 0x50
call fcn.14006e30d
mov dword [0x140174320], eax
mov eax, dword [0x140174320]
neg eax
mov dword [0x140766c04], eax
mov rcx, qword [0x140205808]
mov eax, dword [0x140766c04]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 6
add rax, rcx
mov byte [rax + 0x12], 1
mov dword [0x140766c04], 0
mov eax, dword [0x140766c04]
add eax, 1
mov dword [0x140766c04], eax
mov rax, qword [0x1401c1860]
mov rdx, qword [rax]
mov eax, dword [0x140766c04]
cdqe
imul rax, rax, 0x170
add rax, rdx
mov dword [rax + 4], 2
mov rax, qword [0x1401c1860]
mov rdx, qword [rax]
mov eax, dword [0x140766c04]
cdqe
imul rax, rax, 0x170
add rax, rdx
lea rdx, str._KEYBOARD__BUTTON_
mov qword [rax + 8], rdx
mov rax, qword [0x1401c1860]
mov rdx, qword [rax]
mov eax, dword [0x140766c04]
cdqe
imul rax, rax, 0x170
add rax, rdx
mov dword [rax + 0x14], 0x200
mov rax, qword [0x1401c1860]
mov rdx, qword [rax]
mov eax, dword [0x140766c04]
cdqe
imul rax, rax, 0x170
add rax, rdx
lea rdx, str.Keyboard
mov qword [rax + 0x148], rdx
mov rax, qword [0x1401c1860]
mov rdx, qword [rax]
mov eax, dword [0x140766c04]
cdqe
imul rax, rax, 0x170
add rax, rdx
mov rcx, rax
call fcn.14009ae42
mov eax, dword [0x140766c04]
add eax, 1
mov dword [0x140766c04], eax
mov rax, qword [0x1401c1860]
mov rdx, qword [rax]
mov eax, dword [0x140766c04]
cdqe
imul rax, rax, 0x170
add rax, rdx
mov dword [rax + 4], 3
mov rax, qword [0x1401c1860]
mov rdx, qword [rax]
mov eax, dword [0x140766c04]
cdqe
imul rax, rax, 0x170
add rax, rdx
lea rdx, str._MOUSE__BUTTON__AXIS__WHEEL_
mov qword [rax + 8], rdx
mov rax, qword [0x1401c1860]
mov rdx, qword [rax]
mov eax, dword [0x140766c04]
cdqe
imul rax, rax, 0x170
add rax, rdx
mov dword [rax + 0x14], 3
mov rax, qword [0x1401c1860]
mov rdx, qword [rax]
mov eax, dword [0x140766c04]
cdqe
imul rax, rax, 0x170
add rax, rdx
mov dword [rax + 0x18], 2
mov rax, qword [0x1401c1860]
mov rdx, qword [rax]
mov eax, dword [0x140766c04]
cdqe
imul rax, rax, 0x170
add rax, rdx
mov dword [rax + 0x1c], 3
mov rax, qword [0x1401c1860]
mov rdx, qword [rax]
mov eax, dword [0x140766c04]
cdqe
imul rax, rax, 0x170
add rax, rdx
lea rdx, str.Mouse
mov qword [rax + 0x148], rdx
mov rax, qword [0x1401c1860]
mov rdx, qword [rax]
mov eax, dword [0x140766c04]
cdqe
imul rax, rax, 0x170
add rax, rdx
mov rcx, rax
call fcn.14009ae42
mov edx, dword [0x140766c04]
mov rax, qword [0x1401c1850]
mov dword [rax], edx
call fcn.1400a2b70
mov rdx, qword [rbp + 0x1d8]
mov eax, dword [rbp + 0x1d0]
mov ecx, eax
call fcn.1400a2fb0
call fcn.1400a2d20
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x198]
mov r8d, 0
mov rdx, qword [fcn.14009da02]
mov rcx, rax
call fcn.1400a2d50
call fcn.1400a2d20
mov qword [rbp + 0x190], rax
mov rax, qword [rbp + 0x190]
mov r8d, 0
mov rdx, qword [0x1401c08b0]
mov rcx, rax
call fcn.1400a2d50
mov dword [0x14020f6d8], 1
mov rdx, qword [rbp + 0x1d8]
mov eax, dword [rbp + 0x1d0]
mov ecx, eax
call fcn.1400a2ff0
mov ebx, 0
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.14014c230
mov eax, ebx
jmp 0x14009364c
add rsp, 0x238
pop rbx
pop rbp
ret