Function at 0x1800051c0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x180012040]
xor rax, rsp
mov qword [rbp + 0x18], rax
xor ebx, ebx
mov ecx, dword [0x180012b08]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
lea rdi, [0x180012cf0]
mov eax, dword [rdx + rax]
cmp dword [0x180012ce8], eax
jle 0x18000524c
lea rcx, [0x180012ce8]
call fcn.18000b06c
cmp dword [0x180012ce8], 0xffffffff
jne 0x18000524c
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
lea rcx, [0x18000c180]
call fcn.18000afe8
lea rcx, [0x180012ce8]
call fcn.18000b000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rbp - 0x10], rdi
cmp qword [0x180012c70], 0
jne 0x180005837
lea rcx, [rbp - 8]
call fcn.180006a50
nop
call fcn.18000ab44
lea rcx, str.nvngx_dlss.dll
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0xe
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.180001aa0
nop
call fcn.18000ab44
lea rcx, str.uniscaler
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 9
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180001aa0
nop
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 7
cmova rdx, qword [rbp - 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov r8, qword [rbp + 8]
lea rcx, [rsp + 0x30]
call fcn.180007680
nop
lea r10, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova r10, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
lea rdx, [r10 + rax*2]
mov rcx, r10
call fcn.180001bf0
cmp rax, rdx
je 0x18000538e
nop
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x18000532f
cmp cx, 0x2f
jne 0x180005338
add rax, 2
cmp rax, rdx
jne 0x180005320
cmp rax, rdx
je 0x18000538e
nop dword [rax]
lea rcx, [rdx - 2]
movzx r8d, word [rcx]
cmp r8w, 0x5c
je 0x180005360
cmp r8w, 0x2f
je 0x180005360
mov rdx, rcx
cmp rax, rcx
jne 0x180005340
jmp 0x18000538e
cmp rax, rdx
je 0x18000538e
nop word [rax + rax]
lea rcx, [rdx - 2]
movzx r8d, word [rcx]
cmp r8w, 0x5c
je 0x180005386
cmp r8w, 0x2f
jne 0x18000538e
mov rdx, rcx
cmp rax, rcx
jne 0x180005370
sub rdx, r10
sar rdx, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
mov r8, rdx
mov rdx, r10
lea rcx, [rsp + 0x50]
call fcn.180007680
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x50]
call fcn.180001fd0
nop
lea r8, [rbp - 0x70]
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.180001fd0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x18000541f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000541a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000541a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000ac20
movdqa xmm0, xmmword [0x18000dec0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], bx
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x180005475
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005470
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005470
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000ac20
movdqa xmm0, xmmword [0x18000dec0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], bx
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1800054cd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800054c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800054c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000ac20
movdqa xmm0, xmmword [0x18000dec0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], bx
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x180005524
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000551f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000551f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000ac20
movdqa xmm0, xmmword [0x18000dec0]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], bx
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x180005579
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005574
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005574
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000ac20
movdqa xmm0, xmmword [0x18000dec0]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], bx
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180012c70], rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test rax, rax
je 0x180005744
lea rdx, str._US_NVNGX__Loaded_nvngx_dlss.dll.
call fcn.180006b10
mov rcx, rax
lea rdx, [0x18000d8f4]
call fcn.180006b10
lea rdx, str.NVSDK_NGX_D3D11_GetScratchBufferSize
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012c78], rax
lea rdx, str.NVSDK_NGX_D3D12_GetScratchBufferSize
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012c80], rax
lea rdx, str.NVSDK_NGX_D3D11_CreateFeature
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012c88], rax
lea rdx, str.NVSDK_NGX_D3D12_CreateFeature
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012c90], rax
lea rdx, str.NVSDK_NGX_D3D11_ReleaseFeature
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012c98], rax
lea rdx, str.NVSDK_NGX_D3D12_ReleaseFeature
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012ca0], rax
lea rdx, str.NVSDK_NGX_D3D11_GetFeatureRequirements
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012ca8], rax
lea rdx, str.NVSDK_NGX_D3D12_GetFeatureRequirements
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012cb0], rax
lea rdx, str.NVSDK_NGX_D3D11_EvaluateFeature_C
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012cb8], rax
lea rdx, str.NVSDK_NGX_D3D12_EvaluateFeature_C
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012cc0], rax
lea rdx, str.NVSDK_NGX_D3D11_EvaluateFeature
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012cc8], rax
lea rdx, str.NVSDK_NGX_D3D12_EvaluateFeature
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012cd0], rax
lea rdx, str.NVSDK_NGX_D3D12_PopulateParameters_Impl
mov rcx, qword [0x180012c70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180012cd8], rax
lea rdx, str.Loaded_functions_from_nvngx_dlss.dll.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.180006b10
jmp 0x180005788
lea rdx, str._US_NVNGX__Failed_to_load_nvngx_dlss.dll.
call fcn.180006b10
mov rcx, rax
lea rdx, [0x18000d8f4]
call fcn.180006b10
lea rdx, str._US_NVNGX__Tried_path:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.180006b10
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rdx, qword [rbp - 0x30]
mov rcx, rax
call fcn.180006e70
lea rdx, [0x18000d8f4]
mov rcx, rax
call fcn.180006b10
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x1800057db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800057d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800057d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000ac20
movdqa xmm0, xmmword [0x18000dec0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], bx
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x18000582f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000582a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000582a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000ac20
cmp qword [0x180012c70], 0
setne bl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.18000ac00
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret