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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x9f0]
sub rsp, 0xaf0
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rbp + 0x9e0], rax
mov rsi, rdx
mov rbx, rcx
lea rdx, [0x140090ea0]
mov ecx, 0xb0
call fcn.140052f2c
mov rdi, rax
test rax, rax
je 0x140005200
xor edx, edx
mov r8d, 0xb0
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov byte [rdi], 1
lea rcx, [rdi + 0x58]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
mov dword [rdi + 0x50], 0xffffffff
movups xmmword [rdi + 0x10], xmm1
mov dword [rdi + 8], 2
mov dword [rdi + 0x54], 0
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
xorps xmm0, xmm0
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea rax, [rbp - 0x70]
mov qword [0x14019c6b8], rdi
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
movups xmmword [rdi + 0xa0], xmm0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [0x14009d0b0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x30]
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 0x140004f81
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_opening_Steam_key_n
jmp 0x140005035
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.SteamExe
lea rax, [rbp - 0x30]
mov dword [rsp + 0x40], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140005023
mov ecx, dword [rsp + 0x40]
cmp ecx, 1
jb 0x140005023
shr ecx, 1
je 0x140004feb
lea rax, [rbp - 0x30]
cmp word [rax], 0x2f
jne 0x140004fe1
mov word [rax], 0x5c
add rax, 2
sub rcx, 1
jne 0x140004fd6
lea rax, [rsp + 0x50]
mov edx, 0x800
lea r9, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r8, str.__s__steam:__rungameid__s
lea rcx, [rbp + 0x1e0]
call fcn.1400039c0
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp - 0x70]
call fcn.140003a90
jmp 0x14000503d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_reading_SteamExe_key_n
mov rcx, rax
call fcn.140003970
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, reloc.WS2_32.dll_bind
mov dword [0x1401a07f8], eax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140005066
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [0x140158f8c]
cmp eax, 0x7fffffff
jne 0x140005087
dec eax
mov ecx, 6
mov dword [0x140158f8c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
test rsi, rsi
je 0x1400050a7
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [0x14019c580], xmm0
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [0x14019c590], xmm1
jmp 0x1400050c7
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [0x14019c580], xmm0
movups xmmword [0x14019c590], xmm0
movups xmmword [0x14019c5a0], xmm0
lea rcx, reloc.WS2_32.dll_bind
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [0x14019c7c0], xmm0
movups xmmword [0x14019c7d0], xmm0
movups xmmword [0x14019c7e0], xmm0
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp qword [0x1401a0900], 0
jne 0x14000520b
lea rax, [0x140158f30]
mov r8d, 1
mov qword [0x14018c160], rax
test rbx, rbx
je 0x14000515d
cmp byte [rbx], 0
lea rcx, [0x14018c180]
je 0x14000515a
mov edx, r8d
sub rdx, rbx
nop dword [rax + rax]
lea rax, [rdx + rbx]
cmp rax, 0x40
jae 0x14000515a
movzx eax, byte [rbx]
inc rbx
mov byte [rcx], al
inc rcx
cmp byte [rbx], 0
jne 0x140005140
mov byte [rcx], 0
mov rbx, qword [0x14019c6b8]
lea rax, [0x14018c160]
mov qword [0x1401a0900], rax
mov ecx, 8
lea rax, [0x140005610]
mov qword [0x14018c170], rax
lea rax, [0x140005620]
mov qword [0x14018c178], rax
xchg byte [rbx], r8b
call fcn.140052ef0
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140005c40]
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 0x1400051ec
cmp dword [rbx + 0xa8], 0
jne 0x1400051e5
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rbx + 0xa0], xmm1
jmp 0x14000520b
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 [0x14019c6b8], 0
mov rcx, qword [rbp + 0x9e0]
xor rcx, rsp
call fcn.140052db0
lea r11, [rsp + 0xaf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret