Function at 0x1400084a0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push rbx
push r15
lea rbp, [rax - 0x4a8]
sub rsp, 0x590
mov rbx, qword [0x140089e58]
mov r15, rcx
test rbx, rbx
je 0x140008b01
cmp byte [rcx + 0x6738], 0
je 0x140008b01
cmp dword [rcx + 0x48], 0
jne 0x140008b01
mov qword [rax - 0x20], rdi
lea rcx, [rbp + 0x30]
xor edx, edx
mov qword [rax - 0x38], r14
mov r8d, 0x100
call fcn.140016dc0
lea rdx, [rbp + 0x30]
mov rcx, rbx
call sym.amdfendrsr.exe_amdlogumlib_get_driver_list
mov edi, eax
mov rcx, 0xffffffffffffffff
mov ebx, eax
mov eax, 0x3b0
mul rdi
mov dword [rsp + 0x38], edi
cmovo rax, rcx
add rax, 8
cmovb rax, rcx
mov rcx, rax
call fcn.140015bbc
xor r14d, r14d
test rax, rax
je 0x14000856a
mov qword [rax], rbx
mov ecx, ebx
lea r9, [rax + 8]
test edi, edi
je 0x14000856d
lea rax, [r9 + 0x3a8]
nop dword [rax + rax]
mov qword [rax - 0x10], r14
mov qword [rax - 8], r14
mov dword [rax], r14d
lea rax, [rax + 0x3b0]
sub rcx, 1
jne 0x140008550
jmp 0x14000856d
mov r9, r14
mov qword [r15 + 0x50], r9
test edi, edi
je 0x140008aee
test r9, r9
je 0x140008aee
mov qword [rsp + 0x5b0], rsi
xor edx, edx
imul r8, rbx, 0x3b0
mov qword [rsp + 0x580], r12
mov rcx, r9
mov qword [rsp + 0x578], r13
call fcn.140016dc0
mov ebx, r14d
lea rsi, [rbp + 0x30]
mov dword [rbp + 0x4c0], ebx
mov r13d, r14d
mov qword [rsp + 0x30], rsi
mov rdx, qword [rsi]
lea r8, [rbp + 0x130]
mov rcx, qword [0x140089e58]
call sym.amdfendrsr.exe_amdlogumlib_get_driver_info
mov r12d, eax
test eax, eax
je 0x1400085f0
mov edx, ebx
lea rcx, str.Failed_to_get_DRIVER_info___d___n
call fcn.14000d4e0
jmp 0x140008a9a
mov eax, dword [rbp + 0x130]
cmp eax, 1
je 0x140008607
add eax, 0xfffffffa
cmp eax, 1
ja 0x140008a9a
cmp dword [rbp + 0x348], 1
jne 0x140008a9a
mov rcx, qword [r15 + 0x50]
mov edx, 6
mov eax, r13d
add rcx, 8
imul rdi, rax, 0x3b0
lea rax, [rbp + 0x130]
mov qword [rsp + 0x48], rdi
add rcx, rdi
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140008640
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
mov eax, dword [rax + 0x30]
mov dword [rcx + 0x30], eax
mov rax, qword [rsi]
mov rcx, qword [r15 + 0x50]
mov qword [rdi + rcx], rax
mov eax, dword [rbp + 0x370]
test eax, eax
je 0x140008753
mov ebx, eax
mov rcx, 0xffffffffffffffff
mov eax, 0x230
mul rbx
cmovo rax, rcx
add rax, 8
cmovb rax, rcx
mov rcx, rax
call fcn.140015bbc
test rax, rax
je 0x14000871f
mov qword [rax], rbx
lea rcx, [rax + 8]
test rbx, rbx
je 0x140008722
lea rax, [rcx + 0x1d0]
mov qword [rax - 0x10], r14
mov qword [rax - 8], r14
mov dword [rax], r14d
lea rax, [rax + 0x230]
sub rbx, 1
jne 0x140008705
jmp 0x140008722
mov rcx, r14
mov rax, qword [r15 + 0x50]
mov qword [rdi + rax + 0x340], rcx
mov rax, qword [r15 + 0x50]
mov rcx, qword [rdi + rax + 0x340]
test rcx, rcx
je 0x140008753
mov eax, dword [rbp + 0x370]
xor edx, edx
imul r8, rax, 0x230
call fcn.140016dc0
mov rax, qword [r15 + 0x50]
lea rcx, [rbp + 0x234]
add rax, 0x348
mov edx, 0x2d
add rax, rdi
mov qword [rsp + 0x40], rax
call fcn.140017340
mov rbx, rax
test rax, rax
je 0x1400087b8
mov edx, 0x2d
lea rcx, [rax + 1]
call fcn.140017340
mov r8, rax
test rax, rax
je 0x1400087b8
mov rcx, qword [rsp + 0x40]
lea rdx, [rbx + 1]
sub r8, rbx
mov eax, SQLAllocHandle
cmp r8, rax
cmovle rax, r8
lea r8, [rax - 1]
mov r8d, r8d
call fcn.1400175f0
cmp dword [rbp + 0x370], 0
mov edi, r14d
jbe 0x140008a8d
mov eax, r13d
imul r9, rax, 0x76
mov qword [rsp + 0x40], r9
mov r8, qword [r15 + 0x50]
mov rax, qword [rsp + 0x48]
mov edx, edi
imul rcx, rdx, 0x230
mov rbx, qword [r8 + rax + 0x340]
lea rsi, [rdx + r9]
mov rax, qword [rsp + 0x30]
add rbx, rcx
cmp dword [r15 + 0x10], 0x60001
mov r8, qword [r8 + rsi*8 + 0x24c]
mov rcx, qword [0x140089e58]
mov rdx, qword [rax]
jb 0x1400088a9
lea r9, [rsp + 0x50]
call sym.amdfendrsr.exe_amdlogumlib_get_device_info2
mov r12d, eax
test eax, eax
je 0x140008842
mov r8d, edi
lea rcx, str.Failed_to_get_DEVICE_info___d___d___n
mov edx, r13d
call fcn.14000d4e0
jmp 0x140008a75
cmp dword [rsp + 0x7c], 0x20
je 0x140008a75
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x10], xmm1
movaps xmm1, xmmword [rbp - 0x80]
movups xmmword [rbx + 0x20], xmm0
movaps xmm0, xmmword [rbp - 0x70]
movups xmmword [rbx + 0x30], xmm1
movaps xmm1, xmmword [rbp - 0x60]
movups xmmword [rbx + 0x40], xmm0
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rbx + 0x50], xmm1
movaps xmm1, xmmword [rbp - 0x40]
movups xmmword [rbx + 0x60], xmm0
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rbx + 0x70], xmm1
movsd xmm1, qword [rbp - 0x20]
movups xmmword [rbx + 0x80], xmm0
movsd qword [rbx + 0x90], xmm1
jmp 0x140008903
lea r9, [rsp + 0x50]
call sym.amdfendrsr.exe_amdlogumlib_get_device_info
mov r12d, eax
test eax, eax
jne 0x14000882b
cmp dword [rsp + 0x7c], 0x20
je 0x140008a75
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
mov eax, dword [rbp - 0x58]
movups xmmword [rbx], xmm0
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x10], xmm1
movaps xmm1, xmmword [rbp - 0x80]
movups xmmword [rbx + 0x20], xmm0
movaps xmm0, xmmword [rbp - 0x70]
movups xmmword [rbx + 0x30], xmm1
movsd xmm1, qword [rbp - 0x60]
movups xmmword [rbx + 0x40], xmm0
movsd qword [rbx + 0x50], xmm1
mov dword [rbx + 0x58], eax
mov ecx, dword [rbx + 0x1c]
mov edx, 0x210
movzx eax, cl
cmp ecx, 0xff
mov r8d, 0x100
cmovbe eax, ecx
mov dword [rbx + 0x20c], eax
mov rax, qword [r15 + 0x50]
mov rcx, qword [rax + rsi*8 + 0x24c]
mov rax, rbx
mov qword [rdx + rbx], rcx
lea rcx, [rbx + 0x10]
lea rdx, [rbx + 0x98]
call fcn.14000d1f0
test al, al
je 0x140008a75
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 8]
call fcn.14000ab30
xor r9d, r9d
lea rcx, [rbp - 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
xor r9d, r9d
lea rcx, [rbp - 0x10]
xor r8d, r8d
mov qword [rbx + 0x220], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov r9, rbx
mov qword [rsp + 0x28], r14
lea r8, [0x140004a30]
mov qword [rbx + 0x228], rax
mov edx, 8
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov dword [rbp + 0x4b8], r14d
mov qword [rbx + 0x218], rax
lea r8, str.KMD_EnableAmdFendrOptions
lea rax, [rbp + 0x4c8]
mov dword [rbp + 0x4c8], 4
mov qword [rsp + 0x28], rax
lea rdx, [rbx + 0x98]
lea rax, [rbp + 0x4b8]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call fcn.1400025e0
mov ecx, dword [rbp + 0x4b8]
test eax, eax
cmove ecx, r14d
mov eax, ecx
mov dword [rbp + 0x4b8], ecx
shr eax, 3
and al, 1
mov byte [rbx + 0x198], al
test byte [r15 + 0x24], 4
movzx eax, al
cmovne eax, r14d
shr ecx, 4
and cl, 1
mov byte [rbx + 0x198], al
mov byte [rbx + 0x199], cl
je 0x140008a75
lea rax, [0x140089e34]
mov dword [rsp + 0x28], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, str.Last_AmdlogSr_BrtLaunchEnable
mov dword [0x140089e34], 1
lea rdx, str.SoftwareAMDLOG
mov rcx, 0xffffffff80000002
call fcn.140002a90
mov r9, qword [rsp + 0x40]
inc edi
cmp edi, dword [rbp + 0x370]
jb 0x1400087d4
mov rsi, qword [rsp + 0x30]
mov ebx, dword [rbp + 0x4c0]
inc r13d
mov edi, dword [rsp + 0x38]
inc ebx
add rsi, 8
mov dword [rbp + 0x4c0], ebx
mov qword [rsp + 0x30], rsi
cmp ebx, edi
jb 0x1400085c0
mov rsi, qword [rsp + 0x5b0]
mov eax, r12d
mov r12, qword [rsp + 0x580]
mov dword [r15 + 0x48], r13d
mov r13, qword [rsp + 0x578]
mov rdi, qword [rsp + 0x588]
mov r14, qword [rsp + 0x570]
add rsp, 0x590
pop r15
pop rbx
pop rbp
ret
lea rcx, str.Failed_to_fetch_drivers__n
call fcn.14000d4e0
mov eax, 8
jmp 0x140008ad2
mov eax, 8
add rsp, 0x590
pop r15
pop rbx
pop rbp
ret