Function at 0x140224a80
Capabilities:
Get common file path
Get disk information

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x140224aa0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1140]
mov eax, 0x1240
call fcn.1400caa40
sub rsp, rax
mov rax, qword [0x1405921c0]
xor rax, rsp
mov qword [rbp + 0x1130], rax
mov r12, rdx
mov r15, rcx
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x70]
call fcn.1401193c0
mov rcx, r12
call fcn.140003220
xor edx, edx
mov rcx, r12
call fcn.140017ba0
lea rdi, [r12 + 0xc]
lea rsi, [0x140592ec8]
mov r14, 0xffffffffffffffff
mov eax, dword [rbp - 0x64]
test eax, eax
jle 0x140224f68
mov r13, qword [rbp - 0x70]
mov esi, eax
mov qword [rsp + 0x48], rax
nop word [rax + rax]
mov rbx, qword [r13]
mov qword [rsp + 0x40], rbx
lea rax, [rbx - 0x10]
lea rcx, [0x140592ec8]
cmp rax, rcx
je 0x140224b51
lock inc dword [rax]
mov rbx, qword [rsp + 0x40]
mov qword [rbp - 0x80], rbx
lea rax, [rbx - 0x10]
cmp rax, rcx
je 0x140224b65
lock inc dword [rax]
mov rbx, qword [rbp - 0x80]
mov eax, dword [rdi]
inc eax
cmp eax, dword [r12 + 8]
jle 0x140224b8b
mov ecx, eax
test eax, eax
jns 0x140224b79
lea ecx, [rax + 1]
sar ecx, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, r12
call fcn.140017ba0
movsxd rcx, dword [rdi]
lea eax, [rcx + 1]
mov dword [rdi], eax
mov rax, qword [r12]
mov qword [rax + rcx*8], rbx
mov rax, qword [r13]
cmp byte [rax], 0
je 0x140224df4
mov rcx, r13
call fcn.14011a580
cmp eax, 3
je 0x140224bc2
test eax, eax
je 0x140224bc2
cmp eax, 6
jb 0x140224df4
mov rax, qword [r13]
mov qword [rbp - 0x78], rax
add rax, 0xfffffffffffffff0
lea rcx, [0x140592ec8]
cmp rax, rcx
je 0x140224bdd
lock inc dword [rax]
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x28]
call fcn.14011a610
nop
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140016140
xor ecx, ecx
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8d, [rcx + 0x40]
lea rdx, [rbp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ebx, eax
mov rcx, qword [rbp + 0x28]
add rcx, 0xfffffffffffffff0
lea rax, [0x140592ec8]
cmp rcx, rax
je 0x140224c49
mov edx, r14d
lock xadd dword [rcx], edx
dec edx
cmp edx, 0xffffffff
jne 0x140224c49
call fcn.1400c9d7c
test ebx, ebx
jne 0x140224c53
xor eax, eax
mov word [rbp + 0x70], ax
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140018d60
nop
mov rbx, qword [rsp + 0x58]
cmp byte [rbx], 0
jne 0x140224cf3
lea rdx, str.Hard_Drive
lea rcx, [rbp + 0x20]
call fcn.140018a20
nop
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x60]
call fcn.140137110
nop
mov rcx, qword [rbp + 0x20]
add rcx, 0xfffffffffffffff0
lea rax, [0x140592ec8]
cmp rcx, rax
je 0x140224cbb
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140224cb6
call fcn.1400c9d7c
mov rbx, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rbp - 0x60]
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x60], rax
lea rcx, [rax - 0x10]
lea rax, [0x140592ec8]
cmp rcx, rax
je 0x140224cf3
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140224cee
call fcn.1400c9d7c
mov rbx, qword [rsp + 0x58]
mov ecx, 2
mov rax, qword [rsp + 0x40]
mov rdi, r14
inc rdi
cmp byte [rax + rdi], 0
jne 0x140224d00
movsxd rsi, ecx
lea rdx, [rsi + rdi]
lea rcx, [rsp + 0x40]
call fcn.140136ea0
movsxd rdi, edi
add rdi, qword [rsp + 0x40]
mov r8, rsi
lea rdx, [0x1404fe17c]
mov rcx, rdi
call fcn.140279770
mov byte [rsi + rdi], 0
lea rdi, [r12 + 0xc]
mov rsi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
cmp byte [rax], 0
jne 0x140224d8c
lea rax, [rbx - 0x10]
lea rdx, [0x140592ec8]
cmp rax, rdx
je 0x140224d64
lock inc dword [rax]
mov rbx, qword [rsp + 0x58]
xchg qword [rsp + 0x40], rbx
lea rcx, [rbx - 0x10]
cmp rcx, rdx
je 0x140224d85
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140224d85
call fcn.1400c9d7c
mov rbx, qword [rsp + 0x58]
jmp 0x140224daa
mov r8, r14
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x140224d90
add r8, rbx
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140135520
mov word [rsp + 0x50], 0x5d
lea rcx, [rsp + 0x50]
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140224dc0
lea r8, [rsp + 0x50]
add r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140135520
nop
lea rcx, [rbx - 0x10]
lea rax, [0x140592ec8]
cmp rcx, rax
jmp 0x140224eb8
mov rcx, r13
call fcn.14011a580
cmp eax, 5
jne 0x140224ecd
lea ecx, [rax - 3]
mov rax, qword [rsp + 0x40]
mov rbx, r14
inc rbx
cmp byte [rax + rbx], 0
jne 0x140224e10
movsxd rdi, ecx
lea rdx, [rdi + rbx]
lea rcx, [rsp + 0x40]
call fcn.140136ea0
movsxd rbx, ebx
add rbx, qword [rsp + 0x40]
mov r8, rdi
lea rdx, [0x1404fe16c]
mov rcx, rbx
call fcn.140279770
mov byte [rdi + rbx], 0
lea rdi, [r12 + 0xc]
lea rdx, str.CD_DVD_drive
lea rcx, [rbp - 0x58]
call fcn.140018a20
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x50]
call fcn.140137110
nop
mov rcx, qword [rbp - 0x58]
add rcx, 0xfffffffffffffff0
lea rbx, [0x140592ec8]
cmp rcx, rbx
je 0x140224e94
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140224e94
call fcn.1400c9d7c
nop
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.1401353e0
mov dl, 0x5d
mov rcx, rax
call fcn.140135330
nop
mov rcx, qword [rbp - 0x50]
add rcx, 0xfffffffffffffff0
cmp rcx, rbx
je 0x140224ecd
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140224ecd
call fcn.1400c9d7c
mov rbx, qword [rsp + 0x40]
mov qword [rbp - 0x48], rbx
lea rax, [rbx - 0x10]
lea rcx, [0x140592ec8]
cmp rax, rcx
je 0x140224eed
lock inc dword [rax]
mov rbx, qword [rbp - 0x48]
mov eax, dword [r15 + 0xc]
inc eax
cmp eax, dword [r15 + 8]
jle 0x140224f14
mov ecx, eax
test eax, eax
jns 0x140224f02
lea ecx, [rax + 1]
sar ecx, 1
lea edx, [rax + 8]
add edx, ecx
and edx, 0xfffffff8
mov rcx, r15
call fcn.140017ba0
movsxd rcx, dword [r15 + 0xc]
lea eax, [rcx + 1]
mov dword [r15 + 0xc], eax
mov rax, qword [r15]
mov qword [rax + rcx*8], rbx
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
lea rax, [0x140592ec8]
cmp rcx, rax
je 0x140224f4e
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140224f4e
call fcn.1400c9d7c
add r13, 8
sub rsi, 1
mov qword [rsp + 0x48], rsi
jne 0x140224b30
lea rsi, [0x140592ec8]
mov ecx, dword [rdi]
inc ecx
cmp ecx, dword [r12 + 8]
jle 0x140224f8a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rax + 8]
add edx, ecx
and edx, 0xfffffff8
mov rcx, r12
call fcn.140017ba0
movsxd rcx, dword [rdi]
lea eax, [rcx + 1]
mov dword [rdi], eax
mov rax, qword [r12]
lea rdi, [0x140592ed8]
mov qword [rax + rcx*8], rdi
mov ecx, dword [r15 + 0xc]
inc ecx
cmp ecx, dword [r15 + 8]
jle 0x140224fc4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, r15
call fcn.140017ba0
movsxd rcx, dword [r15 + 0xc]
lea eax, [rcx + 1]
mov dword [r15 + 0xc], eax
mov rax, qword [r15]
mov qword [rax + rcx*8], rdi
xor r9d, r9d
lea r8d, [r9 + 5]
lea rdx, [rbp + 0xf0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140225032
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x40]
call fcn.140018d60
nop
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x60]
call fcn.140145b30
nop
mov rcx, qword [rbp - 0x40]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140225037
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140225037
call fcn.1400c9d7c
jmp 0x140225037
mov qword [rsp + 0x60], rdi
mov rbx, qword [rsp + 0x60]
add rbx, 0xfffffffffffffff0
cmp rbx, rsi
je 0x140225048
lock inc dword [rbx]
mov ecx, dword [r12 + 0xc]
inc ecx
cmp ecx, dword [r12 + 8]
jle 0x14022506d
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, r12
call fcn.140017ba0
movsxd rcx, dword [r12 + 0xc]
lea eax, [rcx + 1]
mov dword [r12 + 0xc], eax
mov rax, qword [r12]
lea rdx, [rax + rcx*8]
mov rax, qword [rsp + 0x60]
mov qword [rdx], rax
cmp rbx, rsi
je 0x1402250a5
mov eax, r14d
lock xadd dword [rbx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1402250a5
mov rcx, rbx
call fcn.1400c9d7c
lea rdx, str.Documents
lea rcx, [rbp - 0x38]
call fcn.140018a20
nop
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.140137110
nop
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1402250e4
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1402250e4
call fcn.1400c9d7c
mov ecx, dword [r15 + 0xc]
inc ecx
cmp ecx, dword [r15 + 8]
jle 0x140225107
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, r15
call fcn.140017ba0
movsxd rcx, dword [r15 + 0xc]
lea eax, [rcx + 1]
mov dword [r15 + 0xc], eax
mov rax, qword [r15]
lea rdx, [rax + rcx*8]
mov rax, qword [rbp - 0x30]
mov qword [rdx], rax
xor r9d, r9d
lea r8d, [r9 + 0xd]
lea rdx, [rbp + 0x500]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14022517c
lea rdx, [rbp + 0x500]
lea rcx, [rbp - 0x28]
call fcn.140018d60
nop
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x68]
call fcn.140145b30
nop
mov rcx, qword [rbp - 0x28]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140225181
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140225181
call fcn.1400c9d7c
jmp 0x140225181
mov qword [rsp + 0x68], rdi
mov rbx, qword [rsp + 0x68]
add rbx, 0xfffffffffffffff0
cmp rbx, rsi
je 0x140225192
lock inc dword [rbx]
mov ecx, dword [r12 + 0xc]
inc ecx
cmp ecx, dword [r12 + 8]
jle 0x1402251b7
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, r12
call fcn.140017ba0
movsxd rcx, dword [r12 + 0xc]
lea eax, [rcx + 1]
mov dword [r12 + 0xc], eax
mov rax, qword [r12]
lea rdx, [rax + rcx*8]
mov rax, qword [rsp + 0x68]
mov qword [rdx], rax
cmp rbx, rsi
je 0x1402251ef
mov eax, r14d
lock xadd dword [rbx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1402251ef
mov rcx, rbx
call fcn.1400c9d7c
lea rdx, str.Music
lea rcx, [rbp - 0x20]
call fcn.140018a20
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.140137110
nop
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x14022522e
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x14022522e
call fcn.1400c9d7c
mov ecx, dword [r15 + 0xc]
inc ecx
cmp ecx, dword [r15 + 8]
jle 0x140225251
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, r15
call fcn.140017ba0
movsxd rcx, dword [r15 + 0xc]
lea eax, [rcx + 1]
mov dword [r15 + 0xc], eax
mov rax, qword [r15]
lea rdx, [rax + rcx*8]
mov rax, qword [rbp - 0x18]
mov qword [rdx], rax
xor r9d, r9d
lea r8d, [r9 + 0x27]
lea rdx, [rbp + 0x910]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1402252c6
lea rdx, [rbp + 0x910]
lea rcx, [rbp - 0x10]
call fcn.140018d60
nop
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x70]
call fcn.140145b30
nop
mov rcx, qword [rbp - 0x10]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1402252cb
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1402252cb
call fcn.1400c9d7c
jmp 0x1402252cb
mov qword [rsp + 0x70], rdi
mov rbx, qword [rsp + 0x70]
add rbx, 0xfffffffffffffff0
cmp rbx, rsi
je 0x1402252dc
lock inc dword [rbx]
mov ecx, dword [r12 + 0xc]
inc ecx
cmp ecx, dword [r12 + 8]
jle 0x140225301
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, r12
call fcn.140017ba0
movsxd rcx, dword [r12 + 0xc]
lea eax, [rcx + 1]
mov dword [r12 + 0xc], eax
mov rax, qword [r12]
lea rdx, [rax + rcx*8]
mov rax, qword [rsp + 0x70]
mov qword [rdx], rax
cmp rbx, rsi
je 0x140225339
mov eax, r14d
lock xadd dword [rbx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140225339
mov rcx, rbx
call fcn.1400c9d7c
lea rdx, str.Pictures
lea rcx, [rbp - 8]
call fcn.140018a20
nop
lea rdx, [rbp - 8]
lea rcx, [rbp]
call fcn.140137110
nop
mov rcx, qword [rbp - 8]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140225378
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140225378
call fcn.1400c9d7c
mov ecx, dword [r15 + 0xc]
inc ecx
cmp ecx, dword [r15 + 8]
jle 0x14022539b
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, r15
call fcn.140017ba0
movsxd rcx, dword [r15 + 0xc]
lea eax, [rcx + 1]
mov dword [r15 + 0xc], eax
mov rax, qword [r15]
lea rdx, [rax + rcx*8]
mov rax, qword [rbp]
mov qword [rdx], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xd20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14022540f
lea rdx, [rbp + 0xd20]
lea rcx, [rbp + 8]
call fcn.140018d60
nop
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x78]
call fcn.140145b30
nop
mov rcx, qword [rbp + 8]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x140225414
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140225414
call fcn.1400c9d7c
jmp 0x140225414
mov qword [rsp + 0x78], rdi
mov rbx, qword [rsp + 0x78]
add rbx, 0xfffffffffffffff0
cmp rbx, rsi
je 0x140225425
lock inc dword [rbx]
mov ecx, dword [r12 + 0xc]
inc ecx
cmp ecx, dword [r12 + 8]
jle 0x14022544a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, r12
call fcn.140017ba0
movsxd rcx, dword [r12 + 0xc]
lea eax, [rcx + 1]
mov dword [r12 + 0xc], eax
mov rax, qword [r12]
lea rdx, [rax + rcx*8]
mov rax, qword [rsp + 0x78]
mov qword [rdx], rax
cmp rbx, rsi
je 0x140225482
mov eax, r14d
lock xadd dword [rbx], eax
dec eax
cmp eax, 0xffffffff
jne 0x140225482
mov rcx, rbx
call fcn.1400c9d7c
lea rdx, str.Desktop
lea rcx, [rbp + 0x10]
call fcn.140018a20
nop
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x18]
call fcn.140137110
nop
mov rcx, qword [rbp + 0x10]
add rcx, 0xfffffffffffffff0
cmp rcx, rsi
je 0x1402254c1
lock xadd dword [rcx], r14d
dec r14d
cmp r14d, 0xffffffff
jne 0x1402254c1
call fcn.1400c9d7c
mov ecx, dword [r15 + 0xc]
inc ecx
cmp ecx, dword [r15 + 8]
jle 0x1402254e4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [rcx + 8]
add edx, eax
and edx, 0xfffffff8
mov rcx, r15
call fcn.140017ba0
movsxd rcx, dword [r15 + 0xc]
lea eax, [rcx + 1]
mov dword [r15 + 0xc], eax
mov rax, qword [r15]
lea rdx, [rax + rcx*8]
mov rax, qword [rbp + 0x18]
mov qword [rdx], rax
lea rcx, [rbp - 0x70]
call fcn.140003220
mov rcx, qword [rbp - 0x70]
call fcn.1400d4bdc
mov rcx, qword [rbp + 0x1130]
xor rcx, rsp
call fcn.1400c9d20
mov rbx, qword [rsp + 0x1290]
add rsp, 0x1240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret