Function at 0x140016408
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400c2688]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rcx
mov qword [rsp + 0x50], rcx
mov r14d, 1
mov edx, r14d
call fcn.140032178
mov rcx, rax
xor edx, edx
call fcn.140032030
mov edx, 0x3ed
mov rcx, rsi
call fcn.140032178
mov r13, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov edi, 0x104
mov edx, edi
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [0x140085174]
lea ebx, [rdi + 1]
mov edx, ebx
lea rcx, [rbp - 0x50]
call fcn.1400673e8
lea r8, str.diskpt.dat
mov edx, ebx
lea rcx, [rbp - 0x50]
call fcn.1400673e8
call fcn.1400279a4
mov rcx, rax
xor r15d, r15d
test rax, rax
je 0x14001674b
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x68]
movzx ecx, word [rbp - 0x50]
call fcn.1400620e0
test eax, eax
je 0x140016515
cmp dword [rbp - 0x64], r14d
jne 0x140016515
mov dword [rsp + 0x48], edi
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.140061ce0
lea rcx, [rbp - 0x50]
call fcn.1400675ec
mov r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.14000521c
call fcn.140061820
lea rcx, [rsp + 0x60]
call fcn.140037358
nop
xor r9d, r9d
mov r8d, 0x8040
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140037998
or r12, 0xffffffffffffffff
test eax, eax
je 0x14001669c
lea rcx, [rsp + 0x60]
call fcn.140037884
mov r14, rax
movsxd rcx, eax
movabs rax, 0x5197f7d73404147
mul rcx
mov rdi, rcx
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 9
imul rax, rdi, 0x3ec
sub rcx, rax
jne 0x140016696
mov eax, 0x3ec
mul rdi
cmovo rax, r12
mov rcx, rax
call fcn.14002700c
mov rsi, rax
test rax, rax
je 0x140016691
mov r8d, r14d
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140037bdc
cmp r14d, eax
jne 0x140016689
test edi, edi
jle 0x140016689
mov r12, r15
mov r15, rsi
lea r14, [rsi + 4]
mov edi, edi
xor ebx, ebx
cmp dword [r15], 1
jne 0x14001665e
mov word [r15 + 0x3ea], bx
mov rcx, r14
call fcn.1400675ec
add rax, r12
cmp word [rsi + rax*2 + 2], 0x2a
jne 0x140016625
mov rcx, r14
call fcn.1400675ec
add rax, r12
cmp word [rsi + rax*2], 0x3a
je 0x14001665e
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, qword [r13 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9, r14
mov r8d, eax
mov edx, 1
mov rcx, r13
call fcn.1400368bc
add r14, 0x3ec
add r15, 0x3ec
add r12, 0x1f6
sub rdi, 1
jne 0x1400165f2
mov rbx, qword [rsp + 0x40]
xor r15d, r15d
or r12, 0xffffffffffffffff
mov rcx, rsi
call fcn.140027004
mov rsi, qword [rsp + 0x50]
mov r14d, 1
call fcn.140061710
mov edi, 0x43
movzx ecx, di
call fcn.140002d60
test eax, eax
je 0x1400166cc
mov dword [rbp - 0x74], r15d
mov qword [rbp - 0x70], r15
lea rdx, [rbp - 0x78]
movzx ecx, di
call fcn.1400620e0
cmp dword [rbp - 0x74], r14d
je 0x1400166d6
add di, r14w
cmp di, 0x5a
jbe 0x1400166a6
cmp di, 0x5a
ja 0x1400166f4
mov edx, 0x419
mov rcx, rsi
call fcn.140032178
mov rcx, rax
xor edx, edx
call fcn.140032030
nop
lea rcx, [rsp + 0x60]
call fcn.1400373b0
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14001671b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14005ef50
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003bc0
int3