Function at 0x140058674
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x958]
sub rsp, 0xa30
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401620b0]
xor rax, rsp
mov qword [rbp + 0x920], rax
mov r13, rdx
xor edi, edi
mov r15d, edi
mov r12b, dil
mov sil, 1
mov edx, 0x400
lea rcx, [rbp + 0x520]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1400586fe
call fcn.14008d174
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.updtDispDevEnumClass::GetDriverFileInfocannot_get_the_system_dir
lea edx, [rdi + 1]
mov rax, qword [rax + 0x38]
call qword [case.0x14007ca24.0]
xor al, al
jmp 0x140058b5c
call fcn.140093a9c
mov edx, eax
mov ecx, 0xa
cmp eax, 9
jg 0x14005873b
je 0x14005875c
sub edx, 3
je 0x140058732
sub edx, 2
je 0x140058729
sub edx, 1
jne 0x140058749
lea rbx, str.nvd3dum.dll
jmp 0x14005876c
lea rbx, str.nvd3dum.dll
jmp 0x14005876c
lea rbx, str.nv4_disp.dll
jmp 0x14005876c
sub edx, ecx
je 0x140058765
sub edx, 1
je 0x14005875c
sub edx, 1
je 0x140058765
sub edx, 1
je 0x14005875c
cmp edx, 1
je 0x140058765
lea rbx, str.nv4_disp.dll
jmp 0x14005876c
lea rbx, str.nvd3dum.dll
jmp 0x14005876c
lea rbx, str.nvd3dum.dll
mov r14d, edi
mov rax, qword [rbx]
test rax, rax
je 0x140058b56
mov rdi, rbx
lea rdx, str._impure_
mov rcx, rax
call fcn.1400c76a0
test eax, eax
jne 0x140058799
mov r12b, 1
jmp 0x140058b43
mov r9, qword [rdi]
lea r8, [rbp + 0x520]
lea rdx, str._s_s
lea rcx, [rbp + 0x120]
call fcn.14005a990
xor edi, edi
mov qword [rbp - 0x20], rdi
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x120]
call fcn.1400c7e28
test eax, eax
jne 0x140058b43
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
lea eax, [rdi + 7]
mov qword [rsp + 0x78], rax
mov word [rsp + 0x60], di
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rax
mov word [rbp - 0x80], di
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rax
mov word [rbp - 0x60], di
lea rcx, [rbp - 0x20]
call fcn.1400c8104
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140092b34
mov rdi, rax
lea rax, [rbp - 0x60]
cmp rax, rdi
je 0x140058862
lea rcx, [rbp - 0x60]
call fcn.140005cfc
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rbp - 0x50], xmm1
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
lea rcx, [rbp - 0x10]
call fcn.140005cfc
nop
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
movsxd rcx, dword [rbp - 0x50]
mov edx, 0xa
cmp dx, word [rax + rcx*2 - 2]
jne 0x1400588a1
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rax, qword [rbp - 0x60]
xor edi, edi
mov word [rax + rcx*2 - 2], di
jmp 0x1400588a3
xor edi, edi
test r12b, r12b
jne 0x1400588d0
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400588d0
test r15, r15
jne 0x1400588bb
mov r15, rcx
jmp 0x1400588d0
sub rcx, r15
call fcn.1400c767c
movzx esi, sil
cmp rax, 0xb4
cmovg esi, edi
mov r8d, 7
lea rdx, str.Unknown
lea rcx, [rbp - 0x80]
call fcn.140005dd4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x4c]
lea rdx, [rbp + 0x120]
call fcn.140058460
mov dil, al
test al, al
je 0x140058983
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0x50]
call fcn.1400b6460
movzx ecx, word [rsp + 0x40]
movzx edx, word [rsp + 0x44]
movzx r8d, word [rsp + 0x48]
movzx r9d, word [rsp + 0x4c]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
lea r8, str._u._02u._02u._04u
mov edx, 0x64
lea rcx, [rbp + 0x50]
call fcn.140053100
lea rcx, [rbp + 0x50]
or r8, 0xffffffffffffffff
xor eax, eax
inc r8
cmp word [rcx + r8*2], ax
jne 0x14005896a
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140005dd4
jmp 0x1400589a4
call fcn.14008d174
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.GetBasicFileVersion_failed
mov edx, 2
mov rax, qword [rax + 0x38]
call qword [case.0x14007ca24.0]
test dil, dil
jne 0x1400589ca
call fcn.14008d174
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.GetBasicFileVersion_failed
mov edx, 2
mov rax, qword [rax + 0x38]
call qword [case.0x14007ca24.0]
mov edx, 0x5c
lea rcx, [rbp + 0x120]
call fcn.1400b6a38
test rax, rax
jne 0x140058a35
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x10]
call fcn.140092b34
mov rdi, rax
lea rax, [rsp + 0x60]
cmp rax, rdi
je 0x140058a29
lea rcx, [rsp + 0x60]
call fcn.140005cfc
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x70], xmm1
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
lea rcx, [rbp + 0x10]
call fcn.140005cfc
nop
jmp 0x140058a85
lea rdx, [rax + 1]
lea rcx, [rbp + 0x30]
call fcn.140092b34
mov rdi, rax
lea rax, [rsp + 0x60]
cmp rax, rdi
je 0x140058a7b
lea rcx, [rsp + 0x60]
call fcn.140005cfc
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rdi + 0x10]
movaps xmmword [rsp + 0x70], xmm1
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
lea rcx, [rbp + 0x30]
call fcn.140005cfc
nop
lea rcx, [r13 + 0x58]
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x140058b19
mov qword [rsp + 0x58], rdx
xor eax, eax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rdx], xmm0
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x70], rax
lea r8d, [rax + 7]
mov qword [rsp + 0x78], r8
mov word [rsp + 0x60], ax
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x38], rax
movaps xmm0, xmmword [rbp - 0x80]
movups xmmword [rdx + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x70]
movups xmmword [rdx + 0x30], xmm1
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], r8
mov word [rbp - 0x80], ax
mov qword [rdx + 0x50], rax
mov qword [rdx + 0x58], rax
movaps xmm0, xmmword [rbp - 0x60]
movups xmmword [rdx + 0x40], xmm0
movaps xmm1, xmmword [rbp - 0x50]
movups xmmword [rdx + 0x50], xmm1
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], r8
mov word [rbp - 0x60], ax
add qword [rcx + 8], 0x60
jmp 0x140058b24
lea r8, [rsp + 0x60]
call fcn.14005ac24
nop
lea rcx, [rbp - 0x60]
call fcn.140005cfc
nop
lea rcx, [rbp - 0x80]
call fcn.140005cfc
nop
lea rcx, [rsp + 0x60]
call fcn.140005cfc
nop
inc r14d
lea rdi, [rbx + r14*8]
mov rax, qword [rdi]
test rax, rax
jne 0x14005877e
mov byte [r13 + 0x41], sil
mov al, 1
mov rcx, qword [rbp + 0x920]
xor rcx, rsp
call fcn.140097440
lea r11, [rsp + 0xa30]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret