Function at 0x140001b40
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x2e8
mov rax, qword [0x140050688]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov dword [rsp + 0x190], 0
mov dword [rsp + 0x6c], 0
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x300]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0
je 0x140001df7
mov dword [rsp + 0x48], 0x20
lea rax, [rsp + 0x2c0]
mov rdi, rax
mov rsi, qword [rsp + 0x300]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x4c]
lea rcx, [rsp + 0x2c0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x74], 0
lea r8, [rsp + 0x48]
mov edx, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x140001de9
cmp dword [rsp + 0x68], 0
je 0x140001de9
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x318]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x140001dbe
mov rdx, qword [rsp + 0x308]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140001dbe
mov edx, 0x104
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov r8, qword [rsp + 0x310]
mov edx, 0x104
lea rcx, [rsp + 0x1b0]
call fcn.140001fe0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov eax, dword [rsp + 0x70]
mov rcx, rax
call fcn.14001ffb0
mov qword [rsp + 0x1a0], rax
cmp qword [rsp + 0x1a0], 0
je 0x140001dbc
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x1b0]
mov rdx, qword [rsp + 0x1a0]
xor ecx, ecx
call sub.newdev.dll_UpdateDriverForPlugAndPlayDevicesA
mov dword [rsp + 0x190], eax
cmp dword [rsp + 0x190], 0
je 0x140001daf
mov dword [rsp + 0x20], 0
lea r9, [0x140037b22]
mov r8d, 0x11
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyA]
mov dword [rsp + 0x68], eax
mov rcx, qword [rsp + 0x1a0]
call fcn.14001ff60
jmp 0x140001de9
mov eax, dword [rsp + 0x74]
add eax, 1
mov dword [rsp + 0x74], eax
lea r8, [rsp + 0x48]
mov edx, dword [rsp + 0x74]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov dword [rsp + 0x68], eax
jmp 0x140001c1c
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [rsp + 0x190]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.14001f810
add rsp, 0x2e8
pop rdi
pop rsi
ret