Function at 0x1400127d0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor r9d, r9d
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x140012a08
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x140012a08
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x28], rax
test rax, rax
je 0x140012a08
xor edx, edx
lea rcx, str.atiadlxx.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rbx + 0x30], rax
test rax, rax
je 0x140012a08
lea rdx, str.ADL_Main_Control_Create
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.ADL_Main_Control_Destroy
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.ADL_Adapter_NumberOfAdapters_Get
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.ADL_Adapter_AdapterInfo_Get
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.ADL2_Adapter_PMLog_Support_Get
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.ADL2_Adapter_PMLog_Start
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.ADL2_Adapter_PMLog_Stop
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.ADL2_Device_PMLog_Device_Create
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x30]
lea rdx, str.ADL2_Device_PMLog_Device_Destroy
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, qword [rbx + 0x38]
mov qword [rbx + 0x78], rax
test rdi, rdi
je 0x140012a08
cmp qword [rbx + 0x40], 0
je 0x140012a08
cmp qword [rbx + 0x48], 0
je 0x140012a08
cmp qword [rbx + 0x50], 0
je 0x140012a08
cmp qword [rbx + 0x58], 0
je 0x140012a08
cmp qword [rbx + 0x60], 0
je 0x140012a08
cmp qword [rbx + 0x68], 0
je 0x140012a08
cmp qword [rbx + 0x70], 0
je 0x140012a08
test rax, rax
je 0x140012a08
mov edx, 1
lea rcx, [0x140012d90]
call rdi
test eax, eax
jne 0x140012a08
mov rax, qword [rbx + 0x48]
lea rcx, [rbx + 4]
call rax
test eax, eax
jne 0x140012a08
movsxd rax, dword [rbx + 4]
cmp eax, 5
jl 0x140012a08
mov rcx, rax
mov eax, 0x624
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400354a4
mov qword [rbx + 0x80], rax
test rax, rax
je 0x140012a08
movsxd rcx, dword [rbx + 4]
mov rdi, rax
imul rcx, rcx, 0x624
xor eax, eax
rep stosb byte [rdi], al
imul edx, dword [rbx + 4], 0x624
mov rcx, qword [rbx + 0x80]
call qword [rbx + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret