Function at 0x1400ad950
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, [0x140136624]
call fcn.140122ce0
mov rbx, rax
test rax, rax
je 0x1400add1b
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 [0x14019efe0], rbx
xor edx, edx
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
movups xmmword [rbx + 0xa0], xmm0
cmp byte [0x1401392bc], dl
lea rdi, str.1143539100549382296
mov r9d, 0xffffffff
mov ecx, 0xfde9
mov r8, rdi
je 0x1400adb45
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, [0x1401392bc]
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 0x1400ada83
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.1400ac480
jmp 0x1400adb5f
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 0x1400adb29
mov ecx, dword [rbp + 0xaa0]
cmp ecx, 1
jb 0x1400adb29
shr ecx, 1
je 0x1400adaf7
lea rax, [rbp + 0x60]
cmp word [rax], 0x2f
jne 0x1400adaed
mov word [rax], 0x5c
add rax, 2
sub rcx, 1
jne 0x1400adae2
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.1400ac4d0
lea rdx, [rbp + 0x270]
lea rcx, [rbp - 0x20]
jmp 0x1400adb5a
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.1400ac480
jmp 0x1400adb5f
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.1400ac5a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x14017d8a0]
mov dword [0x14017e8fc], eax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400adb88
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [0x14017d8ec]
cmp eax, 0x7fffffff
jne 0x1400adba9
dec eax
mov ecx, 6
mov dword [0x14017d8ec], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
test rsi, rsi
je 0x1400adbc9
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [0x14019eeb0], xmm0
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [0x14019eec0], xmm1
jmp 0x1400adbe9
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x14019eeb0], xmm0
movups xmmword [0x14019eec0], xmm0
movups xmmword [0x14019eed0], xmm0
lea rcx, [0x14017d8a0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [0x14019f0f0], xmm0
movups xmmword [0x14019f100], xmm0
movups xmmword [0x14019f110], xmm0
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp qword [0x14019efe8], 0
jne 0x1400adcf1
mov r8d, 1
lea rax, [0x14017a728]
mov edx, r8d
mov qword [0x1401a3330], rax
sub rdx, rdi
lea rcx, [0x1401a3350]
lea rax, [rdx + rdi]
cmp rax, 0x40
jae 0x1400adc6b
movzx eax, byte [rdi]
inc rdi
mov byte [rcx], al
inc rcx
cmp byte [rdi], 0
jne 0x1400adc51
mov rdi, qword [0x14019efe0]
lea rax, [0x1401a3330]
mov byte [rcx], 0
mov ecx, 8
mov qword [0x14019efe8], rax
lea rax, [0x1400ae280]
mov qword [0x1401a3340], rax
lea rax, [0x1400ae290]
mov qword [0x1401a3348], rax
xchg byte [rdi], r8b
call fcn.140122ca4
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x28], rcx
lea r8, [0x1400aeab0]
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 0x1400add0b
cmp dword [rdi + 0xa8], ebx
jne 0x1400add04
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 [0x14019efe0], rbx
add rsp, 0xb70
pop rsi
pop rbx
pop rbp
ret