Function at 0x140058614
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 [0x1401600b0]
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 0x14005869e
call fcn.14008b144
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.0x14007c430.0]
xor al, al
jmp 0x140058afc
call fcn.140091a6c
mov edx, eax
mov ecx, 0xa
cmp eax, 9
jg 0x1400586db
je 0x1400586fc
sub edx, 3
je 0x1400586d2
sub edx, 2
je 0x1400586c9
sub edx, 1
jne 0x1400586e9
lea rbx, str.nvd3dum.dll
jmp 0x14005870c
lea rbx, str.nvd3dum.dll
jmp 0x14005870c
lea rbx, str.nv4_disp.dll
jmp 0x14005870c
sub edx, ecx
je 0x140058705
sub edx, 1
je 0x1400586fc
sub edx, 1
je 0x140058705
sub edx, 1
je 0x1400586fc
cmp edx, 1
je 0x140058705
lea rbx, str.nv4_disp.dll
jmp 0x14005870c
lea rbx, str.nvd3dum.dll
jmp 0x14005870c
lea rbx, str.nvd3dum.dll
mov r14d, edi
mov rax, qword [rbx]
test rax, rax
je 0x140058af6
mov rdi, rbx
lea rdx, str._impure_
mov rcx, rax
call fcn.1400c5650
test eax, eax
jne 0x140058739
mov r12b, 1
jmp 0x140058ae3
mov r9, qword [rdi]
lea r8, [rbp + 0x520]
lea rdx, str._s_s
lea rcx, [rbp + 0x120]
call fcn.14005a930
xor edi, edi
mov qword [rbp - 0x20], rdi
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x120]
call fcn.1400c5dd8
test eax, eax
jne 0x140058ae3
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.1400c60b4
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140090b04
mov rdi, rax
lea rax, [rbp - 0x60]
cmp rax, rdi
je 0x140058802
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 0x140058841
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 0x140058843
xor edi, edi
test r12b, r12b
jne 0x140058870
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140058870
test r15, r15
jne 0x14005885b
mov r15, rcx
jmp 0x140058870
sub rcx, r15
call fcn.1400c562c
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.140058400
mov dil, al
test al, al
je 0x140058923
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp + 0x50]
call fcn.1400b4430
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.1400530a0
lea rcx, [rbp + 0x50]
or r8, 0xffffffffffffffff
xor eax, eax
inc r8
cmp word [rcx + r8*2], ax
jne 0x14005890a
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140005dd4
jmp 0x140058944
call fcn.14008b144
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.GetBasicFileVersion_failed
mov edx, 2
mov rax, qword [rax + 0x38]
call qword [case.0x14007c430.0]
test dil, dil
jne 0x14005896a
call fcn.14008b144
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.GetBasicFileVersion_failed
mov edx, 2
mov rax, qword [rax + 0x38]
call qword [case.0x14007c430.0]
mov edx, 0x5c
lea rcx, [rbp + 0x120]
call fcn.1400b4a08
test rax, rax
jne 0x1400589d5
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x10]
call fcn.140090b04
mov rdi, rax
lea rax, [rsp + 0x60]
cmp rax, rdi
je 0x1400589c9
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 0x140058a25
lea rdx, [rax + 1]
lea rcx, [rbp + 0x30]
call fcn.140090b04
mov rdi, rax
lea rax, [rsp + 0x60]
cmp rax, rdi
je 0x140058a1b
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 0x140058ab9
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 0x140058ac4
lea r8, [rsp + 0x60]
call fcn.14005abc4
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 0x14005871e
mov byte [r13 + 0x41], sil
mov al, 1
mov rcx, qword [rbp + 0x920]
xor rcx, rsp
call fcn.140095410
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