Function at 0x140039e74
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x858]
sub rsp, 0x930
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140123108]
xor rax, rsp
mov qword [rbp + 0x820], rax
mov r13, rdx
xor edi, edi
mov r15d, edi
mov r12b, dil
mov r14b, 1
mov edx, 0x400
lea rcx, [rbp + 0x420]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x140039efe
call fcn.140060914
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.0x140050ed0.0]
xor al, al
jmp 0x14003a232
call fcn.14006390c
mov edx, eax
mov ecx, 0xa
cmp eax, 9
jg 0x140039f3b
je 0x140039f5c
sub edx, 3
je 0x140039f32
sub edx, 2
je 0x140039f29
sub edx, 1
jne 0x140039f49
lea rbx, str.nvd3dum.dll
jmp 0x140039f6c
lea rbx, str.nvd3dum.dll
jmp 0x140039f6c
lea rbx, str.nv4_disp.dll
jmp 0x140039f6c
sub edx, ecx
je 0x140039f65
sub edx, 1
je 0x140039f5c
sub edx, 1
je 0x140039f65
sub edx, 1
je 0x140039f5c
cmp edx, 1
je 0x140039f65
lea rbx, str.nv4_disp.dll
jmp 0x140039f6c
lea rbx, str.nvd3dum.dll
jmp 0x140039f6c
lea rbx, str.nvd3dum.dll
mov esi, edi
mov rax, qword [rbx]
test rax, rax
je 0x14003a22c
mov rdi, rbx
lea rdx, str._impure_
mov rcx, rax
call fcn.14009b190
test eax, eax
jne 0x140039f98
mov r12b, 1
jmp 0x14003a21a
mov r9, qword [rdi]
lea r8, [rbp + 0x420]
lea rdx, str._s_s
lea rcx, [rbp + 0x20]
call fcn.14003c420
xor edi, edi
mov qword [rbp - 0x50], rdi
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x20]
call fcn.14009b918
test eax, eax
jne 0x14003a21a
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea eax, [rdi + 7]
mov qword [rsp + 0x48], rax
mov word [rsp + 0x30], di
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rax
mov word [rsp + 0x50], di
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rax
mov word [rsp + 0x70], di
lea rcx, [rbp - 0x50]
call fcn.14009ba18
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140065c24
mov rdi, rax
lea rax, [rsp + 0x70]
cmp rax, rdi
je 0x14003a067
lea rcx, [rsp + 0x70]
call fcn.140001a14
mov r8d, 0x20
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140087bd0
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
lea rcx, [rbp - 0x40]
call fcn.140001a14
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
movsxd rcx, dword [rbp - 0x80]
mov edx, 0xa
cmp dx, word [rax + rcx*2 - 2]
jne 0x14003a0a9
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
xor edi, edi
mov word [rax + rcx*2 - 2], di
jmp 0x14003a0ab
xor edi, edi
test r12b, r12b
jne 0x14003a0d9
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14003a0d9
test r15, r15
jne 0x14003a0c3
mov r15, rcx
jmp 0x14003a0d9
sub rcx, r15
call fcn.14009b168
movzx r14d, r14b
cmp rax, 0xb4
cmovg r14d, edi
mov r8d, 7
lea rdx, [0x1400e6608]
lea rcx, [rsp + 0x50]
call fcn.140001a78
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x20]
call fcn.140039d58
test al, al
jne 0x14003a123
call fcn.140060914
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.GetBasicFileVersion_failed
mov edx, 2
mov rax, qword [rax + 0x38]
call qword [case.0x140050ed0.0]
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140088c48
test rax, rax
jne 0x14003a184
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140065c24
mov rdi, rax
lea rax, [rsp + 0x30]
cmp rax, rdi
je 0x14003a17e
lea rcx, [rsp + 0x30]
call fcn.140001a14
mov r8d, 0x20
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140087bd0
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
lea rcx, [rbp - 0x20]
jmp 0x14003a1d0
lea rdx, [rax + 1]
lea rcx, [rbp]
call fcn.140065c24
mov rdi, rax
lea rax, [rsp + 0x30]
cmp rax, rdi
je 0x14003a1cc
lea rcx, [rsp + 0x30]
call fcn.140001a14
mov r8d, 0x20
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140087bd0
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
lea rcx, [rbp]
call fcn.140001a14
mov rdx, qword [r13 + 0x60]
lea r8, [rsp + 0x30]
cmp qword [r13 + 0x68], rdx
je 0x14003a1f0
call fcn.14003ca40
add qword [r13 + 0x60], 0x60
jmp 0x14003a1fa
lea rcx, [r13 + 0x58]
call fcn.14003cb00
nop
lea rcx, [rsp + 0x70]
call fcn.140001a14
nop
lea rcx, [rsp + 0x50]
call fcn.140001a14
nop
lea rcx, [rsp + 0x30]
call fcn.140001a14
inc esi
lea rdi, [rbx + rsi*8]
mov rax, qword [rdi]
test rax, rax
jne 0x140039f7d
mov byte [r13 + 0x41], r14b
mov al, 1
mov rcx, qword [rbp + 0x820]
xor rcx, rsp
call fcn.1400697f0
lea r11, [rsp + 0x930]
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