Function at 0x1400083f0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push rbx
push r14
lea rbp, [rax - 0x4a8]
sub rsp, 0x590
mov rbx, qword [0x140089e58]
mov r14, rcx
test rbx, rbx
je 0x140008a5c
cmp byte [rcx + 0x6738], 0
je 0x140008a5c
cmp dword [rcx + 0x48], 0
jne 0x140008a5c
mov qword [rax + 8], rsi
lea rcx, [rbp + 0x30]
xor edx, edx
mov qword [rax - 0x20], rdi
mov r8d, pe_nt_image_headers64
call fcn.140016d00
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.140015b1c
xor esi, esi
test rax, rax
je 0x1400084b9
mov qword [rax], rbx
mov ecx, ebx
lea r9, [rax + 8]
test edi, edi
je 0x1400084bc
lea rax, [r9 + 0x3a8]
nop word [rax + rax]
mov qword [rax - 0x10], rsi
mov qword [rax - 8], rsi
mov dword [rax], esi
lea rax, [rax + 0x3b0]
sub rcx, 1
jne 0x1400084a0
jmp 0x1400084bc
mov r9, rsi
mov qword [r14 + 0x50], r9
test edi, edi
je 0x140008a49
test r9, r9
je 0x140008a49
mov qword [rsp + 0x580], r12
xor edx, edx
imul r8, rbx, 0x3b0
mov qword [rsp + 0x578], r13
mov rcx, r9
mov qword [rsp + 0x570], r15
call fcn.140016d00
mov ebx, esi
lea r15, [rbp + 0x30]
mov dword [rbp + 0x4c0], ebx
mov r13d, esi
mov qword [rsp + 0x30], r15
nop
mov rdx, qword [r15]
lea r8, [rbp + 0x130]
mov rcx, qword [0x140089e58]
call sym.amdfendrsr.exe_amdlogumlib_get_driver_info
mov r12d, eax
test eax, eax
je 0x140008540
mov edx, ebx
lea rcx, str.Failed_to_get_DRIVER_info___d___n
call fcn.14000d440
jmp 0x1400089f5
mov eax, dword [rbp + 0x130]
cmp eax, 1
je 0x140008557
add eax, 0xfffffffa
cmp eax, 1
ja 0x1400089f5
cmp dword [rbp + 0x348], 1
jne 0x1400089f5
mov rcx, qword [r14 + 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 0x140008590
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 [r15]
mov rcx, qword [r14 + 0x50]
mov qword [rdi + rcx], rax
mov eax, dword [rbp + 0x370]
test eax, eax
je 0x1400086a2
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.140015b1c
test rax, rax
je 0x14000866e
mov qword [rax], rbx
lea rcx, [rax + 8]
test rbx, rbx
je 0x140008671
lea rax, [rcx + 0x1d0]
mov qword [rax - 0x10], rsi
mov qword [rax - 8], rsi
mov dword [rax], esi
lea rax, [rax + 0x230]
sub rbx, 1
jne 0x140008655
jmp 0x140008671
mov rcx, rsi
mov rax, qword [r14 + 0x50]
mov qword [rdi + rax + 0x340], rcx
mov rax, qword [r14 + 0x50]
mov rcx, qword [rdi + rax + 0x340]
test rcx, rcx
je 0x1400086a2
mov eax, dword [rbp + 0x370]
xor edx, edx
imul r8, rax, 0x230
call fcn.140016d00
mov rax, qword [r14 + 0x50]
lea rcx, [rbp + 0x234]
add rax, 0x348
mov edx, 0x2d
add rax, rdi
mov qword [rsp + 0x40], rax
call fcn.14001708c
mov rbx, rax
test rax, rax
je 0x14000870d
mov edx, 0x2d
lea rcx, [rax + 1]
call fcn.14001708c
mov r9, rax
test rax, rax
je 0x14000870d
mov rcx, qword [rsp + 0x40]
lea rdx, [rbx + 1]
mov r8, rax
sub r9, rbx
sub r8, rbx
mov eax, SQLAllocHandle
cmp r8, rax
cmovle rax, r9
lea r8, [rax - 1]
mov r8d, r8d
call fcn.140017350
cmp dword [rbp + 0x370], 0
mov edi, esi
jbe 0x1400089e8
mov eax, r13d
imul r9, rax, 0x76
mov qword [rsp + 0x40], r9
nop dword [rax + rax]
mov r8, qword [r14 + 0x50]
mov rax, qword [rsp + 0x48]
mov edx, edi
imul rcx, rdx, 0x230
mov rbx, qword [rax + r8 + 0x340]
lea rax, [rdx + r9]
mov r8, qword [r8 + rax*8 + 0x24c]
lea r15, [rax*8]
mov rax, qword [rsp + 0x30]
add rbx, rcx
cmp dword [r14 + 0x10], 0x60001
mov rcx, qword [0x140089e58]
mov rdx, qword [rax]
jb 0x14000880d
lea r9, [rsp + 0x50]
call sym.amdfendrsr.exe_amdlogumlib_get_device_info2
mov r12d, eax
test eax, eax
je 0x1400087a6
mov r8d, edi
lea rcx, str.Failed_to_get_DEVICE_info___d___d___n
mov edx, r13d
call fcn.14000d440
jmp 0x1400089d0
cmp dword [rsp + 0x7c], 0x20
je 0x1400089d0
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 0x140008867
lea r9, [rsp + 0x50]
call sym.amdfendrsr.exe_amdlogumlib_get_device_info
mov r12d, eax
test eax, eax
jne 0x14000878f
cmp dword [rsp + 0x7c], 0x20
je 0x1400089d0
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]
lea rdx, [rbx + 0x98]
movzx eax, cl
cmp ecx, 0xff
mov r8d, pe_nt_image_headers64
cmovbe eax, ecx
mov dword [rbx + 0x20c], eax
mov rax, qword [r14 + 0x50]
mov rcx, qword [rax + r15 + 0x24c]
mov qword [rbx + 0x210], rcx
lea rcx, [rbx + 0x10]
call fcn.14000d150
test al, al
je 0x1400089d0
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 8]
call fcn.14000aa70
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], rsi
lea r8, [0x140004a10]
mov qword [rbx + 0x228], rax
mov edx, 8
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov dword [rbp + 0x4b8], esi
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, esi
mov eax, ecx
mov dword [rbp + 0x4b8], ecx
shr eax, 3
and al, 1
mov byte [rbx + 0x198], al
test byte [r14 + 0x24], 4
movzx eax, al
cmovne eax, esi
shr ecx, 4
and cl, 1
mov byte [rbx + 0x198], al
mov byte [rbx + 0x199], cl
je 0x1400089d0
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 0x140008730
mov r15, qword [rsp + 0x30]
mov ebx, dword [rbp + 0x4c0]
inc r13d
mov edi, dword [rsp + 0x38]
inc ebx
add r15, 8
mov dword [rbp + 0x4c0], ebx
mov qword [rsp + 0x30], r15
cmp ebx, edi
jb 0x140008510
mov r15, qword [rsp + 0x570]
mov eax, r12d
mov r12, qword [rsp + 0x580]
mov dword [r14 + 0x48], r13d
mov r13, qword [rsp + 0x578]
mov rsi, qword [rsp + 0x5b0]
mov rdi, qword [rsp + 0x588]
add rsp, 0x590
pop r14
pop rbx
pop rbp
ret
lea rcx, str.Failed_to_fetch_drivers__n
call fcn.14000d440
mov eax, 8
jmp 0x140008a2d
mov eax, 8
add rsp, 0x590
pop r14
pop rbx
pop rbp
ret