Function at 0x1400022f0
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 [0x140055708]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov dword [rsp + 0x190], 0
mov dword [rsp + 0x6c], 0
mov r8, qword [rsp + 0x308]
mov rdx, qword [rsp + 0x310]
lea rcx, str.Uninstap.exe_:_____InstallOsStandardDriver___enter___szMsInf___s____szService___s__n
call fcn.140001030
mov r9d, 4
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 0x1400025d2
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 0x1400025c4
cmp dword [rsp + 0x68], 0
je 0x1400025c4
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 0x140002599
mov rdx, qword [rsp + 0x308]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140002599
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.1400027f0
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.140023e60
mov qword [rsp + 0x1a0], rax
cmp qword [rsp + 0x1a0], 0
je 0x140002597
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 0x14000257d
mov dword [rsp + 0x20], 0
lea r9, [0x14003bbb1]
mov r8d, 0x11
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyA]
mov dword [rsp + 0x68], eax
jmp 0x14000258a
mov rcx, qword [rsp + 0x1a0]
call fcn.140001e90
mov rcx, qword [rsp + 0x1a0]
call fcn.140023e10
jmp 0x1400025c4
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 0x1400023e8
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea rcx, str.Uninstap.exe_:_____InstallOsStandardDriver___exit___n
call fcn.140001030
mov eax, dword [rsp + 0x190]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400232d0
add rsp, 0x2e8
pop rdi
pop rsi
ret