Function at 0x180032880
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1f0
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov rax, qword [0x18010c300]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rax, qword [rsp + 0x200]
mov rcx, rax
call fcn.180031120
nop
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0xd0], 0
lea rcx, str.setupapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x18003291e
mov dword [rsp + 0x50], 0x80004005
jmp 0x180032fbb
mov qword [rsp + 0xa8], 0
lea rdx, str.SetupDiGetClassDevsW
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x18003295c
mov dword [rsp + 0x50], 0x80004005
jmp 0x180032fbb
mov qword [rsp + 0xb0], 0
lea rdx, str.SetupDiEnumDeviceInterfaces
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
jne 0x18003299a
mov dword [rsp + 0x50], 0x80004005
jmp 0x180032fbb
mov qword [rsp + 0x90], 0
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x1800329d8
mov dword [rsp + 0x50], 0x80004005
jmp 0x180032fbb
mov qword [rsp + 0x98], 0
lea rdx, str.SetupDiGetDevicePropertyW
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x180032a16
mov dword [rsp + 0x50], 0x80004005
jmp 0x180032fbb
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
jne 0x180032a48
mov dword [rsp + 0x50], 0x80004005
jmp 0x180032fbb
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x160], rax
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800c3520]
mov rax, qword [rsp + 0x160]
call qword [0x1800b36d8]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x180032a92
mov dword [rsp + 0x50], 0x80004005
jmp 0x180032fbb
lea rcx, str.gdi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x180032abf
mov dword [rsp + 0x50], 0x80004005
jmp 0x180032fbb
mov qword [rsp + 0xc0], 0
lea rdx, str.D3DKMTOpenAdapterFromDeviceName
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x180032b00
mov dword [rsp + 0x50], 0x80004005
jmp 0x180032fbb
mov qword [rsp + 0xc8], 0
lea rdx, str.D3DKMTCloseAdapter
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x180032b41
mov dword [rsp + 0x50], 0x80004005
jmp 0x180032fbb
lea rax, [rsp + 0x1c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov dword [rsp + 0x1c0], 0x20
lea rax, [rsp + 0x1a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov dword [rsp + 0x1a0], 0x20
mov dword [rsp + 0x78], 0
jmp 0x180032b93
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x78]
lea r8, [0x1800c3520]
xor edx, edx
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0xf0]
call qword [0x1800b36d8]
test eax, eax
je 0x180032fbb
mov dword [rsp + 0x54], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0xf8]
call qword [0x1800b36d8]
test eax, eax
jne 0x180032c34
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x180032c41
mov dword [rsp + 0x50], 0x80004005
jmp 0x180032fbb
mov eax, dword [rsp + 0x54]
add rax, 3
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.180004480
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov dword [rax], 8
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x80]
mov r8, qword [rsp + 0xb8]
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x108]
call qword [0x1800b36d8]
test eax, eax
jne 0x180032cf0
mov dword [rsp + 0x50], 0x80004005
jmp 0x180032fbb
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov r8, rax
xor edx, edx
call fcn.1800a1e82
mov rax, qword [rsp + 0xb8]
add rax, 4
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xe0], 0
mov dword [rsp + 0xe4], 0
lea rax, [rsp + 0xe8]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0xd8]
mov rax, qword [rsp + 0x110]
call qword [0x1800b36d8]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x180032db2
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0x118]
call fcn.180010cd0
mov qword [rsp + 0x58], 0
jmp 0x180032b89
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x120], rax
mov rcx, qword [rsp + 0x120]
call fcn.180010cd0
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x128], rax
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xa0]
lea r8, [0x1800c36b8]
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x128]
call qword [0x1800b36d8]
test eax, eax
jne 0x180032e41
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x180032e4e
mov dword [rsp + 0x68], 0x80004005
jmp 0x180032fbb
mov eax, dword [rsp + 0x54]
add rax, 3
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.180004480
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x138], rax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa0]
lea r8, [0x1800c36b8]
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x138]
call qword [0x1800b36d8]
test eax, eax
jne 0x180032efe
mov dword [rsp + 0x68], 0x80004005
jmp 0x180032fbb
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov r8, rax
xor edx, edx
call fcn.1800a1e82
lea r8, [rsp + 0x140]
lea rdx, [rsp + 0xe4]
lea rcx, [rsp + 0x170]
call fcn.18000bd80
mov rcx, qword [rsp + 0x200]
mov r8, rax
lea rdx, [rsp + 0x180]
call fcn.180030d40
lea rcx, [rsp + 0x180]
call fcn.180015bc0
mov qword [rsp + 0x58], 0
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0xa4], eax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x148], rax
lea rcx, [rsp + 0xa4]
mov rax, qword [rsp + 0x148]
call qword [0x1800b36d8]
test eax, eax
je 0x180032fb6
mov dword [rsp + 0x68], 0x80004005
jmp 0x180032fbb
jmp 0x180032b89
cmp qword [rsp + 0x60], 0
je 0x180032fee
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x180032fee
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x150]
call qword [0x1800b36d8]
cmp qword [rsp + 0x70], 0
je 0x180033001
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp qword [rsp + 0x88], 0
je 0x18003301a
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp qword [rsp + 0x58], 0
je 0x18003303c
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x158], rax
mov rcx, qword [rsp + 0x158]
call fcn.180010cd0
cmp dword [rsp + 0x50], 0
jge 0x180033061
mov rcx, qword [rsp + 0x200]
call fcn.1800353c0
mov rax, qword [rsp + 0x200]
mov rcx, rax
call fcn.180038850
nop
mov rax, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.18009ff40
add rsp, 0x1f0
pop rdi
ret