Function at 0x180003678
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x890]
sub rsp, 0x990
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rbp + 0x880], rax
mov rax, qword [rbp + 0x900]
xor edi, edi
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0x908]
mov dword [rsp + 0x40], r8d
mov r14, rdx
mov qword [rbp - 0x80], rdx
mov r15d, 0x206
lea rcx, [rbp + 0x672]
mov r8d, r15d
xor edx, edx
mov qword [rsp + 0x78], rax
mov ebx, r9d
mov esi, edi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x6c], edi
mov word [rbp + 0x670], di
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x462]
mov r8d, r15d
xor edx, edx
mov word [rbp + 0x460], di
call sub.msvcrt.dll_memset
lea r8d, [rdi + 0x4c]
lea rcx, [rbp + 0x202]
xor edx, edx
mov qword [rbp - 0x78], rdi
mov dword [rsp + 0x68], edi
mov word [rbp + 0x200], di
call sub.msvcrt.dll_memset
mov r12d, edi
mov dword [rsp + 0x60], edi
call qword [sym.imp.SETUPAPI.dll_SetupGetThreadLogToken]
mov r13, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rax
test ebx, ebx
je 0x180003782
lea r14d, [rdi + 1]
lea r9, [0x180003f38]
mov edx, 0x1000000
mov r8d, r14d
mov rcx, r13
call fcn.18001db4c
mov esi, 0x3ec
jmp 0x180003e11
mov ebx, dword [rsp + 0x40]
test ebx, ebx
je 0x180003dec
test r14, r14
je 0x180003dec
cmp dword [rbp + 0x8f0], edi
je 0x1800037a8
call fcn.18001de44
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], edi
mov r14d, 1
mov r15d, 0x1000000
test ebx, ebx
je 0x180003b0a
mov r12, qword [rbp - 0x80]
add r12, 0x20
test byte [r12], 4
lea rsi, [r12 - 0x20]
mov qword [r12 + 4], rdi
mov qword [rbp - 0x70], rsi
mov dword [rsp + 0x70], edi
jne 0x1800039ef
mov rcx, qword [r12 - 0x10]
lea r9, [rbp - 0x58]
lea r8, [rbp + 0x250]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x180003aa9
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x250]
call fcn.180017460
test eax, eax
je 0x180003a7e
test byte [rbp - 0x50], 0x10
je 0x180003a53
mov ecx, dword [rsp + 0x48]
test ecx, ecx
je 0x18000399e
lea r8, [rsp + 0x6c]
lea rdx, [0x180002b50]
lea rcx, [rbp + 0x250]
mov dword [rsp + 0x6c], edi
call fcn.180014fa8
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x18000399a
mov eax, dword [rsp + 0x6c]
cmp eax, r14d
jbe 0x18000399a
lea rcx, [rbp + 0x250]
lea r9, [0x180003f88]
mov r8d, 0x10004
mov qword [rsp + 0x28], rcx
mov rcx, r13
mov edx, r15d
mov dword [rsp + 0x20], eax
call fcn.18001db4c
mov ebx, 0x104
lea rcx, [rbp + 0x670]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x18000399a
lea rdx, [0x180003fb0]
lea rcx, [rbp + 0x670]
mov r8d, ebx
call fcn.18001a2a4
test eax, eax
je 0x18000399a
lea rdx, [rbp + 0x460]
lea rcx, [rbp + 0x670]
call fcn.180016f0c
test eax, eax
jne 0x18000399a
lea r8, [rbp + 0x460]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
xor r9d, r9d
call fcn.18001e484
test eax, eax
jne 0x18000399a
lea rdx, [rbp + 0x460]
lea rcx, [rbp + 0x250]
call fcn.180016bc0
mov edx, r15d
mov rcx, r13
test eax, eax
jne 0x18000396c
lea rax, [rbp + 0x460]
lea r9, [0x180020a60]
mov r8d, 0x10004
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x250]
mov qword [rsp + 0x20], rax
call fcn.18001db4c
lea r8, [rbp + 0x460]
lea rcx, [rbp + 0x250]
mov edx, ebx
call fcn.1800035e0
jmp 0x18000399a
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0x460]
lea r9, [0x180003fe8]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x250]
mov r8d, 0x10002
mov qword [rsp + 0x20], rax
call fcn.18001db4c
mov ebx, dword [rsp + 0x40]
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x250]
mov r8, rsi
call fcn.180013814
mov esi, eax
test eax, eax
je 0x180003a13
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x250]
lea r9, [0x180004018]
mov r8d, r14d
mov edx, r15d
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.18001db4c
mov rbx, qword [rbp - 0x70]
or dword [rbx + 0x28], 8
jmp 0x180003af6
add dword [rsp + 0x60], r14d
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x50]
mov r8, rsi
mov rcx, rsi
call fcn.1800133b4
mov esi, eax
test eax, eax
jne 0x180003ab3
mov eax, dword [r12]
cmp dword [rsp + 0x70], edi
je 0x180003a26
test al, 8
jne 0x180003a37
or eax, 8
jmp 0x180003a2d
test al, 8
je 0x180003a37
and eax, 0xfffffff7
or dword [r12 + 8], 0x40
mov dword [r12], eax
mov eax, dword [rsp + 0x44]
add r12, 0x30
add eax, r14d
mov dword [rsp + 0x44], eax
cmp eax, ebx
jb 0x1800037c8
jmp 0x180003afd
lea rax, [rbp + 0x250]
lea r9, [0x1800209d8]
mov r8d, r14d
mov edx, r15d
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.18001db4c
mov esi, 0xa1
jmp 0x180003e11
lea rax, [rbp + 0x250]
lea r9, [0x1800209b8]
mov r8d, r14d
mov edx, r15d
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.18001db4c
mov esi, 3
jmp 0x180003e11
mov esi, 0x57
jmp 0x180003e11
mov rbx, qword [rbp - 0x70]
lea rdx, [rbp + 0x200]
mov r8d, 0x27
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_pSetupStringFromGuid]
lea rax, [rbp + 0x200]
lea r9, [0x180020a78]
mov r8d, r14d
mov edx, r15d
mov rcx, r13
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call fcn.18001db4c
or dword [rbx + 0x28], 4
mov dword [rbx + 0x24], esi
mov ebx, dword [rsp + 0x40]
test esi, esi
jne 0x180003e11
mov r12d, dword [rsp + 0x60]
cmp r12d, ebx
jne 0x180003b2c
lea r9, [0x180004058]
mov r8d, 2
mov edx, r15d
mov rcx, r13
call fcn.18001db4c
jmp 0x180003e47
cmp dword [rbp + 0x8f0], edi
mov edx, edi
mov r12d, 2
cmovne edx, r12d
cmp dword [rsp + 0x48], edi
je 0x180003b47
or edx, 0x10
mov r8, qword [rsp + 0x78]
lea rcx, [rsp + 0x50]
or edx, 4
call fcn.180004ecc
test eax, eax
jne 0x180003b6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x180003e0d
mov eax, edi
mov dword [rsp + 0x44], eax
test ebx, ebx
je 0x180003c20
mov rbx, qword [rbp - 0x80]
add rbx, 0x24
test byte [rbx - 4], 8
lea rcx, [rbx - 0x24]
mov qword [rsp + 0x78], rcx
je 0x180003be0
test byte [rbx - 4], 4
jne 0x180003be0
cmp dword [rbx], edi
jne 0x180003be0
mov rdx, rcx
mov rcx, qword [rbp - 0x68]
call fcn.180004168
mov esi, eax
test eax, eax
je 0x180003bd8
or dword [rbx + 4], 0x10
mov dword [rbx], eax
mov edx, r15d
mov rcx, r13
cmp eax, 0x103
jne 0x180003bf3
mov rax, qword [rbx - 0x14]
lea r9, [0x180004090]
mov r8d, r12d
mov qword [rsp + 0x20], rax
call fcn.18001db4c
mov esi, edi
or dword [rbx + 4], r14d
mov eax, dword [rsp + 0x44]
add eax, r14d
add rbx, 0x30
mov dword [rsp + 0x44], eax
cmp eax, dword [rsp + 0x40]
jb 0x180003b80
jmp 0x180003c14
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
lea r9, [0x1800040e8]
mov rax, qword [rax + 0x10]
mov r8d, r14d
mov qword [rsp + 0x20], rax
call fcn.18001db4c
test esi, esi
jne 0x180003e11
mov ebx, dword [rsp + 0x40]
mov eax, edi
mov dword [rsp + 0x44], eax
test ebx, ebx
je 0x180003cd6
mov rbx, qword [rbp - 0x80]
add rbx, 0x24
test byte [rbx - 4], 8
lea rcx, [rbx - 0x24]
mov qword [rsp + 0x78], rcx
jne 0x180003c96
test byte [rbx - 4], 4
jne 0x180003c96
cmp dword [rbx], edi
jne 0x180003c96
mov rdx, rcx
mov rcx, qword [rbp - 0x68]
call fcn.180004168
mov esi, eax
test eax, eax
je 0x180003c8e
or dword [rbx + 4], 0x10
mov dword [rbx], eax
mov edx, r15d
mov rcx, r13
cmp eax, 0x103
jne 0x180003ca9
mov rax, qword [rbx - 0x14]
lea r9, [0x180004090]
mov r8d, r12d
mov qword [rsp + 0x20], rax
call fcn.18001db4c
mov esi, edi
or dword [rbx + 4], r14d
mov eax, dword [rsp + 0x44]
add eax, r14d
add rbx, 0x30
mov dword [rsp + 0x44], eax
cmp eax, dword [rsp + 0x40]
jb 0x180003c36
jmp 0x180003cca
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
lea r9, [0x1800040e8]
mov rax, qword [rax + 0x10]
mov r8d, r14d
mov qword [rsp + 0x20], rax
call fcn.18001db4c
test esi, esi
jne 0x180003e11
mov ebx, dword [rsp + 0x40]
cmp dword [rbp + 0x8f8], edi
je 0x180003daa
test ebx, ebx
je 0x180003d4f
mov rbx, qword [rbp - 0x80]
mov eax, dword [rsp + 0x40]
add rbx, 0x18
mov qword [rsp + 0x60], rax
test byte [rbx + 8], 4
mov dword [rsp + 0x44], edi
jne 0x180003d41
mov rdx, qword [rbx]
lea rcx, [rbx - 0x18]
lea r8, [rsp + 0x44]
call fcn.180013ab0
test eax, eax
je 0x180003dc4
mov dword [rsp + 0x28], eax
mov rax, qword [rbx - 8]
lea r9, [0x180004120]
mov r8d, r12d
mov edx, r15d
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.18001db4c
mov rax, qword [rsp + 0x60]
add rbx, 0x30
sub rax, r14
mov qword [rsp + 0x60], rax
jne 0x180003cf7
mov rbx, qword [rsp + 0x50]
lea rax, [rsp + 0x50]
cmp rbx, rax
je 0x180003daf
mov rcx, qword [rbx + 0x10]
test byte [rcx + 0x20], 4
jne 0x180003d9d
lea rdx, [rbx + 0x220]
call fcn.180012f88
test eax, eax
je 0x180003d9d
mov dword [rsp + 0x28], eax
lea rax, [rbx + 0x220]
lea r9, [0x180020a00]
mov r8d, r12d
mov edx, r15d
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.18001db4c
mov rbx, qword [rbx]
lea rax, [rsp + 0x50]
cmp rbx, rax
jne 0x180003d5e
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x180003e4c
mov dword [rax], r12d
jmp 0x180003e4c
cmp dword [rbx + 0xc], 0x103
jne 0x180003d3c
mov rax, qword [rsp + 0x60]
cmp dword [rsp + 0x44], edi
jne 0x180003d41
and dword [rbx + 0x10], 0xffffffef
mov dword [rbx + 0xc], edi
jmp 0x180003d41
mov r14d, 1
lea r9, [0x180003f68]
mov edx, 0x1000000
mov r8d, r14d
mov rcx, r13
call fcn.18001db4c
lea esi, [r14 + 0x56]
test esi, esi
je 0x180003e47
mov rbx, qword [rsp + 0x50]
lea rax, [rsp + 0x50]
cmp rbx, rax
je 0x180003e4c
cmp dword [rbx + 0x434], edi
je 0x180003e3a
lea rcx, [rbx + 0x220]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_DriverStoreDeleteDriverPackageW]
mov rbx, qword [rbx]
lea rax, [rsp + 0x50]
cmp rbx, rax
jne 0x180003e20
mov rbx, qword [rsp + 0x50]
lea rax, [rsp + 0x50]
cmp rbx, rax
je 0x180003ec0
mov rax, qword [rbx]
lea rcx, [rsp + 0x50]
cmp qword [rbx + 8], rcx
jne 0x180003eb9
cmp qword [rax + 8], rbx
jne 0x180003eb9
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov qword [rax + 8], rcx
mov rcx, qword [rbx + 0x428]
test rcx, rcx
je 0x180003e93
mov edx, dword [rbx + 0x430]
test edx, edx
je 0x180003e93
call fcn.18001e598
mov rcx, qword [rbx + 0x448]
test rcx, rcx
je 0x180003eae
mov edx, dword [rbx + 0x450]
test edx, edx
je 0x180003eae
call fcn.18001e598
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x180003e47
mov ecx, 3
int 0x29
cmp dword [rsp + 0x48], edi
je 0x180003ef8
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x180003ef8
cmp dword [rsp + 0x68], edi
jbe 0x180003eeb
mov r15d, dword [rsp + 0x68]
mov rcx, qword [rbx]
call fcn.18001714c
lea rbx, [rbx + 8]
sub r15, r14
jne 0x180003eda
mov edx, dword [rsp + 0x68]
mov rcx, qword [rbp - 0x78]
call fcn.18001e598
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete dil
mov eax, edi
mov rcx, qword [rbp + 0x880]
xor rcx, rsp
call fcn.180001ac0
mov rbx, qword [rsp + 0x9e0]
add rsp, 0x990
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret