Function at 0x140171920
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 - 0x9d0]
sub rsp, 0xad0
mov rsi, rdx
mov ecx, 0xb0
lea rdx, [0x14043a2e0]
call fcn.1403828f0
mov rbx, rax
test rax, rax
je 0x140171d06
xor edx, edx
mov qword [rsp + 0xaf0], rdi
mov r8d, 0xb0
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov byte [rbx], 1
lea rcx, [rbx + 0x58]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
mov dword [rbx + 0x50], 0xffffffff
movups xmmword [rbx + 0x10], xmm1
mov dword [rbx + 8], 2
mov dword [rbx + 0x54], 0
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
xorps xmm0, xmm0
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
xor edx, edx
mov qword [0x140522ca0], rbx
movups xmmword [rbx + 0xa0], xmm0
cmp byte [0x14043c3ec], dl
lea rax, [rbp - 0x80]
lea rdi, str.1252312932969353266
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov ecx, 0xfde9
mov r8, rdi
je 0x140171b30
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [0x14043c3ec]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rbp + 0xa08]
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 0x140171a6f
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.1401701f0
jmp 0x140171b41
mov rcx, qword [rbp + 0xa08]
lea rax, [rbp + 0xa00]
mov qword [rsp + 0x28], rax
lea rdx, str.SteamExe
lea rax, [rbp - 0x40]
mov dword [rbp + 0xa00], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0xa08]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140171b14
mov ecx, dword [rbp + 0xa00]
cmp ecx, 1
jb 0x140171b14
shr ecx, 1
je 0x140171ae5
lea rax, [rbp - 0x40]
nop
cmp word [rax], 0x2f
jne 0x140171adb
mov word [rax], 0x5c
add rax, 2
sub rcx, 1
jne 0x140171ad0
lea rax, [rsp + 0x40]
mov edx, 0x800
lea r9, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r8, str.__s__steam:__rungameid__s
lea rcx, [rbp + 0x1d0]
call fcn.140170240
lea rdx, [rbp + 0x1d0]
jmp 0x140171b38
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.1401701f0
jmp 0x140171b41
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.140170310
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, reloc.WS2_32.dll_bind
mov dword [0x140522ca8], eax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140171b6a
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [0x1404eccec]
cmp eax, 0x7fffffff
jne 0x140171b8b
dec eax
mov ecx, 6
mov dword [0x1404eccec], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
test rsi, rsi
je 0x140171bab
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [0x140522b70], xmm0
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [0x140522b80], xmm1
jmp 0x140171bcb
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x140522b70], xmm0
movups xmmword [0x140522b80], xmm0
movups xmmword [0x140522b90], xmm0
lea rcx, reloc.WS2_32.dll_bind
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x140522db0], xmm0
movups xmmword [0x140522dc0], xmm0
movups xmmword [0x140522dd0], xmm0
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp qword [0x140526ef0], 0
jne 0x140171cd8
mov r8d, 1
lea rax, [0x1404ecc90]
mov edx, r8d
mov qword [0x1405125a0], rax
sub rdx, rdi
lea rcx, [0x1405125c0]
lea rax, [rdx + rdi]
cmp rax, 0x40
jae 0x140171c4f
movzx eax, byte [rdi]
inc rdi
mov byte [rcx], al
inc rcx
cmp byte [rdi], 0
jne 0x140171c35
mov rbx, qword [0x140522ca0]
lea rax, [0x1405125a0]
mov byte [rcx], 0
mov ecx, 8
mov qword [0x140526ef0], rax
lea rax, [0x1401723b0]
mov qword [0x1405125b0], rax
lea rax, [0x1401723c0]
mov qword [0x1405125b8], rax
xchg byte [rbx], r8b
call fcn.1403824f8
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140172970]
xor ecx, ecx
mov dword [rsp + 0x20], 0
xor edx, edx
mov qword [rax], rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140171cf2
cmp dword [rbx + 0xa8], 0
jne 0x140171ceb
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rbx + 0xa0], xmm1
mov rdi, qword [rsp + 0xaf0]
add rsp, 0xad0
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], 0
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov qword [0x140522ca0], 0
add rsp, 0xad0
pop rsi
pop rbx
pop rbp
ret