Function at 0x140003930
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x70
test ecx, ecx
je 0x140003cc7
mov r8d, ecx
xor edx, edx
mov ecx, 0x100400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r8, str.RsxSafeExit
xor edx, edx
mov ecx, 0x100000
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_OpenEventW]
test rbx, rbx
je 0x140003cc7
test rax, rax
je 0x140003cc7
xor r8d, r8d
mov qword [rbp - 0x10], rax
mov r9d, 0xffffffff
mov qword [rbp - 8], rbx
lea rdx, [rbp - 0x10]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1400039b1
lea rcx, str.RSX_exited_safely_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140003cc7
cmp eax, 1
jne 0x140003cc7
xor edi, edi
lea rdx, [rbp + 0x20]
mov rcx, rbx
mov dword [rbp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rbp + 0x20], 0xb
jne 0x1400039f4
lea rcx, str.EXIT_FOR_GPU_LOST_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140003390
jmp 0x140003cc7
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov r9d, 1
mov qword [rbp - 0x18], rdi
mov rbx, rax
mov qword [rbp + 0x38], rdi
lea rax, [rbp - 0x20]
mov dword [rbp + 0x30], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAMDCN
mov dword [rbp + 0x28], 0xb
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003b50
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x28]
lea rax, [rbp - 0x18]
xor r8d, r8d
lea rdx, str.LastRecoveryTime
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003b46
cmp dword [rbp + 0x28], 0xb
jne 0x140003b46
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x18]
cmp rcx, rbx
jg 0x140003b50
lea rax, [rbx - 0x3c]
cmp rcx, rax
jle 0x140003b50
lea rax, [rbp - 0x20]
mov dword [rbp + 0x30], 8
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x28], 0xb
lea rdx, str.SOFTWAREAMDCN
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003b40
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x28]
lea rax, [rbp + 0x38]
xor r8d, r8d
lea rdx, str.LastRecoveryCount
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140003b36
cmp dword [rbp + 0x28], 0xb
jne 0x140003b36
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp + 0x38], 3
jle 0x140003b40
lea rcx, str.RSX_exit_unexpectedly__will_not_recover_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rbp - 0x18]
jmp 0x140003b50
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc qword [rbp + 0x38]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x40], rdi
lea rdx, str.SOFTWAREAMDCN
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], edi
mov qword [rbp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003bca
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x30]
mov dword [rsp + 0x28], 8
lea rdx, str.LastRecoveryTime
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp + 0x38]
lea rdx, str.SOFTWAREAMDCN
mov qword [rsp + 0x40], rdi
xor r9d, r9d
mov qword [rbp + 0x30], rax
xor r8d, r8d
lea rax, [rbp + 0x28]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003c44
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x30]
mov dword [rsp + 0x28], 8
lea rdx, str.LastRecoveryCount
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.RSX_exit_unexpectedly__attempt_recovery_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [rbp + 0x20]
cmp eax, 0xc
je 0x140003ca8
cmp eax, 0xd
je 0x140003c9f
cmp eax, 0xe
jne 0x140003c79
lea rcx, str.EXIT_FOR_MEMORY_EXCEPTION_WHEN_SESSION_END_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 0xff
jne 0x140003c96
lea rcx, str.255__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, str.Other_exit_code__n
jmp 0x140003caf
lea rcx, str.EXIT_FOR_OTHER_EXCEPTION_n
jmp 0x140003caf
lea rcx, str.EXIT_FOR_MEMORY_EXCEPTION_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.140003650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]