Function at 0x140018140
Capabilities:
Log keystrokes via polling
Set console window title

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x1f8]
sub rsp, 0x2f8
mov rax, qword [0x140103040]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov esi, r9d
mov rdi, rcx
call fcn.14000cfa0
xorps xmm0, xmm0
lea rdx, str.settings.json
xorps xmm1, xmm1
lea rcx, [rbp + 0x140]
mov r8d, 0xd
movups xmmword [rbp + 0x140], xmm0
movdqu xmmword [rbp + 0x150], xmm1
call fcn.140007260
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0x110
call sub.VCRUNTIME140.dll_memset
cmp qword [rbp + 0x158], 0xf
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x30]
cmova rdx, qword [rbp + 0x140]
call fcn.140019a70
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ebx, dword [rbp + rcx + 0x40]
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x40]
call fcn.140019a00
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdx, qword [rbp + 0x158]
cmp rdx, 0xf
jbe 0x14001825d
mov rcx, qword [rbp + 0x140]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018258
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018258
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008b044
test ebx, ebx
jne 0x1400182dd
xorps xmm0, xmm0
lea r8d, [rbx + 0xd]
xorps xmm1, xmm1
lea rdx, str.settings.json
lea rcx, [rbp + 0x140]
movups xmmword [rbp + 0x140], xmm0
movdqu xmmword [rbp + 0x150], xmm1
call fcn.140007260
lea rcx, [rbp + 0x140]
call fcn.140010a20
mov rdx, qword [rbp + 0x158]
cmp rdx, 0xf
jbe 0x1400182dd
mov rcx, qword [rbp + 0x140]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400182d8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400182d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008b044
cmp byte [0x14012c267], 0
mov qword [rsp + 0x2f0], r15
je 0x140018387
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x14008fd20]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x14008fd30]
lea rdx, str.CONIN_
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea rcx, str.Console
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x140018382
mov edx, 0x64
mov dword [rsp + 0x28], 1
mov r8d, edx
mov dword [rsp + 0x20], 0x258
mov r9d, 0x3e8
mov rcx, rax
call qword [sym.imp.USER32.dll_MoveWindow]
call fcn.140017ab0
xor r15d, r15d
cmp byte [0x14012c26b], r15b
je 0x1400184cc
xorps xmm0, xmm0
lea r8d, [r15 + 7]
xorps xmm1, xmm1
lea rdx, str.Warning
lea rcx, [rbp + 0x170]
movups xmmword [rbp + 0x170], xmm0
movdqu xmmword [rbp + 0x180], xmm1
call fcn.1400236c0
xorps xmm0, xmm0
lea r8d, [r15 + 0x57]
xorps xmm1, xmm1
lea rdx, str.We_dont_recommend_using_cheats._Use_at_your_own_risk._nUsing_cheats_can_get_you_banned.
lea rcx, [rbp + 0x140]
movups xmmword [rbp + 0x140], xmm0
movdqu xmmword [rbp + 0x150], xmm1
call fcn.1400236c0
cmp qword [rbp + 0x188], 7
lea r8, [rbp + 0x170]
lea rdx, [rbp + 0x140]
cmova r8, qword [rbp + 0x170]
lea r9d, [r15 + 0x30]
cmp qword [rbp + 0x158], 7
cmova rdx, qword [rbp + 0x140]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rbp + 0x158]
cmp rdx, 7
jbe 0x14001846b
mov rcx, qword [rbp + 0x140]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018466
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400184c0
call fcn.14008b044
mov rdx, qword [rbp + 0x188]
movdqa xmm0, xmmword [0x1400f36b0]
mov word [rbp + 0x140], r15w
movdqu xmmword [rbp + 0x150], xmm0
cmp rdx, 7
jbe 0x1400184cc
mov rcx, qword [rbp + 0x170]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400184c7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400184c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008b044
mov r8d, dword [0x1401303b0]
xor edx, edx
mov ecx, 0x1fffff
mov qword [rsp + 0x328], r14
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x14012d3d0], rax
test rax, rax
je 0x140018b00
lea rax, [0x140017730]
mov dword [rbp - 0x20], 0x50
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x20]
lea rax, str.External_Overlay_Class
mov dword [rbp - 0x1c], 3
xorps xmm0, xmm0
mov qword [rbp + 0x20], rax
xorps xmm1, xmm1
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], rdi
movdqa xmmword [rbp], xmm0
movdqa xmmword [rbp + 0x10], xmm1
mov qword [rbp + 0x28], r15
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov rdx, qword [rbp + 0x20]
lea r8, str.External_Overlay
mov qword [rsp + 0x58], r15
mov ecx, eax
mov rax, qword [rbp - 8]
mov r9d, 0x80000000
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ecx
mov ecx, 0x8000008
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r9d, 1
mov r8b, 0xff
mov rcx, rax
xor edx, edx
mov r14, rax
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
xorps xmm0, xmm0
lea rdx, [rbp + 0x170]
xorps xmm1, xmm1
mov rcx, r14
movups xmmword [rbp + 0x170], xmm0
movups xmmword [rbp + 0x140], xmm1
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rbp + 0x140]
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rbp + 0x168]
mov qword [rbp + 0x168], r15
mov rcx, r14
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rbp + 0x168]
lea rdx, [rbp + 0x190]
mov dword [rbp + 0x190], eax
mov rcx, r14
mov eax, dword [rbp + 0x16c]
mov dword [rbp + 0x194], eax
mov eax, dword [rbp + 0x178]
mov dword [rbp + 0x198], eax
mov eax, dword [rbp + 0x17c]
mov dword [rbp + 0x19c], eax
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov edx, esi
mov rcx, r14
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, r14
call qword [sym.imp.USER32.dll_UpdateWindow]
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x68], r15
mov qword [rbp - 0x80], r15
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x5c], r15
mov qword [rbp - 0x54], 1
mov qword [rbp - 0x48], 2
mov qword [rbp - 0x30], r15
mov dword [rbp - 0x68], 0x3c
lea rax, [rsp + 0x68]
mov dword [rbp - 0x64], 1
mov qword [rsp + 0x58], rax
xor r9d, r9d
lea rax, [rbp + 0x160]
mov dword [rbp - 0x60], 0x1c
mov qword [rsp + 0x50], rax
xor r8d, r8d
lea rax, [rsp + 0x78]
mov dword [rbp - 0x4c], 0x20
mov qword [rsp + 0x48], rax
lea edx, [r9 + 1]
lea rax, [rbp - 0x80]
mov qword [rbp - 0x40], r14
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp - 0x70]
mov qword [rbp - 0x38], 1
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 0xb000
mov dword [rsp + 0x64], 0xa000
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
js 0x140018b00
mov rcx, qword [rbp - 0x80]
lea r9, [rbp + 0x1d0]
mov qword [rbp + 0x1d0], r15
lea r8, [0x1400f0530]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdx, qword [rbp + 0x1d0]
test rdx, rdx
je 0x140018b00
mov rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rdi, qword [rsp + 0x68]
mov ecx, 0x5620
mov rsi, qword [rsp + 0x78]
mov rbx, qword [0x14012d3f0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x14012d3f0]
mov r9, rax
test r8, r8
je 0x1400187fe
movsx rdx, word [r8 + 0x5490]
lea rcx, [r8 + 0x5494]
mov r10d, dword [r8 + 0x3ff0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r10d
je 0x1400187f3
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5490], cx
movsx rax, cx
lea rcx, [r8 + 0x5494]
lea rcx, [rcx + rax*8]
mov dword [rcx], r10d
mov dword [rcx + 4], r15d
inc word [rcx + 4]
inc dword [r8 + 0x5488]
test r9, r9
je 0x14001880f
xor edx, edx
mov rcx, r9
call fcn.1400370f0
jmp 0x140018812
mov rax, r15
mov qword [0x14012d3f0], rax
call fcn.1400381a0
test rbx, rbx
je 0x14001882a
mov qword [0x14012d3f0], rbx
xor ecx, ecx
call fcn.14005a4d0
mov rcx, r14
call fcn.140065d40
mov rdx, rdi
mov rcx, rsi
call fcn.140065b80
call fcn.140003920
call fcn.14000dbd0
cmp byte [0x14012c26a], r15b
xorps xmm0, xmm0
movups xmmword [rbp + 0x1a0], xmm0
movups xmmword [rbp + 0x1b0], xmm0
movups xmmword [rbp + 0x1c0], xmm0
je 0x140018abf
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp + 0x1a0]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400188ec
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rbp + 0x1a8], 0x12
jne 0x1400188cb
mov byte [0x14012c26a], r15b
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rbp + 0x1a0]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1400188a1
cmp byte [0x14012c26a], r15b
je 0x140018abf
mov rax, qword [0x14012d3f0]
test rax, rax
je 0x14001890e
mov rcx, qword [rax + 0xa0]
jmp 0x140018911
mov rcx, r15
cmp qword [rcx + 0x48], r15
jne 0x14001891c
call fcn.140065520
call fcn.140066750
call fcn.14003acc0
cmp dword [0x1401303b0], r15d
jbe 0x140018a3c
call fcn.140004a10
lea rcx, [0x14012c270]
call fcn.14000c110
mov ecx, 0x70
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140018961
cmp byte [0x14012d560], r15b
sete byte [0x14012d560]
mov ecx, 0x71
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14001897e
cmp byte [0x14012d559], r15b
sete byte [0x14012d559]
mov ecx, 0x72
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400189a9
cmp byte [0x14012c268], r15b
sete byte [0x14012c268]
cmp byte [0x14012c26c], r15b
sete byte [0x14012c26c]
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400189c6
cmp byte [0x14012d558], r15b
sete byte [0x14012d558]
call fcn.1400171a0
call fcn.140012460
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], 1
call fcn.140022a90
mov r8d, dword [0x1401303b0]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140018a35
lea rdx, [rbp + 0x160]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, rbx
test eax, eax
je 0x140018a2f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0x160], 0x103
sete al
test al, al
jne 0x140018a3c
jmp 0x140018a35
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x14012c26a], r15b
call fcn.14003cd40
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0x70]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rbp + 0x1d0], xmm0
mov rax, qword [rcx]
lea edx, [r9 + 1]
call qword [rax + 0x108]
mov rcx, qword [rsp + 0x68]
lea r8, [rbp + 0x1d0]
mov rdx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x14012d3f0]
mov rcx, qword [rax + 0x4bd8]
mov rax, qword [rcx]
mov rcx, r15
add rax, 0x50
cmp byte [rax], r15b
cmovne rcx, rax
call fcn.140064a90
mov rcx, qword [rbp - 0x80]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x40]
cmp byte [0x14012c26a], r15b
jne 0x140018880
mov r9, qword [rsp + 0x70]
lea rax, [rbp - 0x70]
mov r8, qword [rsp + 0x68]
xorps xmm0, xmm0
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
movaps xmmword [rbp - 0x70], xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x30], xmm0
call fcn.140017790
xor eax, eax
jmp 0x140018b05
mov eax, 1
mov r14, qword [rsp + 0x328]
mov r15, qword [rsp + 0x2f0]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14008acd0
add rsp, 0x2f8
pop rdi
pop rsi
pop rbx
pop rbp
ret