Function at 0x140001120
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x1d8]
sub rsp, 0x2d8
mov rax, qword [0x140092110]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor ebx, ebx
mov byte [0x1400980e4], 0
mov dword [0x1400980e8], ebx
call fcn.140023f40
test eax, eax
je 0x140001187
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140023b30
cmp byte [0x1400980e4], bl
je 0x140001180
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_Initialize_Error:__s_n
call fcn.1400010c0
xor al, al
jmp 0x14000152e
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x38]
call fcn.140023ff0
test eax, eax
je 0x1400011c5
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140023b30
cmp byte [0x1400980e4], bl
je 0x140001180
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_SYS_GetDriverAndBranchVersion_Error:__s_n
call fcn.1400010c0
xor al, al
jmp 0x14000152e
cmp byte [0x1400980e4], bl
je 0x140001207
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.1400010c0
cmp byte [0x1400980e4], bl
je 0x140001207
lea rdx, [rbp - 0x80]
lea rcx, str.NVIDIA_driver_branch__:__s_n
call fcn.1400010c0
lea rcx, [rbp - 0x40]
call fcn.140023bf0
test eax, eax
je 0x140001244
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140023b30
cmp byte [0x1400980e4], bl
je 0x140001180
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_GetInterfaceVersion_Error:__s_n
call fcn.1400010c0
xor al, al
jmp 0x14000152e
cmp byte [0x1400980e4], bl
mov qword [rsp + 0x2f0], rsi
mov qword [rsp + 0x2f8], rdi
mov qword [rsp + 0x300], r14
je 0x140001288
lea rdx, [rbp - 0x40]
lea rcx, str.NvAPI_InterfaceVersion:__s_n
call fcn.1400010c0
cmp byte [0x1400980e4], bl
je 0x140001288
lea rcx, [0x14007d324]
call fcn.1400010c0
mov edi, ebx
lea rsi, [0x1400988f0]
cmp edi, 0x80
jge 0x1400012b7
movsxd rax, edi
mov ecx, edi
lea rdx, [rsi + rax*8]
call fcn.140023620
test eax, eax
jne 0x1400012b1
inc dword [0x1400980e8]
inc edi
test eax, eax
je 0x140001291
cmp dword [0x1400980e8], ebx
lea rcx, str._nnvDisplayCount__0_n
je 0x1400012cd
lea rcx, str._nnvDisplayCount___0_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400980e8]
lea r14, [0x140000000]
mov edi, ebx
test eax, eax
je 0x140001325
nop word [rax + rax]
mov eax, edi
lea r8, [r14 + 0x986f0]
lea rdx, [r14 + 0x980f0]
mov rcx, qword [rsi + rax*8]
lea r8, [r8 + rax*4]
lea rdx, [rdx + rax*8]
call fcn.140023cc0
test eax, eax
jne 0x1400013ff
mov eax, dword [0x1400980e8]
inc edi
cmp edi, eax
jb 0x1400012f0
mov edi, ebx
test eax, eax
je 0x14000150a
nop
mov ecx, edi
lea rdx, [r14 + 0x984f0]
lea rdx, [rdx + rcx*4]
mov rcx, qword [rsi + rcx*8]
call fcn.1400238c0
test eax, eax
jne 0x14000142b
mov eax, dword [0x1400980e8]
inc edi
cmp edi, eax
jb 0x140001330
test eax, eax
jle 0x14000150a
mov qword [rsp + 0x2d0], r15
mov r15d, 0x100
mov ecx, ebx
call fcn.140001550
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.140001620
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.140001620
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.140023990
test eax, eax
je 0x140001457
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140023b30
cmp byte [0x1400980e4], 0
je 0x1400014f0
lea r8, [rsp + 0x40]
mov edx, ebx
lea rcx, str.NvAPI_GetAssociatedNvidiaDisplayName___d__Error:__s_n
call fcn.1400010c0
jmp 0x1400014f0
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140023b30
cmp byte [0x1400980e4], bl
je 0x140001450
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_EnumNvidiaDisplayHandle_Error:__s_n
call fcn.1400010c0
xor al, al
jmp 0x140001516
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140023b30
cmp byte [0x1400980e4], bl
je 0x140001450
lea rdx, [rsp + 0x40]
lea rcx, str.NvAPI_GetAssociatedDisplayOutputId_Error:__s_n
call fcn.1400010c0
xor al, al
jmp 0x140001516
cmp byte [0x1400980e4], 0
je 0x1400014f0
mov edx, ebx
lea rcx, str.Display_Nr__d:_n
call fcn.1400010c0
cmp byte [0x1400980e4], 0
je 0x1400014f0
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.1400010c0
cmp byte [0x1400980e4], 0
je 0x1400014f0
movzx edx, di
lea rcx, str.__Product_ID:__04X_n
call fcn.1400010c0
cmp byte [0x1400980e4], 0
je 0x1400014f0
lea rdx, [rbp]
lea rcx, str.__Name______:__s_n
call fcn.1400010c0
inc ebx
add rsi, 8
cmp ebx, dword [0x1400980e8]
jl 0x140001370
mov r15, qword [rsp + 0x2d0]
mov dword [0x1400980ec], 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.140069a60
add rsp, 0x2d8
pop rbx
pop rbp
ret