Function at 0x140001510
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r14d, r14d
call qword [sym.imp.steam_api64.dll_SteamAPI_Init]
test al, al
jne 0x140001591
lea rdx, str._MastoidSteamworks__SteamAPI_Init___failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002030
mov rcx, rax
lea rdx, [0x140002200]
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]
lea rdx, str._MastoidSteamworks__Fatal_Error:_Steam_must_be_running_to_play_this_game__SteamAPI_Init___failed_.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002030
mov rcx, rax
lea rdx, [0x140002200]
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]
lea rcx, [0x140007060]
call qword [sym.imp.steam_api64.dll_SteamInternal_ContextInit]
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
lea rdx, str._n_MastoidSteamworks__Loaded._n_MastoidSteamworks__Please_input_checksum_to_search_for:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002030
mov rcx, rax
lea rdx, [0x140002200]
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 [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140002240
lea rdi, [0x1400070b8]
cmp ebx, 0x60478
jne 0x14000181d
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], 1
mov qword [rbp - 0x41], 0xf
mov byte [rbp - 0x59], 0x29
lea rcx, [rbp - 0x39]
call fcn.140001db0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
mov ecx, 0x20
call fcn.140002bf0
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x69], 0x19
mov qword [rbp - 0x61], 0x1f
movups xmm0, xmmword [str.Avalanche_v1.12.14.50e7__]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140004628]
movsd qword [rax + 0x10], xmm1
movzx ecx, byte [0x140004630]
mov byte [rax + 0x18], cl
mov byte [rax + 0x19], 0
mov r9, rbx
lea r8, [rbp - 0x79]
lea rcx, [rbp + 0xf]
call fcn.1400027d0
nop
lea r9, [rbp - 0x59]
lea r8, [rbp + 0xf]
lea rcx, [rbp - 0x11]
call fcn.1400027d0
lea rdx, [rbp - 0x11]
call fcn.140001d00
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x1400016c6
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e7c
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140001705
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e7c
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 0x10
jb 0x140001744
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000173e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000173e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e7c
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x140001782
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000177d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000177d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e7c
movdqa xmm0, xmmword [0x140004750]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x1400017d1
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e7c
mov rcx, qword [0x1400070d0]
cmp rcx, 4
jb 0x140001807
mov rax, rdi
cmp rcx, 0x10
cmovae rax, qword [0x1400070b8]
mov qword [0x1400070c8], 4
mov dword [rax], 0x34696f68
mov byte [rax + 4], 0
jmp 0x140001a8e
lea r9, str.hoi4
mov edx, 4
call fcn.1400025c0
jmp 0x140001a8e
cmp ebx, 0x39d32
jne 0x140001a6b
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], 1
mov qword [rbp - 0x61], 0xf
mov byte [rbp - 0x79], 0x29
lea rcx, [rbp - 0x39]
call fcn.140001db0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
mov ecx, 0x20
call fcn.140002bf0
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x49], 0x17
mov qword [rbp - 0x41], 0x1f
movups xmm0, xmmword [str.EU4_v1.32.2.0_Songhai__]
movups xmmword [rax], xmm0
mov ecx, dword [0x140004650]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x140004654]
mov word [rax + 0x14], cx
movzx ecx, byte [0x140004656]
mov byte [rax + 0x16], cl
mov byte [rax + 0x17], 0
mov r9, rbx
lea r8, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.1400027d0
nop
lea r9, [rbp - 0x79]
lea r8, [rbp - 0x11]
lea rcx, [rbp + 0xf]
call fcn.1400027d0
lea rdx, [rbp + 0xf]
call fcn.140001d00
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x14000190b
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001905
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001905
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e7c
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x14000194a
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001944
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001944
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e7c
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 0x10
jb 0x140001989
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001983
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001983
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e7c
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x1400019c7
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e7c
movdqa xmm0, xmmword [0x140004750]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 0x61]
cmp rdx, 0x10
jb 0x140001a16
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002e7c
mov rax, qword [0x1400070d0]
cmp rax, 3
jb 0x140001a58
mov rbx, rdi
cmp rax, 0x10
cmovae rbx, qword [0x1400070b8]
mov qword [0x1400070c8], 3
mov r8d, 3
lea rdx, [0x140004658]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x140001a8e
lea r9, [0x140004658]
mov edx, 3
call fcn.1400025c0
jmp 0x140001a8e
lea rdx, str._MastoidSteamworks__steam_appid.txt_does_not_match_eu4_or_hoi4.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002030
mov rcx, rax
lea rdx, [0x140002200]
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]
lea rdx, str._MastoidSteamworks__Now_searching_for_game
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002030
cmp qword [0x1400070d0], 0x10
cmovae rdi, qword [0x1400070b8]
mov r8, qword [0x1400070c8]
mov rdx, rdi
mov rcx, rax
call fcn.1400029c0
lea rdx, str._with_checksum
mov rcx, rax
call fcn.140002030
lea rdx, [0x140007098]
cmp qword [0x1400070b0], 0x10
cmovae rdx, qword [0x140007098]
mov r8, qword [0x1400070a8]
mov rcx, rax
call fcn.1400029c0
lea rdx, str.._Press__delete__to_search.__eta_5_seconds_
mov rcx, rax
call fcn.140002030
mov rcx, rax
lea rdx, [0x140002200]
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]
lea rdi, vtable.CCallResult_class_CLobbyListManager__struct_LobbyMatchList_t_.0
lea r15, [0x140007078]
lea rsi, [0x140001390]
nop dword [rax]
mov ecx, 0x2e
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140001c4a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
mov byte [rbp + 0x17], al
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], r14
mov qword [rbp + 0x2f], r14
mov dword [rbp + 0x1b], 0x1fe
lea rcx, [0x140007048]
call qword [sym.imp.steam_api64.dll_SteamInternal_ContextInit]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov edx, 0x270f
call qword [rax + 0x50]
lea rcx, [0x140007048]
call qword [sym.imp.steam_api64.dll_SteamInternal_ContextInit]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov edx, 3
call qword [rax + 0x48]
lea rcx, [0x140007048]
call qword [sym.imp.steam_api64.dll_SteamInternal_ContextInit]
mov rcx, qword [rax]
mov r8, r15
cmp qword [0x140007090], 0x10
cmovae r8, qword [0x140007078]
mov rax, qword [rcx]
xor r9d, r9d
lea rdx, str.version
call qword [rax + 0x28]
lea rcx, [0x140007048]
call qword [sym.imp.steam_api64.dll_SteamInternal_ContextInit]
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rbx, rax
mov rdx, qword [rbp + 0x1f]
test rdx, rdx
je 0x140001bff
lea rcx, [rbp + 0xf]
call qword [sym.imp.steam_api64.dll_SteamAPI_UnregisterCallResult]
mov qword [rbp + 0x1f], rbx
lea rax, [rbp + 0xf]
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rsi
test rbx, rbx
je 0x140001c21
mov rdx, rbx
lea rcx, [rbp + 0xf]
call qword [sym.imp.steam_api64.dll_SteamAPI_RegisterCallResult]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.steam_api64.dll_SteamAPI_RunCallbacks]
nop
mov qword [rbp + 0xf], rdi
mov rdx, qword [rbp + 0x1f]
test rdx, rdx
je 0x140001c4a
lea rcx, [rbp + 0xf]
call qword [sym.imp.steam_api64.dll_SteamAPI_UnregisterCallResult]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001b30