Function at 0x140034850
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f70]
mov eax, 0x2070
call fcn.14029e430
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x20b0], rbx
mov qword [rsp + 0x20b8], rsi
mov rax, qword [0x1403d88e8]
xor rax, rsp
mov qword [rbp + 0x1f60], rax
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
call fcn.1400f9930
mov rcx, rax
test rax, rax
je 0x140034b8f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rbx, [0x140345b70]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140015a40
or rdi, 0xffffffffffffffff
test al, al
jne 0x14003490b
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400348f0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400105e0
nop
xor r12d, r12d
mov r14d, r12d
xor edx, edx
mov r8d, 0x2000
lea rcx, [rsp + 0x60]
call fcn.14029ff20
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140034b0b
lea rcx, [rsp + 0x60]
mov rax, rdi
lea rax, [rax + 1]
cmp word [rcx + rax*2], r12w
jne 0x140034950
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14003497d
lea rax, [rax*2 - 2]
cmp rax, 0x2000
jae 0x140034b9a
mov word [rsp + rax + 0x60], r12w
lea rcx, [rsp + 0x60]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140034985
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.1400105e0
lea rdx, str.RealtekAudioHDA_
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], r12w
jne 0x1400349b0
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14001cfc0
mov rdx, qword [r15]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14001cfc0
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call fcn.140015740
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.140033e80
test eax, eax
jne 0x140034a6f
lea r8, str.Common.cpp
mov edx, 0x929
lea rcx, str._VCpl__RETURN_FALSE_ON_FALSE:_Line___d__File___s_n
call fcn.140055180
nop
mov eax, edi
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140034a31
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140034a4e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140034a68
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140034b64
mov rax, qword [rsi]
movzx eax, word [rax]
cmp ax, word [0x140345b70]
je 0x140034abd
lea rdx, [0x1403489c0]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], r12w
jne 0x140034a90
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14001cfc0
mov rdx, qword [rsi]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14001cfc0
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 8], 1
jle 0x140034ad5
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14000dc90
mov rbx, qword [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call fcn.140081d70
mov r14d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1402a58a8
test eax, eax
js 0x140034ba0
cmp eax, dword [rbx - 0xc]
jg 0x140034ba0
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r12w
jmp 0x140034b10
mov rbx, qword [rsp + 0x30]
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140034b2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140034b47
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140034b61
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
mov rcx, qword [rbp + 0x1f60]
xor rcx, rsp
call fcn.14029d880
lea r11, [rsp + 0x2070]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000de90
nop
call fcn.14029dc94
int3
mov ecx, 0x80070057
call fcn.14000de90
int3