Function at 0x1400ade60
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rsi
lea rbp, [rsp - 0xa70]
sub rsp, 0xb70
mov rsi, rdx
mov ecx, 0xb0
lea rdx, [0x14013a594]
call fcn.140127d40
mov rbx, rax
test rax, rax
je 0x1400ae22b
lea rcx, [rax + 1]
mov qword [rsp + 0xb90], rdi
xor edx, edx
mov r8d, 0xaf
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbx + 8]
mov byte [rbx], 1
mov edx, 2
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
xorps xmm0, xmm0
mov qword [0x1401a0fc0], rbx
xor edx, edx
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
movups xmmword [rbx + 0xa0], xmm0
cmp byte [0x14013d1fc], dl
lea rdi, str.1176857755752075364
mov r9d, 0xffffffff
mov ecx, 0xfde9
mov r8, rdi
je 0x1400ae055
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rbp - 0x60]
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [0x14013d1fc]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rbp + 0xaa8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareValveSteam
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400adf93
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_opening_Steam_key_n
call fcn.1400ac990
jmp 0x1400ae06f
mov rcx, qword [rbp + 0xaa8]
lea rax, [rbp + 0xaa0]
mov qword [rsp + 0x28], rax
lea rdx, str.SteamExe
lea rax, [rbp + 0x60]
mov dword [rbp + 0xaa0], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0xaa8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400ae039
mov ecx, dword [rbp + 0xaa0]
cmp ecx, 1
jb 0x1400ae039
shr ecx, 1
je 0x1400ae007
lea rax, [rbp + 0x60]
cmp word [rax], 0x2f
jne 0x1400adffd
mov word [rax], 0x5c
add rax, 2
sub rcx, 1
jne 0x1400adff2
lea rax, [rbp - 0x60]
mov edx, 0x800
lea r9, [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, str.__s__steam:__rungameid__s
lea rcx, [rbp + 0x270]
call fcn.1400ac9e0
lea rdx, [rbp + 0x270]
lea rcx, [rbp - 0x20]
jmp 0x1400ae06a
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_reading_SteamExe_key_n
call fcn.1400ac990
jmp 0x1400ae06f
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea rcx, [rbp + 0x20]
call fcn.1400acab0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x14017f810]
mov dword [0x1401808cc], eax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400ae098
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [0x14017f85c]
cmp eax, 0x7fffffff
jne 0x1400ae0b9
dec eax
mov ecx, 6
mov dword [0x14017f85c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
test rsi, rsi
je 0x1400ae0d9
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [0x1401a0e90], xmm0
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [0x1401a0ea0], xmm1
jmp 0x1400ae0f9
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x1401a0e90], xmm0
movups xmmword [0x1401a0ea0], xmm0
movups xmmword [0x1401a0eb0], xmm0
lea rcx, [0x14017f810]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [0x1401a10d0], xmm0
movups xmmword [0x1401a10e0], xmm0
movups xmmword [0x1401a10f0], xmm0
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp qword [0x1401a5210], 0
jne 0x1400ae201
mov r8d, 1
lea rax, [0x14017c720]
mov edx, r8d
mov qword [0x1401a5320], rax
sub rdx, rdi
lea rcx, [0x1401a5340]
lea rax, [rdx + rdi]
cmp rax, 0x40
jae 0x1400ae17b
movzx eax, byte [rdi]
inc rdi
mov byte [rcx], al
inc rcx
cmp byte [rdi], 0
jne 0x1400ae161
mov rdi, qword [0x1401a0fc0]
lea rax, [0x1401a5320]
mov byte [rcx], 0
mov ecx, 8
mov qword [0x1401a5210], rax
lea rax, [0x1400ae790]
mov qword [0x1401a5330], rax
lea rax, [0x1400ae7a0]
mov qword [0x1401a5338], rax
xchg byte [rdi], r8b
call fcn.140127d04
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x28], rcx
lea r8, [0x1400aefc0]
xor ecx, ecx
mov dword [rsp + 0x20], ebx
mov r9, rax
mov qword [rax], rdi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400ae21b
cmp dword [rdi + 0xa8], ebx
jne 0x1400ae214
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 0xa0], xmm1
mov rdi, qword [rsp + 0xb90]
add rsp, 0xb70
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov ecx, 6
mov dword [rsp + 0x38], ebx
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xor ebx, ebx
mov qword [0x1401a0fc0], rbx
add rsp, 0xb70
pop rsi
pop rbx
pop rbp
ret