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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push r14
lea rbp, [rsp - 0xa30]
sub rsp, 0xb30
mov r14, rdx
mov ecx, 0xb0
lea rdx, [0x1400cb0f0]
call fcn.14008b494
mov rbx, rax
test rax, rax
je 0x14003b755
xor edx, edx
mov qword [rsp + 0xb50], rdi
mov r8d, 0xb0
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbx + 8]
mov byte [rbx], 1
xor esi, esi
xorps xmm0, xmm0
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
movups xmmword [rcx + 0x18], xmm0
lea edx, [rsi + 2]
movups xmmword [rcx + 0x28], xmm0
movups xmmword [rcx + 0x38], xmm0
mov qword [rcx + 0x48], rsi
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 dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
xor edx, edx
mov qword [0x140158870], rbx
movups xmmword [rbx + 0xa0], xmm0
cmp byte [0x1400d6084], sil
lea rax, [rbp - 0x60]
lea rdi, str.1213817901476347924
mov qword [rsp + 0x20], rax
lea r9d, [rsi - 1]
mov ecx, 0xfde9
mov r8, rdi
je 0x14003b57f
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rbp - 0x20]
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea r9d, [rsi - 1]
mov qword [rsp + 0x20], rax
lea r8, [0x1400d6084]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rbp + 0xa68]
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 0x14003b4be
lea ecx, [rsi + 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.14003a140
jmp 0x14003b590
mov rcx, qword [rbp + 0xa68]
lea rax, [rbp + 0xa60]
mov qword [rsp + 0x28], rax
lea rdx, str.SteamExe
lea rax, [rbp + 0x20]
mov dword [rbp + 0xa60], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0xa68]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14003b563
mov ecx, dword [rbp + 0xa60]
cmp ecx, 1
jb 0x14003b563
shr ecx, 1
je 0x14003b535
lea rax, [rbp + 0x20]
nop dword [rax]
cmp word [rax], 0x2f
jne 0x14003b52b
mov word [rax], 0x5c
add rax, 2
sub rcx, 1
jne 0x14003b520
lea rax, [rbp - 0x20]
mov edx, 0x800
lea r9, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r8, str.__s__steam:__rungameid__s
lea rcx, [rbp + 0x230]
call fcn.14003a190
lea rdx, [rbp + 0x230]
jmp 0x14003b587
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.14003a140
jmp 0x14003b590
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14003a260
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x140127000]
mov dword [0x140158298], eax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14003b5b9
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [0x14012704c]
cmp eax, 0x7fffffff
jne 0x14003b5da
dec eax
mov ecx, 6
mov dword [0x14012704c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
test r14, r14
je 0x14003b5fd
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [0x140158740], xmm0
movups xmm0, xmmword [r14 + 0x20]
movups xmmword [0x140158750], xmm1
jmp 0x14003b61d
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x140158740], xmm0
movups xmmword [0x140158750], xmm0
movups xmmword [0x140158760], xmm0
lea rcx, [0x140127000]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [0x140158980], xmm0
movups xmmword [0x140158990], xmm0
movups xmmword [0x1401589a0], xmm0
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp qword [0x14015c9b8], rsi
jne 0x14003b722
mov r8d, 1
lea rax, [0x140123758]
mov edx, r8d
mov qword [0x140148110], rax
sub rdx, rdi
lea rcx, [0x140148130]
lea rax, [rdx + rdi]
cmp rax, 0x40
jae 0x14003b69e
movzx eax, byte [rdi]
inc rdi
mov byte [rcx], al
inc rcx
cmp byte [rdi], sil
jne 0x14003b684
mov rbx, qword [0x140158870]
lea rax, [0x140148110]
mov byte [rcx], sil
mov ecx, 8
mov qword [0x14015c9b8], rax
lea rax, [0x14003bb00]
mov qword [0x140148120], rax
lea rax, [0x14003bb10]
mov qword [0x140148128], rax
xchg byte [rbx], r8b
call fcn.14008b424
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x14003c0a0]
xor ecx, ecx
mov dword [rsp + 0x20], esi
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 0x14003b745
cmp dword [rbx + 0xa8], esi
jne 0x14003b73e
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rbx + 0xa0], xmm1
mov rdi, qword [rsp + 0xb50]
mov rbx, qword [rsp + 0xb58]
add rsp, 0xb30
pop r14
pop rsi
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], esi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xor esi, esi
mov qword [0x140158870], rsi
jmp 0x14003b72a