Function at 0x140009590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rax, qword [r9]
xor r13b, r13b
cmp rax, qword [0x140061410]
mov rsi, r9
mov r14, r8
mov r12, rcx
jne 0x1400096e8
mov rax, qword [r9 + 8]
cmp rax, qword [0x140061418]
jne 0x1400096e8
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov ebx, dword [rsp + 0x90]
mov ecx, ebx
call fcn.140012dc4
mov rdi, rax
test rax, rax
je 0x140009b60
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.140013e20
mov rax, qword [r14]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov r9, rdi
mov rcx, r14
mov dword [rsp + 0x20], ebx
xor r8d, r8d
mov rdx, rsi
call qword [rax + 0xf0]
test eax, eax
js 0x1400096db
mov eax, dword [rdi + 4]
and eax, 0xfff000
cmp eax, 0x7e3000
je 0x140009672
mov r9, qword [rsp + 0xa8]
mov rcx, r12
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
or dword [r9], 0x60
mov qword [r9 + 8], rdi
call fcn.140009500
mov rcx, rdi
mov r13b, 1
call fcn.140012dcc
jmp 0x140009b60
movzx eax, word [rdi + 0x80]
lea rdx, str._04d__02d__02d
mov rbx, qword [rsp + 0x98]
mov word [rbx + 0x28], ax
lea rcx, [rbx + 0x14]
mov eax, dword [rdi + 0x20]
mov dword [rbx + 0x30], eax
movzx eax, word [rdi + 0x8c]
mov dword [rbx + 0x2c], eax
movzx eax, word [r12 + 0x1e]
movzx r9d, word [r12 + 0x1a]
movzx r8d, word [r12 + 0x18]
mov dword [rsp + 0x20], eax
call fcn.140007200
lea rcx, [rdi + 0x30]
mov r8d, SQLAllocHandle
mov rdx, rbx
call fcn.140004fb0
mov rax, qword [rsp + 0xa8]
mov r13b, 1
or dword [rax], 0x21
mov rcx, rdi
call fcn.140012dcc
jmp 0x140009b60
mov rax, qword [r9]
cmp rax, qword [0x140061420]
jne 0x14000975f
mov rax, qword [r9 + 8]
cmp rax, qword [0x140061428]
jne 0x14000975f
mov rax, qword [r8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x38]
xor ebx, ebx
mov dword [rsp + 0x20], 8
mov rcx, r14
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x38], rbx
mov rdx, rsi
call qword [rax + 0xf0]
test eax, eax
js 0x140009b60
mov rax, qword [rsp + 0xa8]
mov r13b, 1
mov rcx, qword [rsp + 0xa0]
or dword [rax], 0x28
mov eax, dword [rsp + 0x3c]
mov dword [rcx + 0x10], eax
jmp 0x140009b60
mov rax, qword [r9]
cmp rax, qword [0x140061430]
jne 0x140009b60
mov rax, qword [r9 + 8]
cmp rax, qword [0x140061438]
jne 0x140009b60
mov qword [rsp + 0x70], r15
cmp edx, 0x117
je 0x1400099cc
cmp edx, 0x141
je 0x1400099cc
cmp edx, 0x1b0
je 0x1400097b1
cmp edx, 0x193
jne 0x140009b5b
mov ebp, dword [rsp + 0x90]
xor ebx, ebx
mov ecx, ebp
mov dword [rsp + 0x30], ebx
call fcn.140012dc4
mov rdi, rax
test rax, rax
je 0x140009b5b
mov r8d, ebp
xor edx, edx
mov rcx, rax
call fcn.140013e20
mov rax, qword [r14]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov r9, rdi
mov rcx, r14
mov dword [rsp + 0x20], ebp
xor r8d, r8d
mov rdx, rsi
call qword [rax + 0xf0]
test eax, eax
js 0x140009b53
mov eax, dword [rsp + 0x30]
xor bpl, bpl
add eax, 0xfffffff6
je 0x140009b53
nop dword [rax]
mov r14d, ebx
lea rcx, str.AMD_AddDeviceDiagKpd
lea rsi, [r14 + rdi]
mov rdx, rsi
call fcn.1400396f0
test eax, eax
jne 0x14000983f
mov bpl, 1
jmp 0x140009861
mov rdx, rsi
lea rcx, str.AMD_AddDeviceDiag
call fcn.1400396f0
test eax, eax
je 0x140009861
mov rdx, rsi
lea rcx, str.AMD_StartDeviceDiag
call fcn.1400396f0
cmp byte [rsi], 0x41
jne 0x140009881
lea edx, [rbx + 2]
lea eax, [rdx - 1]
cmp byte [rax + rdi], 0x4d
jne 0x140009881
cmp byte [rdx + rdi], 0x44
jne 0x140009881
lea eax, [rdx + 1]
cmp byte [rax + rdi], 0x30
je 0x140009893
mov eax, dword [rsp + 0x30]
inc ebx
add eax, 0xfffffff6
cmp ebx, eax
jb 0x140009820
jmp 0x140009b53
lea eax, [rbx + 4]
cmp byte [rax + rdi], 0x41
jne 0x1400098d5
lea eax, [rbx + 5]
cmp byte [rax + rdi], 0x4d
jne 0x1400098d5
lea eax, [rbx + 6]
cmp byte [rax + rdi], 0x44
jne 0x1400098d5
lea eax, [rbx + 7]
cmp byte [rax + rdi], 0x31
jne 0x1400098d5
mov r9, qword [rsp + 0xa8]
lea ecx, [rbx + 8]
add rcx, rdi
or dword [r9], 0x140
mov qword [r9 + 8], rcx
jmp 0x140009ad0
test bpl, bpl
je 0x140009948
movzx eax, word [r14 + rdi + 0x36]
lea rdx, str._04d__02d__02d
mov rbx, qword [rsp + 0x98]
mov word [rbx + 0x28], ax
lea rcx, [rbx + 0x14]
mov eax, dword [r14 + rdi + 8]
mov dword [rbx + 0x30], eax
movzx eax, word [r14 + rdi + 0x42]
mov dword [rbx + 0x2c], eax
movzx eax, word [r12 + 0x1e]
movzx r9d, word [r12 + 0x1a]
movzx r8d, word [r12 + 0x18]
mov dword [rsp + 0x20], eax
call fcn.140007200
lea rcx, [rdi + 0x54]
mov r8d, SQLAllocHandle
add rcx, r14
mov rdx, rbx
call fcn.140004fb0
mov rax, qword [rsp + 0xa8]
or dword [rax], 0x11
jmp 0x140009b50
mov eax, dword [rsp + 0x30]
sub eax, ebx
mov rbx, qword [rsp + 0x98]
cmp eax, 0x402b4
jbe 0x14000998e
movzx eax, word [r14 + rdi + 0x40246]
lea rcx, [rdi + 0x40264]
mov word [rbx + 0x28], ax
add rcx, r14
movzx eax, word [r14 + rdi + 0x40252]
mov r8d, SQLAllocHandle
mov rdx, rbx
mov dword [rbx + 0x2c], eax
call fcn.140004fb0
mov eax, dword [r14 + rdi + 8]
lea rcx, [rbx + 0x14]
mov dword [rbx + 0x30], eax
lea rdx, str._04d__02d__02d
movzx eax, word [r12 + 0x1e]
movzx r9d, word [r12 + 0x1a]
movzx r8d, word [r12 + 0x18]
mov dword [rsp + 0x20], eax
call fcn.140007200
mov rax, qword [rsp + 0xa8]
or dword [rax], 0x11
jmp 0x140009b50
mov ebp, dword [rsp + 0x90]
xor ebx, ebx
mov ecx, ebp
mov dword [rsp + 0x30], ebx
call fcn.140012dc4
mov rdi, rax
test rax, rax
je 0x140009b5b
mov r8d, ebp
xor edx, edx
mov rcx, rax
call fcn.140013e20
mov rax, qword [r14]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov r9, rdi
mov rcx, r14
mov dword [rsp + 0x20], ebp
xor r8d, r8d
mov rdx, rsi
call qword [rax + 0xf0]
test eax, eax
js 0x140009b53
mov r9d, dword [rsp + 0x30]
add r9d, 0xfffffff6
je 0x140009b53
lea edx, [rbx + 2]
mov r8, rdi
nop dword [rax]
cmp byte [r8], 0x41
jne 0x140009a84
lea eax, [rdx - 1]
cmp byte [rax + rdi], 0x4d
jne 0x140009a84
mov eax, edx
cmp byte [rax + rdi], 0x44
jne 0x140009a84
lea eax, [rdx + 1]
cmp byte [rax + rdi], 0x30
jne 0x140009a84
lea eax, [rdx + 2]
cmp byte [rax + rdi], 0x41
jne 0x140009a84
lea eax, [rdx + 3]
cmp byte [rax + rdi], 0x4d
jne 0x140009a84
lea eax, [rdx + 4]
cmp byte [rax + rdi], 0x44
jne 0x140009a84
lea eax, [rdx + 5]
cmp byte [rax + rdi], 0x31
je 0x140009a95
inc ebx
inc edx
inc r8
cmp ebx, r9d
jb 0x140009a40
jmp 0x140009b53
mov esi, ebx
add rsi, rdi
je 0x140009b53
mov r8, qword [rsp + 0xa8]
mov eax, dword [rsi + 0xc]
and eax, 0xfff000
mov edx, dword [r8]
cmp eax, 0x7e3000
je 0x140009aea
lea ecx, [rbx + 8]
mov r9, r8
add rcx, rdi
or edx, 0xc0
mov qword [r8 + 8], rcx
mov dword [r8], edx
mov r8, qword [rsp + 0xa0]
mov rcx, r12
mov rdx, qword [rsp + 0x98]
call fcn.140009500
jmp 0x140009b50
test dl, 1
jne 0x140009b50
mov rbx, qword [rsp + 0x98]
or edx, 0x11
mov dword [r8], edx
lea rdx, str._04d__02d__02d
movzx eax, word [rsi + 0x88]
mov word [rbx + 0x28], ax
lea rcx, [rbx + 0x14]
mov eax, dword [rsi + 0x28]
mov dword [rbx + 0x30], eax
movzx eax, word [rsi + 0x94]
mov dword [rbx + 0x2c], eax
movzx eax, word [r12 + 0x1e]
movzx r9d, word [r12 + 0x1a]
movzx r8d, word [r12 + 0x18]
mov dword [rsp + 0x20], eax
call fcn.140007200
lea rcx, [rsi + 0x38]
mov r8d, SQLAllocHandle
mov rdx, rbx
call fcn.140004fb0
mov r13b, 1
mov rcx, rdi
call fcn.140012dcc
mov r15, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
movzx eax, r13b
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret