Function at 0x18003d430
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180055da8]
mov rdx, qword [0x180058570]
mov rax, qword [rax + 8]
cmp byte [rax + 0xc], 0
je 0x18003cd15
test rdx, rdx
je 0x18003cd15
cmp byte [rdx + 0x768], 0
je 0x18003cd15
mov eax, dword [rax + 0x10]
mov rcx, qword [rdx + 0x288]
mov dword [rcx + 0x18c], eax
mov rax, qword [0x180055da8]
mov rcx, qword [rdx + 0x288]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x10]
mov dword [rcx + 0x1a0], eax
mov rax, qword [0x180055da8]
mov rax, qword [rax + 8]
cmp byte [rax + 0x14], 0
je 0x18003cd74
test rdx, rdx
je 0x18003cd74
cmp byte [rdx + 0x768], 0
je 0x18003cd74
mov rcx, qword [rdx + 0x730]
test rcx, rcx
je 0x18003cd74
cmp dword [rcx + 0x5b8], 0
je 0x18003cd74
mov eax, dword [rax + 0x18]
mov dword [rcx + 0x5b8], eax
mov rcx, qword [rdx + 0x730]
call fcn.180039eb0
mov rax, qword [0x180055da8]
mov rdx, qword [0x180058570]
mov rcx, qword [rax + 8]
mov byte [rcx + 0x14], 0
mov rax, qword [0x180055da8]
mov rax, qword [rax + 8]
cmp byte [rax + 0x44], 0
je 0x18003cdd3
test rdx, rdx
je 0x18003cdd3
cmp byte [rdx + 0x768], 0
je 0x18003cdd3
mov rcx, qword [rdx + 0x730]
test rcx, rcx
je 0x18003cdd3
cmp dword [rcx + 0x5c0], 0
je 0x18003cdd3
mov eax, dword [rax + 0x48]
mov dword [rcx + 0x5c0], eax
mov rcx, qword [rdx + 0x730]
call fcn.18003a190
mov rax, qword [0x180055da8]
mov rdx, qword [0x180058570]
mov rcx, qword [rax + 8]
mov byte [rcx + 0x44], 0
mov rax, qword [0x180055da8]
mov rax, qword [rax + 8]
cmp byte [rax + 0x1c], 0
je 0x18003ce83
test rdx, rdx
je 0x18003ce83
cmp byte [rdx + 0x768], 0
je 0x18003ce83
cmp byte [rax + 0x1d], 0
je 0x18003ce0d
mov eax, dword [rax + 0x20]
mov dword [rdx + 0x848], eax
mov rax, qword [0x180055da8]
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x24], 0
je 0x18003ce2e
movd xmm0, dword [rcx + 0x28]
cvtdq2ps xmm0, xmm0
movss dword [rdx + 0x818], xmm0
mov rax, qword [0x180055da8]
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x2c], 0
je 0x18003ce4f
movd xmm0, dword [rcx + 0x30]
cvtdq2ps xmm0, xmm0
movss dword [rdx + 0x844], xmm0
mov rax, qword [0x180055da8]
mov rax, qword [rax + 8]
cmp byte [rax + 0x34], 0
je 0x18003ce69
mov eax, dword [rax + 0x38]
mov dword [rdx + 0x820], eax
mov rax, qword [0x180055da8]
mov rax, qword [rax + 8]
cmp byte [rax + 0x3c], 0
je 0x18003ce83
mov eax, dword [rax + 0x40]
mov dword [rdx + 0x840], eax
mov rax, qword [0x180055da8]
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x4c], 0
je 0x18003cf50
test rdx, rdx
je 0x18003cf50
cmp byte [rdx + 0x768], 0
je 0x18003cf50
cmp byte [rcx + 0x4d], 0
je 0x18003ceb8
and byte [rdx + 0x5c], 0xf7
mov rax, qword [rdx + 0x288]
mov ecx, 0x20
mov dword [rax + 0x198], 0x453b8000
mov rax, qword [rdx + 0x288]
mov byte [rax + 0x168], 5
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18003cf10
mov rcx, qword [0x180058570]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x41200000
mov rcx, qword [rcx + 0x288]
call fcn.180038750
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18003cf49
mov rcx, qword [0x180058570]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0xc1200000
mov rcx, qword [rcx + 0x288]
call fcn.180038750
mov rdx, qword [0x180058570]
mov rax, qword [0x180055da8]
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x4e], 0
je 0x18003cfd0
test rdx, rdx
je 0x18003cfd0
cmp byte [rdx + 0x768], 0
je 0x18003cfd0
mov rax, qword [rdx + 0x5a0]
test rax, rax
je 0x18003cfd0
xor ecx, ecx
mov dword [rax + 0x2b0], ecx
mov rax, qword [rdx + 0x5a0]
mov dword [rax + 0x2f4], 0x42c60000
mov rax, qword [rdx + 0x5a0]
mov dword [rax + 0x308], ecx
mov rax, qword [rdx + 0x5a0]
mov dword [rax + 0x288], 0x3e7
mov rax, qword [rdx + 0x5a0]
mov dword [rax + 0x2bc], 0x539
mov rax, qword [rdx + 0x5a0]
mov dword [rax + 0x2b4], ecx
call fcn.18003cfe0
add rsp, 0x38
jmp 0x18003d430
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x180055040]
xor rax, rsp
mov qword [rbp - 1], rax
mov rax, qword [0x180055da8]
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x50], 0
je 0x18003d4ae
mov rax, qword [0x180058560]
test rax, rax
jne 0x18003d4ea
lea rdx, str.No_controller
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18003d990
lea rdx, [0x18003db70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.18003edb0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp qword [rax + 0x2b8], 0
jne 0x18003d4fd
lea rdx, str.No_camera_manager
jmp 0x18003d492
xor eax, eax
mov qword [rbp - 0x61], rax
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x38], ecx
movss xmm8, dword [0x18004cc64]
mov rax, qword [0x180058580]
mov rcx, qword [rax + 0x30]
movups xmm0, xmmword [rcx + 0x98]
movups xmmword [0x180058620], xmm0
lea rdx, str.Actors:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18003d990
mov edx, dword [0x180058628]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x18003db70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword [0x180058560]
lea rdx, [rbp - 0x41]
mov rcx, qword [rax + 0x2b8]
call fcn.180039890
mov rax, qword [0x180058560]
lea rdx, [rbp - 0x31]
mov rcx, qword [rax + 0x2b8]
call fcn.180039ba0
xor r8d, r8d
mov dword [rsp + 0x24], r8d
mov rax, qword [0x180058580]
cmp dword [rax + 0x140], r8d
jle 0x18003d4ae
xor edx, edx
mov qword [rbp - 0x69], rdx
movabs r9, 0xffffff0000000001
movabs r10, 0x20000000000
xorps xmm7, xmm7
nop dword [rax]
mov rcx, qword [rax + 0x138]
test rcx, rcx
je 0x18003d904
test rdx, rdx
js 0x18003d904
cmp r8d, dword [rax + 0x140]
jge 0x18003d904
mov r13, qword [rcx + rdx]
mov qword [rsp + 0x28], r13
test r13, r13
je 0x18003d898
xor r12d, r12d
mov dword [rsp + 0x20], r12d
cmp dword [r13 + 0xa0], r12d
jle 0x18003d898
xor r13d, r13d
mov rax, qword [rsp + 0x28]
nop word [rax + rax]
mov rax, qword [rax + 0x98]
test rax, rax
je 0x18003d8ea
test r13, r13
js 0x18003d8ea
mov rcx, qword [rsp + 0x28]
cmp r12d, dword [rcx + 0xa0]
jge 0x18003d8ea
mov r12, qword [rax + r13]
test r12, r12
je 0x18003d865
lea rax, [r12 + r9]
cmp rax, r10
ja 0x18003d865
lea rdx, [rbp - 0x21]
mov rcx, r12
call fcn.180037ac0
nop
lea rdi, [rbp - 0x21]
mov rbx, qword [rbp - 0x21]
mov r14, qword [rbp - 9]
cmp r14, 0xf
cmova rdi, rbx
mov r15, qword [rbp - 0x11]
cmp r15, 0xa
jb 0x18003d702
lea rsi, [r15 + rdi]
lea r8, [rsi - 9]
sub r8, rdi
mov edx, 0x4e
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x18003d702
nop dword [rax]
movabs rcx, 0x696c6f505f43504e
cmp qword [rax], rcx
jne 0x18003d6d7
cmp word [rax + 8], 0x6563
je 0x18003d6f5
inc rax
lea r8, [rsi - 9]
sub r8, rax
mov edx, 0x4e
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x18003d6c0
jmp 0x18003d702
sub rax, rdi
cmp rax, 0xffffffffffffffff
jne 0x18003d783
lea rdi, [rbp - 0x21]
cmp r14, 0xf
cmova rdi, rbx
cmp r15, 9
jb 0x18003d81a
lea rsi, [r15 + rdi]
lea r8, [rsi - 8]
sub r8, rdi
mov edx, 0x4e
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x18003d81a
nop dword [rax]
movabs rcx, 0x726175475f43504e
cmp qword [rax], rcx
jne 0x18003d755
cmp byte [rax + 8], 0x64
je 0x18003d776
inc rax
lea r8, [rsi - 8]
sub r8, rax
mov edx, 0x4e
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x18003d740
jmp 0x18003d81a
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x18003d81a
lea rdx, [rbp - 0x31]
mov rcx, r12
call fcn.180038440
movss xmm0, dword [rbp - 0x31]
ucomiss xmm0, xmm7
jp 0x18003d79b
je 0x18003d81a
movss xmm0, dword [rbp - 0x2d]
ucomiss xmm0, xmm7
jp 0x18003d7a7
je 0x18003d81a
movss xmm0, dword [rbp - 0x29]
ucomiss xmm0, xmm7
jp 0x18003d7b3
je 0x18003d81a
xor eax, eax
mov qword [rbp - 0x71], rax
lea r8, [rbp - 0x71]
lea rdx, [rbp - 0x31]
call fcn.180038d50
test al, al
je 0x18003d81a
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x59]
call fcn.180039550
movsd xmm6, qword [rax]
mov edi, dword [rax + 8]
mov dword [rbp - 0x79], 0x44700000
mov dword [rbp - 0x75], 0x44070000
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x71]
call fcn.180039220
comiss xmm0, xmm7
jbe 0x18003d81a
comiss xmm8, xmm0
jbe 0x18003d81a
movaps xmm8, xmm0
mov qword [rbp - 0x61], r12
movsd qword [rsp + 0x30], xmm6
mov dword [rsp + 0x38], edi
cmp r14, 0xf
jbe 0x18003d851
lea rdx, [r14 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18003d849
mov rbx, qword [rbx - 8]
sub rax, rbx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18003d8e3
mov rcx, rbx
call fcn.18003f2f4
movabs r10, 0x20000000000
movabs r9, 0xffffff0000000001
mov r12d, dword [rsp + 0x20]
inc r12d
mov dword [rsp + 0x20], r12d
add r13, 8
mov rax, qword [rsp + 0x28]
cmp r12d, dword [rax + 0xa0]
jl 0x18003d630
mov rax, qword [0x180058580]
mov rdx, qword [rbp - 0x69]
mov r8d, dword [rsp + 0x24]
inc r8d
mov dword [rsp + 0x24], r8d
add rdx, 8
mov qword [rbp - 0x69], rdx
cmp r8d, dword [rax + 0x140]
jl 0x18003d5d0
cmp qword [rbp - 0x61], 0
je 0x18003d4ae
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18003d4ae
lea rdx, [rsp + 0x30]
call fcn.180038a50
jmp 0x18003d4ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rbp - 0x59]
call fcn.18003cbd0
lea rdx, [0x180052f50]
lea rcx, [rbp - 0x59]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rbp - 0x59]
call fcn.18003cbd0
lea rdx, [0x180052f50]
lea rcx, [rbp - 0x59]
call sub.VCRUNTIME140.dll__CxxThrowException
int3