Function at 0x140001250
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x14009a110]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor ebx, ebx
mov byte [0x1400a0464], 0
mov dword [0x1400a0468], ebx
call fcn.140029670
test eax, eax
je 0x1400012b7
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140029180
cmp byte [0x1400a0464], bl
je 0x1400012b0
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_Initialize_Error:__s_n
call fcn.1400010d0
xor al, al
jmp 0x14000165e
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140029720
test eax, eax
je 0x1400012f5
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140029180
cmp byte [0x1400a0464], bl
je 0x1400012b0
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_SYS_GetDriverAndBranchVersion_Error:__s_n
call fcn.1400010d0
xor al, al
jmp 0x14000165e
cmp byte [0x1400a0464], bl
je 0x140001337
mov r8d, dword [rsp + 0x38]
lea rcx, str.NVIDIA_driver_version_:__d._d_n
mov eax, 0x51eb851f
mul r8d
shr edx, 5
imul eax, edx, 0x64
sub r8d, eax
call fcn.1400010d0
cmp byte [0x1400a0464], bl
je 0x140001337
lea rdx, [rbp - 0x80]
lea rcx, str.NVIDIA_driver_branch__:__s_n
call fcn.1400010d0
lea rcx, [rbp - 0x40]
call fcn.140029240
test eax, eax
je 0x140001374
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140029180
cmp byte [0x1400a0464], bl
je 0x1400012b0
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_GetInterfaceVersion_Error:__s_n
call fcn.1400010d0
xor al, al
jmp 0x14000165e
cmp byte [0x1400a0464], bl
mov qword [rsp + 0x2f0], rsi
mov qword [rsp + 0x2f8], rdi
mov qword [rsp + 0x300], r14
je 0x1400013b8
lea rdx, [rbp - 0x40]
lea rcx, str.NvAPI_InterfaceVersion:__s_n
call fcn.1400010d0
cmp byte [0x1400a0464], bl
je 0x1400013b8
lea rcx, [0x14008343c]
call fcn.1400010d0
call fcn.140001130
mov edi, ebx
lea rsi, [0x1400a0c70]
cmp edi, 0x80
jge 0x1400013ec
movsxd rax, edi
mov ecx, edi
lea rdx, [rsi + rax*8]
call fcn.140028c70
test eax, eax
jne 0x1400013e6
inc dword [0x1400a0468]
inc edi
test eax, eax
je 0x1400013c6
cmp dword [0x1400a0468], ebx
lea rcx, str._nnvDisplayCount__0_n
je 0x140001402
lea rcx, str._nnvDisplayCount___0_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400a0468]
lea r14, [0x140000000]
mov edi, ebx
test eax, eax
je 0x140001455
nop dword [rax + rax]
mov eax, edi
lea r8, [r14 + 0xa0a70]
lea rdx, [r14 + 0xa0470]
mov rcx, qword [rsi + rax*8]
lea r8, [r8 + rax*4]
lea rdx, [rdx + rax*8]
call fcn.140029310
test eax, eax
jne 0x14000152f
mov eax, dword [0x1400a0468]
inc edi
cmp edi, eax
jb 0x140001420
mov edi, ebx
test eax, eax
je 0x14000163a
nop
mov ecx, edi
lea rdx, [r14 + 0xa0870]
lea rdx, [rdx + rcx*4]
mov rcx, qword [rsi + rcx*8]
call fcn.140028f10
test eax, eax
jne 0x14000155b
mov eax, dword [0x1400a0468]
inc edi
cmp edi, eax
jb 0x140001460
test eax, eax
jle 0x14000163a
mov qword [rsp + 0x2d0], r15
mov r15d, 0x100
mov ecx, ebx
call fcn.140001750
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.1400019c0
movzx r14d, byte [rbp + 0x49]
lea rdx, [rsp + 0x34]
movzx eax, byte [rbp + 0x48]
movzx ecx, r15w
imul r14d, ecx
lea rcx, [rbp + 0x40]
add r14w, ax
call fcn.1400019c0
movzx eax, byte [rbp + 0x4a]
lea rdx, [rbp]
movzx edi, byte [rbp + 0x4b]
movzx ecx, r15w
imul edi, ecx
mov rcx, qword [rsi]
add di, ax
call fcn.140028fe0
test eax, eax
je 0x140001587
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140029180
cmp byte [0x1400a0464], 0
je 0x140001620
lea r8, [rsp + 0x40]
mov edx, ebx
lea rcx, str.NvAPI_GetAssociatedNvidiaDisplayName___d__Error:__s_n
call fcn.1400010d0
jmp 0x140001620
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140029180
cmp byte [0x1400a0464], bl
je 0x140001580
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_EnumNvidiaDisplayHandle_Error:__s_n
call fcn.1400010d0
xor al, al
jmp 0x140001646
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140029180
cmp byte [0x1400a0464], bl
je 0x140001580
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_GetAssociatedDisplayOutputId_Error:__s_n
call fcn.1400010d0
xor al, al
jmp 0x140001646
cmp byte [0x1400a0464], 0
je 0x140001620
mov edx, ebx
lea rcx, str.Display_Nr__d:_n
call fcn.1400010d0
cmp byte [0x1400a0464], 0
je 0x140001620
movzx edx, r14w
mov ecx, edx
mov r9d, edx
shr ecx, 8
mov eax, edx
and ecx, 0x1f
shr r9d, 0xd
add ecx, 0x40
mov r8d, edx
shr r8d, 2
and eax, 3
add r9d, 0x40
shl eax, 3
and r8d, 0x1f
mov dword [rsp + 0x20], ecx
lea rcx, str.__Vendor__ID:__04X___c_c_c__n
or r9d, eax
add r8d, 0x40
call fcn.1400010d0
cmp byte [0x1400a0464], 0
je 0x140001620
movzx edx, di
lea rcx, str.__Product_ID:__04X_n
call fcn.1400010d0
cmp byte [0x1400a0464], 0
je 0x140001620
lea rdx, [rbp]
lea rcx, str.__Name______:__s_n
call fcn.1400010d0
inc ebx
add rsi, 8
cmp ebx, dword [0x1400a0468]
jl 0x1400014a0
mov r15, qword [rsp + 0x2d0]
mov dword [0x1400a046c], 3
mov al, 1
mov rdi, qword [rsp + 0x2f8]
mov rsi, qword [rsp + 0x2f0]
mov r14, qword [rsp + 0x300]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14006f2e0
add rsp, 0x2d8
pop rbx
pop rbp
ret