Function at 0x1400011d6
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
jmp 0x140003820
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov rax, qword [0x14000d048]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
lea rcx, str.atiadlxx.dll
mov qword [rsp + 0x3e0], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14000d458], rax
test rax, rax
jne 0x14000388b
lea rcx, str.atiadlxy.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14000d458], rax
test rax, rax
je 0x14000392e
lea rdx, str.ADL2_Main_Control_Create
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14000d458]
lea rdx, str.ADL2_Main_Control_Destroy
mov qword [0x14000d478], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14000d458]
lea rdx, str.ADL2_Adapter_AdapterInfoX3_Get
mov qword [0x14000d480], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14000d458]
lea rdx, str.ADL2_Adapter_AdapterInfoX4_Get
mov qword [0x14000d468], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9, qword [0x14000d478]
mov qword [0x14000d470], rax
test r9, r9
je 0x14000392e
cmp qword [0x14000d480], 0
je 0x14000392e
cmp qword [0x14000d468], 0
je 0x14000392e
test rax, rax
je 0x14000392e
lea r8, [0x14000d460]
mov edx, 1
lea rcx, [0x14000125d]
call r9
mov r8d, 0x104
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r13d, r13d
mov qword [rsp + 0x60], 7
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
lea rax, [rbp + 0x90]
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], r13w
jne 0x140003970
lea rdx, [rbp + 0x90]
mov qword [rsp + 0x3e8], r12
lea rcx, [rsp + 0x48]
call fcn.140001262
mov r15, qword [rsp + 0x60]
lea rsi, [rsp + 0x48]
mov r14, qword [rsp + 0x48]
cmp r15, 8
mov rbx, qword [rsp + 0x58]
cmovae rsi, r14
test rbx, rbx
je 0x140003a72
mov r12d, 0x100
lea rcx, [rbp - 0x70]
mov r8d, r12d
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x14000ae7c]
lea rdx, [0x14000ae80]
nop word [rax + rax]
movzx eax, word [rcx]
cmp ax, r12w
jae 0x140003a2b
movzx eax, al
add rcx, 2
mov byte [rbp + rax - 0x70], 1
cmp rcx, rdx
jne 0x1400039e0
lea rcx, [rbx - 1]
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea rbx, [rsi + rax*2]
nop dword [rax]
movzx eax, word [rbx]
cmp ax, r12w
jae 0x140003a20
cmp byte [rbp + rax - 0x70], r13b
jne 0x140003a6a
cmp rbx, rsi
je 0x140003a72
sub rbx, 2
jmp 0x140003a10
lea rcx, [rbx - 1]
mov rax, rdi
cmp rcx, rax
cmovb rax, rcx
lea rbx, [rsi + rax*2]
nop dword [rax]
movzx edx, word [rbx]
lea rax, [0x14000ae7c]
mov ecx, 2
nop
cmp word [rax], dx
je 0x140003a6a
add rax, 2
sub rcx, 1
jne 0x140003a50
cmp rbx, rsi
je 0x140003a72
sub rbx, 2
jmp 0x140003a40
sub rbx, rsi
sar rbx, 1
jmp 0x140003a75
mov rbx, rdi
mov r12, qword [rsp + 0x3e8]
mov rsi, qword [rsp + 0x3e0]
cmp r15, 8
jb 0x140003ac3
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140003abb
mov r14, qword [r14 - 8]
add rdx, 0x27
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003abb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14000121c
mov qword [rsp + 0x48], r13
lea rax, [rbp + 0x90]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], r13w
jne 0x140003ae0
mov r8, rdi
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.140001262
cmp qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], r13
cmovb rbx, qword [rsp + 0x58]
cmp qword [rsp + 0x60], 8
mov r8, rbx
mov qword [rsp + 0x78], r13
cmovae rdx, qword [rsp + 0x48]
mov qword [rbp - 0x80], 7
call fcn.140001262
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140003b7b
mov rcx, qword [rsp + 0x48]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b76
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003d14
call fcn.14000121c
cmp qword [rbp - 0x80], 8
lea rcx, [rsp + 0x68]
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x30], 4
call fcn.14000129e
test al, al
je 0x140003c8b
cmp qword [0x14000d020], 0x10
lea rax, [rsp + 0x40]
lea rdx, [0x14000d008]
mov qword [rsp + 0x20], rax
cmovae rdx, qword [0x14000d008]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003c8b
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.InitDelay
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140003c80
cmp dword [rsp + 0x30], 4
jne 0x140003c80
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [rsp + 0x34]
test edi, edi
jle 0x140003c8b
xor r8d, r8d
lea r9, str.AMDRSDelayInitE
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
imul edx, edi, 0x3e8
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
cmp eax, 0x102
je 0x140003c78
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003cb5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003c8b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x28], 5
lea r9, str.atlogon_rebootstartup
lea r8, str.Radeonsoftware.exe
mov qword [rsp + 0x20], r13
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rax, qword [0x14000d480]
test rax, rax
je 0x140003cca
mov rcx, qword [0x14000d460]
call rax
mov rcx, qword [0x14000d458]
test rcx, rcx
je 0x140003cdc
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140003d20
mov rcx, qword [rsp + 0x68]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d1b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d1b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000121c
xor eax, eax
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140001136
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3b0
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret