Function at 0x140018140
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400960a8]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor edi, edi
mov r15d, edi
mov dword [rsp + 0x20], edi
xor eax, eax
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], rdi
mov byte [rsp + 0x30], al
lea r8d, [rdi + 2]
lea rdx, [0x1400836a8]
lea rcx, [rsp + 0x30]
call fcn.140002d80
nop
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x50], dil
lea r8d, [rdi + 2]
lea rdx, [0x1400836ac]
lea rcx, [rsp + 0x50]
call fcn.140002d80
nop
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], rdi
mov byte [rsp + 0x70], dil
lea r8d, [rdi + 2]
lea rdx, [0x1400836b0]
lea rcx, [rsp + 0x70]
call fcn.140002d80
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rdi
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x48]
call fcn.140019230
nop
lea r9, [fcn.1400029e0]
lea edx, [rdi + 0x20]
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x30]
call fcn.140024b7c
call fcn.14001c090
test al, al
je 0x140018481
mov dword [rsp + 0x20], edi
lea rcx, [rsp + 0x20]
call fcn.14001c2c0
test al, al
je 0x140018481
mov ebx, dword [rsp + 0x20]
test ebx, ebx
jne 0x140018274
mov dword [0x140096ccc], 0xffffffff
call fcn.1400217f0
mov ecx, eax
call fcn.14001bda0
mov dword [0x1400a1120], ebx
mov r14d, edi
test ebx, ebx
jle 0x14001847d
lea rax, [0x1400a11e0]
mov rsi, rax
lea rdi, [0x1400a0f48]
mov r12, qword [rbp - 0x40]
mov r13, qword [rbp - 0x48]
nop
cmp qword [rsi], 0
je 0x14001847d
movsxd rbx, r14d
lea rdx, [rax + rbx*8]
call fcn.140018920
mov qword [rax], rbx
mov qword [rdi - 8], 0xffffffffffffffff
mov qword [rdi], 0xffffffffffffffff
mov qword [rdi + 8], 0xffffffffffffffff
mov qword [rdi + 0x10], 0xffffffffffffffff
mov qword [rdi + 0x18], 0xffffffffffffffff
mov qword [rdi + 0x20], 0xffffffffffffffff
mov qword [rdi + 0x28], 0xffffffffffffffff
mov byte [rdi + 0x30], 0
lea rdx, [rbp - 0x10]
mov rcx, qword [rsi]
call fcn.1400210d0
mov ebx, eax
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
cmp byte [rbp - 0x10], 0
jne 0x140018321
xor r8d, r8d
jmp 0x14001833a
lea rax, [rbp - 0x10]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140018330
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x30]
call fcn.140002d80
nop
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x30]
call fcn.1400189e0
or r15d, 1
mov r8, rax
mov rdx, r12
mov rcx, r13
call fcn.140019310
cmp rax, r12
jne 0x140018370
test ebx, ebx
je 0x140018372
mov bl, 1
and r15d, 0xfffffffe
mov rax, qword [rbp - 0x50]
cmp rax, 0x10
jb 0x1400183c4
inc rax
mov rcx, qword [rbp - 0x68]
cmp rax, 0x1000
jb 0x1400183bf
test cl, 0x1f
jne 0x14001845f
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140018459
sub rcx, rax
cmp rcx, 8
jb 0x140018453
cmp rcx, 0x27
ja 0x14001844d
mov rcx, rax
call fcn.1400245c0
test bl, bl
je 0x1400183d9
mov byte [rdi + 0x30], 1
lea rcx, str.Legacy_GPU_detected__falling_back_to_NvAPIs
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [rdi + 0x30], 0
jne 0x1400183ef
mov rcx, qword [rsi]
call fcn.140017ee0
test al, al
jne 0x1400183ef
mov byte [rdi + 0x30], 1
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x14001842d
inc rax
mov rcx, qword [rbp - 0x30]
cmp rax, 0x1000
jb 0x140018428
test cl, 0x1f
jne 0x140018477
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140018471
sub rcx, rax
cmp rcx, 8
jb 0x14001846b
cmp rcx, 0x27
ja 0x140018465
mov rcx, rax
call fcn.1400245c0
inc r14d
add rsi, 8
add rdi, 0x3c
cmp r14d, dword [0x1400a1120]
jge 0x14001847d
lea rax, [0x1400a11e0]
jmp 0x1400182a0
call fcn.14004c910
int3
call fcn.14004c910
int3
call fcn.14004c910
int3
call fcn.14004c910
nop
call fcn.14004c910
int3
call fcn.14004c910
int3
call fcn.14004c910
int3
call fcn.14004c910
int3
mov bl, 1
jmp 0x140018483
xor bl, bl
lea rcx, [rbp - 0x48]
call fcn.140018a20
movzx eax, bl
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140024560
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret