Function at 0x1400013e0
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x14014e110]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor ebx, ebx
mov byte [0x140158b36], 0
mov dword [0x140158b3c], ebx
call fcn.14002e3a0
test eax, eax
je 0x140001447
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14002deb0
cmp byte [0x140158b36], bl
je 0x140001440
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_Initialize_Error:__s_n
call fcn.140001260
xor al, al
jmp 0x1400017ee
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.14002e450
test eax, eax
je 0x140001485
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14002deb0
cmp byte [0x140158b36], bl
je 0x140001440
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_SYS_GetDriverAndBranchVersion_Error:__s_n
call fcn.140001260
xor al, al
jmp 0x1400017ee
cmp byte [0x140158b36], bl
je 0x1400014c7
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.140001260
cmp byte [0x140158b36], bl
je 0x1400014c7
lea rdx, [rbp - 0x80]
lea rcx, str.NVIDIA_driver_branch__:__s_n
call fcn.140001260
lea rcx, [rbp - 0x40]
call fcn.14002df70
test eax, eax
je 0x140001504
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14002deb0
cmp byte [0x140158b36], bl
je 0x140001440
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_GetInterfaceVersion_Error:__s_n
call fcn.140001260
xor al, al
jmp 0x1400017ee
cmp byte [0x140158b36], bl
mov qword [rsp + 0x2f0], rsi
mov qword [rsp + 0x2f8], rdi
mov qword [rsp + 0x300], r14
je 0x140001548
lea rdx, [rbp - 0x40]
lea rcx, str.NvAPI_InterfaceVersion:__s_n
call fcn.140001260
cmp byte [0x140158b36], bl
je 0x140001548
lea rcx, [0x140128404]
call fcn.140001260
call fcn.1400012c0
mov edi, ebx
lea rsi, [0x140159340]
cmp edi, 0x80
jge 0x14000157c
movsxd rax, edi
mov ecx, edi
lea rdx, [rsi + rax*8]
call fcn.14002d9a0
test eax, eax
jne 0x140001576
inc dword [0x140158b3c]
inc edi
test eax, eax
je 0x140001556
cmp dword [0x140158b3c], ebx
lea rcx, str._nnvDisplayCount__0_n
je 0x140001592
lea rcx, str._nnvDisplayCount___0_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140158b3c]
lea r14, [0x140000000]
mov edi, ebx
test eax, eax
je 0x1400015e5
nop dword [rax + rax]
mov eax, edi
lea r8, [r14 + 0x159140]
lea rdx, [r14 + 0x158b40]
mov rcx, qword [rsi + rax*8]
lea r8, [r8 + rax*4]
lea rdx, [rdx + rax*8]
call fcn.14002e040
test eax, eax
jne 0x1400016bf
mov eax, dword [0x140158b3c]
inc edi
cmp edi, eax
jb 0x1400015b0
mov edi, ebx
test eax, eax
je 0x1400017ca
nop
mov ecx, edi
lea rdx, [r14 + 0x158f40]
lea rdx, [rdx + rcx*4]
mov rcx, qword [rsi + rcx*8]
call fcn.14002dc40
test eax, eax
jne 0x1400016eb
mov eax, dword [0x140158b3c]
inc edi
cmp edi, eax
jb 0x1400015f0
test eax, eax
jle 0x1400017ca
mov qword [rsp + 0x2d0], r15
mov r15d, 0x100
mov ecx, ebx
call fcn.140001a20
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.140001b00
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.140001b00
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.14002dd10
test eax, eax
je 0x140001717
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14002deb0
cmp byte [0x140158b36], 0
je 0x1400017b0
lea r8, [rsp + 0x40]
mov edx, ebx
lea rcx, str.NvAPI_GetAssociatedNvidiaDisplayName___d__Error:__s_n
call fcn.140001260
jmp 0x1400017b0
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14002deb0
cmp byte [0x140158b36], bl
je 0x140001710
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_EnumNvidiaDisplayHandle_Error:__s_n
call fcn.140001260
xor al, al
jmp 0x1400017d6
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14002deb0
cmp byte [0x140158b36], bl
je 0x140001710
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_GetAssociatedDisplayOutputId_Error:__s_n
call fcn.140001260
xor al, al
jmp 0x1400017d6
cmp byte [0x140158b36], 0
je 0x1400017b0
mov edx, ebx
lea rcx, str.Display_Nr__d:_n
call fcn.140001260
cmp byte [0x140158b36], 0
je 0x1400017b0
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.140001260
cmp byte [0x140158b36], 0
je 0x1400017b0
movzx edx, di
lea rcx, str.__Product_ID:__04X_n
call fcn.140001260
cmp byte [0x140158b36], 0
je 0x1400017b0
lea rdx, [rbp]
lea rcx, str.__Name______:__s_n
call fcn.140001260
inc ebx
add rsi, 8
cmp ebx, dword [0x140158b3c]
jl 0x140001630
mov r15, qword [rsp + 0x2d0]
mov dword [0x140158b38], 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.1400ab460
add rsp, 0x2d8
pop rbx
pop rbp
ret