Function at 0x140004850
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
movzx r13d, cl
lea rcx, str._________START___________
call fcn.140001570
mov r12d, 1
mov qword [rbp - 0x30], 0
lea rcx, str.atiadlxx.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r15, rax
test rax, rax
je 0x140004b57
lea rdx, str.ADL2_Main_Control_Create
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004b57
lea r8, [rbp - 0x30]
mov edx, r12d
lea rcx, [0x140004840]
call rax
cmp eax, 0xffffffff
je 0x140004b3c
lea rcx, str.SetComputeOption:_ADL_Intialize_is_Successful_r_n
call fcn.140001570
mov dword [rbp + 0x48], 0
xor esi, esi
or ebx, 0xffffffff
lea rdx, str.ADL2_Adapter_NumberOfAdapters_Get
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004b3c
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp - 0x30]
call rax
cmp eax, ebx
je 0x140004b3c
mov eax, dword [rbp + 0x48]
test eax, eax
jle 0x14000495f
imul eax, eax, 0x624
movsxd rcx, eax
call fcn.140030d38
mov rsi, rax
lea rdx, str.ADL2_Adapter_AdapterInfo_Get
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000495f
imul r8d, dword [rbp + 0x48], 0x624
mov rdx, rsi
mov rcx, qword [rbp - 0x30]
call rax
mov ebx, eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
call fcn.140007b80
mov rdi, rax
mov qword [rbp - 0x20], rax
test ebx, ebx
jne 0x140004add
mov edx, dword [rbp + 0x48]
lea rcx, str.SetComputeOption:_Number_of_Adapters:__d_r_n
call fcn.140001570
xor r14d, r14d
mov rdi, qword [rbp - 0x20]
cmp dword [rbp + 0x48], r14d
jle 0x140004add
add rsi, 4
movzx ebx, byte [rbp + 0x48]
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rsi + 0x104]
shl ecx, 5
mov eax, dword [rsi + 0x108]
and eax, 0x1f
or ecx, eax
shl ecx, 3
mov eax, dword [rsi + 0x10c]
and eax, 7
or ecx, eax
mov dword [rbp + 0x58], ecx
mov rax, qword [rdi + 8]
mov rdx, rdi
cmp byte [rax + 0x19], 0
jne 0x140004a08
cmp dword [rax + 0x1c], ecx
jge 0x1400049ee
mov rax, qword [rax + 0x10]
jmp 0x1400049f4
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400049e3
cmp rdx, rdi
je 0x140004a08
cmp ecx, dword [rdx + 0x1c]
jge 0x140004ab5
mov byte [rsp + 0x20], bl
lea r9, [rbp + 0x58]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x20]
call fcn.140008350
mov dword [rbp + 0x50], 0
lea rdx, str.ADL2_Blockchain_BlockchainMode_Caps
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004ab1
lea r8, [rbp + 0x50]
mov edx, dword [rsi]
mov rcx, qword [rbp - 0x30]
call rax
test eax, eax
jne 0x140004ab1
cmp dword [rbp + 0x50], eax
je 0x140004a9f
lea rdx, str.ADL2_Blockchain_BlockchainMode_Set
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004a7d
movzx r9d, r13b
xor r9d, 1
mov r8d, 1
mov edx, dword [rsi]
mov rcx, qword [rbp - 0x30]
call rax
test eax, eax
je 0x140004aca
lea rdx, [rsi + 0x114]
mov r8d, dword [rsi + 0x110]
lea rcx, str.Setting_Block_Chain_Mode_is_failed_on_Adapter_:__s_and_Vid_:__x_r_n
call fcn.140001570
mov r12d, 1
jmp 0x140004ab1
lea rcx, str.SetComputeOption:iBlockChain_Mode_Support_is_not_supported_r_n
call fcn.140001570
mov r12d, 2
mov rdi, qword [rbp - 0x20]
inc r14d
add rsi, 0x624
cmp r14d, dword [rbp + 0x48]
jge 0x140004add
jmp 0x1400049b0
xor r12d, r12d
lea rcx, str.SetComputeOption:_Setting_Block_Chain_Mode_is_Successful_r_n
call fcn.140001570
mov rdi, qword [rbp - 0x20]
mov rsi, qword [rdi + 8]
mov rbx, rsi
cmp byte [rsi + 0x19], 0
jne 0x140004b15
nop word [rax + rax]
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x20]
call fcn.140007bb0
mov rbx, qword [rbx]
mov rcx, rsi
call fcn.14000b84c
mov rsi, rbx
cmp byte [rbx + 0x19], 0
je 0x140004af0
mov rdi, qword [rbp - 0x20]
mov qword [rdi + 8], rdi
mov rax, qword [rbp - 0x20]
mov qword [rax], rax
mov rax, qword [rbp - 0x20]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x18], 0
mov rdi, qword [rbp - 0x20]
mov rcx, rdi
call fcn.14000b84c
lea rdx, str.ADL2_Main_Control_Destroy
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004b57
mov rcx, qword [rbp - 0x30]
call rax
lea rcx, str._________END___________
call fcn.140001570
mov eax, r12d
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret