Function at 0x140004690
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xad0]
sub rsp, 0xbd0
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0xac0], rax
lea rcx, str.atiadlxx.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r13, rax
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xa]
lea r9d, [r8 + 3]
call fcn.140008af0
movzx edi, al
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x8b0]
call fcn.140152140
mov byte [rsp + 0x20], 0
mov r9d, 0x208
lea r8, [rbp + 0x8b0]
lea rdx, str.CNVersion
lea rcx, str.SOFTWAREAMDCN
call fcn.140006ff0
mov r14, 0xffffffffffffffff
test al, al
je 0x140004753
lea rcx, [rbp + 0x8b0]
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140004740
test rax, rax
je 0x140004753
mov bl, 1
jmp 0x140004755
xor bl, bl
mov r15b, 1
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], ax
test bl, bl
jne 0x140004781
lea rcx, str.CN_Version_not_found_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
test r13, r13
je 0x140004e8a
test dil, dil
je 0x140004e8a
test bl, bl
je 0x140004e8a
mov qword [rbp + 8], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], 7
mov word [rbp + 8], ax
mov qword [rbp - 0x18], rax
mov qword [rbp - 8], rax
mov qword [rbp], 7
mov word [rbp - 0x18], ax
mov qword [rbp - 0x78], rax
mov edx, 0x2d
lea rcx, [rbp + 0x8b0]
call fcn.1401512fc
lea r8, [rbp + 0x8b0]
mov edx, 0x104
test rax, rax
jne 0x1400047f7
lea rcx, [rbp + 0x6a0]
call fcn.140155cf8
jmp 0x140004813
lea rcx, [rbp + 0x8b0]
sub rax, rcx
sar rax, 1
mov r9, rax
lea rcx, [rbp + 0x6a0]
call fcn.1401567bc
lea r8, [rbp - 0x78]
lea rdx, [0x1401c1f20]
lea rcx, [rbp + 0x6a0]
call fcn.140155e04
test rax, rax
je 0x140004e68
mov r8, r14
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140004840
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.140005060
lea r8, [rbp - 0x78]
lea rdx, [0x1401c1f20]
xor ecx, ecx
call fcn.140155e04
test rax, rax
je 0x140004e68
mov r8, r14
inc r8
cmp word [rax + r8*2], 0
jne 0x140004875
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140005060
lea rdx, str.ADL2_Main_ControlX3_Create
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rdx, str.ADL2_Main_Control_Destroy
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
mov qword [rsp + 0x40], rax
lea rdx, str.ADL2_Adapter_AdapterInfoX4_Get
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rdx, str.ADL2_Driver_Path_Get
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
test rsi, rsi
je 0x140004e5f
test r12, r12
je 0x140004e5f
test rdi, rdi
je 0x140004e5f
test rax, rax
je 0x140004e5f
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x60], eax
mov ebx, r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x20], eax
mov r9d, 1
lea r8, [rbp - 0x78]
mov edx, r9d
lea rcx, [0x140003de0]
call rsi
test eax, eax
jne 0x140004e56
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x60]
mov edx, r14d
mov rcx, qword [rbp - 0x78]
call rdi
test eax, eax
jne 0x140004e15
xor edi, edi
mov r12d, edi
cmp dword [rbp - 0x60], edi
jle 0x140004ddb
mov esi, edi
nop dword [rax]
nop word [rax + rax]
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], di
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], di
mov rdi, qword [rbp - 0x70]
add rdi, rsi
movzx ecx, byte [rdi + 0x108]
shl ecx, 5
mov eax, dword [rdi + 0x10c]
and eax, 0x1f
or ecx, eax
shl ecx, 3
mov eax, dword [rdi + 0x110]
and eax, 7
or ecx, eax
mov eax, ecx
cmp ebx, ecx
cmove eax, ebx
mov dword [rsp + 0x34], eax
je 0x140004bcb
mov rbx, qword [rbp - 0x78]
lea rdx, str.ADL2_Graphics_VersionsX3_Get
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004bcb
lea r8, [rbp + 0x2a0]
mov edx, dword [rdi + 4]
mov rcx, rbx
call rax
test eax, eax
js 0x140004bcb
lea rcx, [rbp + 0x2a0]
mov rax, r14
inc rax
cmp byte [rcx + rax], 0
jne 0x140004a11
test rax, rax
je 0x140004bcb
xor ebx, ebx
mov qword [rbp + 0x48], rbx
mov qword [rsp + 0x20], 0x100
lea r9, [rbp + 0x2a0]
mov r8d, 0x100
lea rdx, [rbp + 0x6a0]
lea rcx, [rbp + 0x48]
call fcn.1401562ec
mov qword [rbp - 0x68], rbx
lea edx, [rbx + 0x2d]
lea rcx, [rbp + 0x6a0]
call fcn.1401512fc
lea r8, [rbp + 0x6a0]
mov edx, 0x104
test rax, rax
jne 0x140004a7e
lea rcx, [rbp + 0x50]
call fcn.140155cf8
jmp 0x140004a97
lea rcx, [rbp + 0x6a0]
sub rax, rcx
sar rax, 1
mov r9, rax
lea rcx, [rbp + 0x50]
call fcn.1401567bc
lea r8, [rbp - 0x68]
lea rdx, [0x1401c1f20]
lea rcx, [rbp + 0x50]
call fcn.140155e04
test rax, rax
je 0x140004bcb
mov r8, r14
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x140004ac0
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140005060
lea r8, [rbp - 0x68]
lea rdx, [0x1401c1f20]
xor ecx, ecx
call fcn.140155e04
test rax, rax
je 0x140004bcb
mov r8, r14
inc r8
cmp word [rax + r8*2], bx
jne 0x140004af4
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140005060
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
lea r8, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae r8, qword [rbp + 8]
mov rax, qword [rbp + 0x18]
cmp rax, qword [rbp - 0x28]
jne 0x140004bb4
mov rdx, rax
test rax, rax
je 0x140004b54
sub r8, rcx
nop
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140004bb4
add rcx, 2
sub rdx, 1
jne 0x140004b40
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
lea r8, [rbp - 0x18]
cmp qword [rbp], 8
cmovae r8, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
cmp rax, qword [rbp - 0x48]
jne 0x140004bb4
mov rdx, rax
test rax, rax
je 0x140004b99
sub r8, rcx
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140004bb4
add rcx, 2
sub rdx, 1
jne 0x140004b85
mov rdx, qword [rbp - 0x70]
cmp dword [rsi + rdx + 0x114], 0xfffffc16
je 0x140004bfd
mov edi, dword [rsi + rdx + 4]
mov dword [rsp + 0x30], edi
jmp 0x140004bcf
movzx r15d, r15b
mov rax, qword [rbp - 0x70]
cmp dword [rsi + rax + 0x114], 0x3ea
cmove r15d, ebx
mov edi, dword [rsp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.140004ff0
nop
lea rcx, [rbp - 0x38]
call fcn.140004ff0
inc r12d
add rsi, 0x62c
mov ebx, dword [rsp + 0x34]
cmp r12d, dword [rbp - 0x60]
jge 0x140004c20
xor edi, edi
jmp 0x140004970
movsxd rax, r12d
imul rcx, rax, 0x62c
mov edi, dword [rcx + rdx + 4]
lea rcx, [rbp - 0x58]
call fcn.140004ff0
nop
lea rcx, [rbp - 0x38]
call fcn.140004ff0
jmp 0x140004c2b
test r15b, r15b
jne 0x140004dd9
xor ebx, ebx
mov r15b, 1
test edi, edi
js 0x140004dd9
lea r9, [rbp + 0x6a0]
mov r8d, 0x100
mov edx, edi
mov rcx, qword [rbp - 0x78]
call qword [rsp + 0x38]
test eax, eax
jne 0x140004dd9
lea rcx, [rbp + 0x6a0]
mov rax, r14
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140004c60
test rax, rax
je 0x140004dd9
mov qword [rsp + 0x68], rbx
movdqa xmm0, xmmword [0x1401f9de0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov r8d, 0xd
lea rdx, str._atiadlxx.dll
lea rcx, [rsp + 0x68]
call fcn.140005210
nop
mov qword [rsp + 0x48], rbx
movdqa xmm0, xmmword [0x1401f9de0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
lea rax, [rbp + 0x6a0]
inc r14
cmp byte [rax + r14], 0
jne 0x140004cc1
mov r8, r14
lea rdx, [rbp + 0x6a0]
lea rcx, [rsp + 0x48]
call fcn.140005210
nop
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x48]
lea rcx, [rbp - 0x38]
call fcn.140005440
nop
lea rcx, [rsp + 0x48]
call fcn.140005190
nop
lea rcx, [rsp + 0x68]
call fcn.140005190
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x28]
add rdi, rdx
lea rbx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rbx, qword [rbp - 0x38]
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], ax
mov rdx, rdi
sub rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.1400057d0
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
cmp rbx, rdi
je 0x140004d74
nop
movsx edx, byte [rbx]
lea rcx, [rbp - 0x58]
call fcn.140005630
inc rbx
cmp rbx, rdi
jne 0x140004d60
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor edi, edi
mov ebx, edi
cmp rax, 0xffffffffffffffff
setne bl
je 0x140004da2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x140004dc4
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x48]
lea rcx, [rbp + 0x28]
call fcn.140005060
xor r15b, r15b
lea rcx, [rbp - 0x58]
call fcn.140004ff0
nop
lea rcx, [rbp - 0x38]
call fcn.140005190
jmp 0x140004ddb
xor edi, edi
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140004ded
call fcn.140155e3c
mov qword [rbp - 0x70], rdi
mov rcx, qword [rbp - 0x78]
call qword [rsp + 0x40]
test r15b, r15b
jne 0x140004e29
lea rcx, str.Default_ADL_unload_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r13, rdi
jmp 0x140004e29
lea rcx, str.Failed_to_enumerate_default_ADL_adapters_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rbp - 0x78]
call r12
cmp qword [rbp + 0x38], 0
je 0x140004e76
lea rcx, str.Loading_ADL_from_driver_store_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r13, rax
jmp 0x140004e76
lea rcx, str.Failed_to_create_default_ADL_n
jmp 0x140004e6f
lea rcx, str.Failed_to_load_needed_ADL_functions_for_resolving_location_n
jmp 0x140004e6f
lea rcx, str.Failed_to_parse_CN_Version_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
lea rcx, [rbp - 0x18]
call fcn.140004ff0
nop
lea rcx, [rbp + 8]
call fcn.140004ff0
nop
lea rcx, [rbp + 0x28]
call fcn.140004ff0
mov rax, r13
mov rcx, qword [rbp + 0xac0]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0xbd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret