Function at 0x140039e98
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x808]
sub rsp, 0x8e0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140121108]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov r13, rdx
xor esi, esi
mov r12d, esi
mov byte [rsp + 0x20], sil
mov r14b, 1
mov edx, 0x400
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x140039f24
call fcn.14005f3e4
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.updtDispDevEnumClass::GetDriverFileInfocannot_get_the_system_dir
lea edx, [rsi + 1]
mov rax, qword [rax + 0x38]
call qword [case.0x14004f9b0.0]
xor al, al
jmp 0x14003a241
call fcn.1400623dc
mov edx, eax
mov ecx, 0xa
cmp eax, 9
jg 0x140039f61
je 0x140039f82
sub edx, 3
je 0x140039f58
sub edx, 2
je 0x140039f4f
sub edx, 1
jne 0x140039f6f
lea rbx, str.nvd3dum.dll
jmp 0x140039f92
lea rbx, str.nvd3dum.dll
jmp 0x140039f92
lea rbx, str.nv4_disp.dll
jmp 0x140039f92
sub edx, ecx
je 0x140039f8b
sub edx, 1
je 0x140039f82
sub edx, 1
je 0x140039f8b
sub edx, 1
je 0x140039f82
cmp edx, 1
je 0x140039f8b
lea rbx, str.nv4_disp.dll
jmp 0x140039f92
lea rbx, str.nvd3dum.dll
jmp 0x140039f92
lea rbx, str.nvd3dum.dll
mov qword [rsp + 0x28], rsi
mov r15d, esi
mov rax, qword [rbx]
test rax, rax
je 0x14003a23b
mov rdi, rbx
lea rdx, str._impure_
mov rcx, rax
call fcn.140099f70
test eax, eax
jne 0x140039fc6
mov byte [rsp + 0x20], 1
jmp 0x14003a228
mov r9, qword [rdi]
lea r8, [rbp + 0x3d0]
lea rdx, str._s_s
lea rcx, [rbp - 0x30]
call fcn.14003bf60
mov qword [rsp + 0x60], rsi
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.14009a6f8
test eax, eax
jne 0x14003a228
lea ecx, [rax + 0x60]
call fcn.140068280
mov qword [rsp + 0x38], rax
mov qword [rax + 0x10], rsi
mov ecx, 7
mov qword [rax + 0x18], rcx
mov word [rax], si
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], rcx
mov word [rax + 0x20], si
mov qword [rax + 0x50], rsi
mov qword [rax + 0x58], rcx
mov word [rax + 0x40], si
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x60]
call fcn.14009a7f8
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400647cc
mov rdi, rax
mov rsi, qword [rsp + 0x28]
add rsi, 0x40
cmp rsi, rax
je 0x14003a089
mov rcx, rsi
call fcn.140001a14
mov r8d, 0x20
mov rdx, rdi
mov rcx, rsi
call fcn.1400866c0
xor esi, esi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
jmp 0x14003a08b
xor esi, esi
lea rcx, [rsp + 0x70]
call fcn.140001a14
mov rdx, qword [rsp + 0x28]
lea rax, [rdx + 0x40]
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x14003a0ab
mov rcx, qword [rax]
movsxd r8, dword [rdx + 0x50]
mov r9d, 0xa
cmp r9w, word [rcx + r8*2 - 2]
jne 0x14003a0d2
cmp qword [rax + 0x18], 8
jb 0x14003a0c7
mov rax, qword [rax]
mov word [rax + r8*2 - 2], si
mov rdx, qword [rsp + 0x28]
cmp byte [rsp + 0x20], sil
jne 0x14003a108
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003a108
test r12, r12
jne 0x14003a0ed
mov r12, rcx
jmp 0x14003a108
sub rcx, r12
call fcn.140099f48
movzx r14d, r14b
cmp rax, 0xb4
cmovg r14d, esi
mov rdx, qword [rsp + 0x28]
lea rcx, [rdx + 0x20]
mov r8d, 7
lea rdx, [0x1400e49d8]
call fcn.140001a78
mov r8, qword [rsp + 0x28]
add r8, 0x20
lea rdx, [rbp - 0x30]
call fcn.140039d7c
test al, al
jne 0x14003a155
call fcn.14005f3e4
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.GetBasicFileVersion_failed
mov edx, 2
mov rax, qword [rax + 0x38]
call qword [case.0x14004f9b0.0]
mov edx, 0x5c
lea rcx, [rbp - 0x30]
call fcn.140087728
test rax, rax
jne 0x14003a1b2
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.1400647cc
mov rdi, rax
mov rsi, qword [rsp + 0x28]
cmp rsi, rax
je 0x14003a1ac
mov rcx, rsi
call fcn.140001a14
mov r8d, 0x20
mov rdx, rdi
mov rcx, rsi
call fcn.1400866c0
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
lea rcx, [rbp - 0x70]
jmp 0x14003a1fa
lea rdx, [rax + 1]
lea rcx, [rbp - 0x50]
call fcn.1400647cc
mov rdi, rax
mov rsi, qword [rsp + 0x28]
cmp rsi, rax
je 0x14003a1f6
mov rcx, rsi
call fcn.140001a14
mov r8d, 0x20
mov rdx, rdi
mov rcx, rsi
call fcn.1400866c0
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
lea rcx, [rbp - 0x50]
call fcn.140001a14
lea rcx, [r13 + 0x58]
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x14003a21c
mov rax, qword [rsp + 0x28]
mov qword [rdx], rax
add qword [rcx + 8], 8
jmp 0x14003a226
lea r8, [rsp + 0x28]
call fcn.14001229c
xor esi, esi
inc r15d
lea rdi, [rbx + r15*8]
mov rax, qword [rdi]
test rax, rax
jne 0x140039fa9
mov byte [r13 + 0x41], r14b
mov al, 1
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400683e0
lea r11, [rsp + 0x8e0]
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