Function at 0x1400852c0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5b0
mov rbx, rcx
lea rcx, [rax - 0x568]
mov edx, 0x20a
mov r12, r8
call fcn.1400619b4
mov rdx, qword [rsp + 0x80]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
xor esi, esi
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x60], rsi
call fcn.140061940
lea rcx, [rsp + 0x5f8]
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], rsi
call fcn.140059340
lea edi, [rsi + 4]
lea rdx, [rsp + 0x5f8]
lea rcx, [0x14011f314]
mov r8d, edi
call fcn.14006439c
lea r13, [0x1401145d8]
lea rcx, [rsp + 0x58]
mov rdx, r13
mov bpl, al
call fcn.14006d8b0
lea rcx, [rsp + 0x88]
mov rdx, r13
call fcn.14006d8b0
lea rcx, [rsp + 0x70]
mov rdx, r13
call fcn.14006d8b0
lea rcx, [rsp + 0x78]
mov rdx, r13
call fcn.14006d8b0
mov r11, qword [rsp + 0x5f8]
lea rcx, [0x14011f30c]
mov rdx, r11
mov r8d, edi
mov r15d, esi
mov dword [rsp + 0x50], esi
mov byte [rsp + 0x30], sil
mov r14b, sil
mov byte [rsp + 0x31], sil
call fcn.14005a990
cmp al, sil
je 0x1400853f1
add r11, 8
lea rcx, [rsp + 0x5f8]
mov byte [rsp + 0x31], 1
mov qword [rsp + 0x5f8], r11
call fcn.140059340
mov r13d, 0x2c
lea rdx, [rsp + 0x5f8]
lea rcx, [rsp + 0x90]
mov r8d, r13d
mov r9b, 1
call fcn.14007c440
lea rdx, [rsp + 0x58]
xor r8d, r8d
mov rcx, rax
call fcn.140065830
lea rdx, [rsp + 0x58]
xor r8d, r8d
mov rcx, rbx
call fcn.14000395c
mov r11, qword [rsp + 0x58]
cmp word [r11], si
je 0x140085ec9
mov rbx, qword [rsp + 0x5f8]
mov rcx, rbx
call fcn.14006140c
cmp word [rax], r13w
jne 0x140085463
add rbx, 2
mov qword [rsp + 0x5f8], rbx
lea rcx, [rsp + 0x5f8]
call fcn.140059340
mov rcx, qword [rsp + 0x5f8]
mov edx, 0x26
movzx eax, word [rcx]
cmp ax, si
je 0x1400854b7
cmp dx, ax
jne 0x140085491
mov byte [rsp + 0x30], 1
jmp 0x1400854a3
mov edx, 0x2a
cmp dx, ax
jne 0x1400854af
inc r14b
mov edx, 0x26
add rcx, 2
mov ax, word [rcx]
cmp ax, si
jne 0x140085485
mov qword [rsp + 0x5f8], rcx
lea rcx, [rsp + 0x5f8]
call fcn.140059340
lea rdx, [rsp + 0x5f8]
lea rcx, [rsp + 0x90]
mov r8d, r13d
mov r9b, 1
call fcn.14007c440
lea rdx, [rsp + 0x88]
xor r8d, r8d
mov rcx, rax
call fcn.140065830
mov rcx, qword [rsp + 0x88]
call fcn.14001b86c
mov rbx, qword [rsp + 0x5f8]
mov rcx, rbx
mov rdi, rax
call fcn.14006140c
cmp word [rax], r13w
jne 0x140085557
lea rdx, [rsp + 0x5f8]
lea rcx, [rsp + 0x90]
add rbx, 2
mov r8d, r13d
mov r9b, 1
mov qword [rsp + 0x5f8], rbx
call fcn.14007c440
lea rdx, [rsp + 0x70]
xor r8d, r8d
mov rcx, rax
call fcn.140065830
mov rbx, qword [rsp + 0x5f8]
mov rcx, rbx
call fcn.14006140c
cmp word [rax], r13w
jne 0x1400855a4
lea rdx, [rsp + 0x5f8]
lea rcx, [rsp + 0x90]
add rbx, 2
mov r8d, r13d
mov r9b, 1
mov qword [rsp + 0x5f8], rbx
call fcn.14007c440
lea rdx, [rsp + 0x78]
xor r8d, r8d
mov rcx, rax
call fcn.140065830
mov rbx, qword [rsp + 0x5f8]
mov rcx, rbx
call fcn.14006140c
cmp word [rax], r13w
jne 0x1400855f7
lea rdx, [rsp + 0x5f8]
lea rcx, [rsp + 0x90]
add rbx, 2
mov r8d, r13d
mov r9b, 1
mov qword [rsp + 0x5f8], rbx
call fcn.14007c440
lea rdx, [rsp + 0x50]
movzx r8d, r13w
mov rcx, rax
call fcn.140065c28
mov rbx, qword [rsp + 0x5f8]
mov r15d, dword [rsp + 0x50]
mov rcx, rbx
call fcn.14006140c
cmp word [rax], r13w
jne 0x140085645
lea rdx, [rsp + 0x5f8]
lea rcx, [rsp + 0x90]
add rbx, 2
mov r8d, r13d
mov r9b, 1
mov qword [rsp + 0x5f8], rbx
call fcn.14007c440
lea rdx, [rsp + 0x40]
movzx r8d, r13w
mov rcx, rax
call fcn.140065b68
mov rbx, qword [rsp + 0x5f8]
mov rcx, rbx
call fcn.14006140c
cmp word [rax], r13w
jne 0x14008568b
lea rdx, [rsp + 0x5f8]
lea rcx, [rsp + 0x90]
add rbx, 2
mov r8d, r13d
mov r9b, 1
mov qword [rsp + 0x5f8], rbx
call fcn.14007c440
lea rdx, [rsp + 0x60]
movzx r8d, r13w
mov rcx, rax
call fcn.140065b68
lea rcx, [rsp + 0x68]
mov rdx, rdi
call fcn.14006d8b0
mov rbx, qword [rsp + 0x68]
xor eax, eax
mov r13d, 0x5c
cmp word [rbx], ax
je 0x14008570d
cmp bpl, al
je 0x14008570a
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
xor ecx, ecx
mov edi, eax
cmp word [rbx], cx
je 0x14008570a
lea eax, [rcx + 0x3a]
cmp ax, word [rbx + 2]
jne 0x14008570a
cmp r13w, word [rbx + 4]
jne 0x14008570a
lea esi, [rcx + 0x2e]
cmp si, word [rbx + 6]
je 0x14008570a
lea eax, [rdi + 8]
lea rcx, [rsp + 0x68]
movsxd rdx, eax
call fcn.140061a40
mov rbx, qword [rsp + 0x68]
lea r11d, [rdi + 2]
movsxd r8, r11d
lea rdx, [rbx + 4]
lea rcx, [rbx + 8]
add r8, r8
call fcn.14001d2c8
mov word [rbx + 6], si
mov rsi, rbx
mov rcx, qword [rsp + 0x58]
mov edx, 0x3b
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
mov rdi, rax
xor eax, eax
cmp rdi, rax
je 0x14008572e
mov word [rdi], ax
add rdi, 2
lea rcx, [rsp + 0x38]
call fcn.140061940
mov rbp, qword [rsp + 0x5f0]
mov rdx, qword [rsp + 0x58]
test byte [rbp + 0xd], 0xf
jne 0x140085755
mov eax, 0x26
cmp ax, word [rdx]
jne 0x1400857a8
xor ecx, ecx
or r9d, 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call fcn.140018664
xor r8d, r8d
cmp rax, r8
je 0x1400857a3
mov rcx, qword [rax + 0x18]
movabs rdx, 0x3fffffffffffffff
and rcx, rdx
cmp rcx, 1
jne 0x140085793
mov rax, qword [rax + 8]
mov byte [rax], r8b
jmp 0x1400857ba
cmp rcx, 2
jb 0x1400857ba
mov rax, qword [rax + 8]
mov word [rax], r8w
jmp 0x1400857ba
mov rdx, qword [rsp + 0x58]
lea r8, [0x1401145d8]
mov rcx, rbp
call fcn.140060d64
xor r8d, r8d
mov rbp, qword [rsp + 0x40]
cmp rbp, r8
je 0x140085839
mov qword [rsp + 0x48], r8
cmp rdi, r8
jne 0x140085818
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.14006d930
lea rdx, [0x14011f300]
lea rcx, [rsp + 0x48]
call fcn.140061a7c
mov rdi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x5f0]
xor eax, eax
mov rdx, rdi
or r9d, 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x20], rax
call fcn.140018664
xor ecx, ecx
cmp rax, rcx
je 0x14008582f
mov rcx, qword [rsp + 0x5f0]
lea r8, [0x1401188a0]
mov rdx, rdi
call fcn.140060d64
lea rcx, [rsp + 0x48]
call fcn.140059370
mov rcx, r12
call fcn.14005d55c
mov r12, rax
cmp r14b, 1
je 0x140085d57
lea rdx, [0x14011f2fc]
lea rcx, [rsp + 0x48]
xor esi, esi
or r8, 0xffffffffffffffff
mov rbp, rsi
call fcn.14006d8f0
mov rdi, qword [rsp + 0x78]
mov r14w, word [rdi]
cmp r14w, si
je 0x140085918
lea edx, [rsi + 0x7c]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
mov rdx, rdi
lea rcx, [rsp + 0x48]
cmp rax, rsi
je 0x1400858d1
call fcn.14006d930
lea rdx, [0x14011abb0]
lea rcx, [rsp + 0x48]
call fcn.140061a7c
mov rbp, qword [rsp + 0x48]
mov r14d, esi
mov rax, rbp
cmp word [rbp], si
je 0x140085918
lea ecx, [rsi + 0x7c]
cmp word [rax], cx
jne 0x1400858c6
mov word [rax], si
add rax, 2
cmp word [rax], si
jne 0x1400858be
jmp 0x140085918
call fcn.140061a7c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
movsxd rsi, eax
lea ecx, [rsi + rsi + 6]
movsxd rdx, ecx
lea rcx, [rsp + 0x48]
call fcn.140061a40
mov rbp, qword [rsp + 0x48]
lea r11d, [rsi + 1]
movsxd rcx, r11d
mov rdx, rbp
lea r8, [rcx + rcx]
lea rcx, [r8 + rbp]
call fcn.14001d310
xor eax, eax
mov word [rbp + rsi*4 + 4], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
movsxd rbx, eax
mov eax, 0x3f7a2
lea esi, [rbx + rbx + 0x10]
cmp esi, 0x3f7a0
cmovle esi, eax
lea ecx, [rsi + 8]
movsxd rdx, ecx
lea rcx, [rsp + 0x68]
call fcn.140061a40
mov rax, rbx
mov r11d, esi
sub r11d, ebx
mov rbx, qword [rsp + 0x68]
xor edx, edx
add r11d, 8
lea rcx, [rbx + rax*2]
movsxd r8, r11d
add r8, r8
call fcn.1400fa350
lea rcx, [rsp + 0xc0]
xor edx, edx
mov r8d, 0x88
mov dword [rsp + 0xb0], 0x98
call fcn.1400fa350
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb8], r12
movzx ecx, word [rax]
mov qword [rsp + 0xc8], rbp
mov rbp, qword [rsp + 0x40]
neg cx
mov qword [rsp + 0xe0], rbx
mov dword [rsp + 0xe8], esi
sbb rdx, rdx
mov ecx, 0x20
and rdx, rax
xor eax, eax
mov dword [rsp + 0xdc], eax
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0xf8], eax
mov qword [rsp + 0x100], rax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x110]
or eax, r15d
xor r15d, r15d
mov qword [rsp + 0x108], rdx
mov dword [rsp + 0x110], eax
cmp rbp, r15
je 0x140085a19
or eax, ecx
mov qword [rsp + 0x128], rbp
mov dword [rsp + 0x110], eax
bt eax, 0x12
jb 0x140085a2a
bts eax, 0x15
mov dword [rsp + 0x110], eax
call fcn.14005ab68
mov r12b, byte [rsp + 0x30]
lea rcx, [rsp + 0xb0]
cmp r12b, r15b
je 0x140085a49
call qword [0x1401343f0]
jmp 0x140085a4f
call qword [0x1401343e8]
mov dword [rsp + 0x50], eax
cmp rbp, r15
jne 0x140085cc6
lea rcx, [rsp + 0x50]
call fcn.14006140c
cmp dword [rax], 1
je 0x140085a7a
lea rcx, [rsp + 0x48]
call fcn.140059370
jmp 0x140085e5b
bt dword [rsp + 0x110], 9
jb 0x140085a9c
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x38]
call fcn.14006d930
jmp 0x140085cc6
bt dword [rsp + 0x110], 0x13
jae 0x140085b63
mov rbp, qword [rsp + 0xe0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
movsxd rcx, eax
lea rsi, [rbp + rcx*2 + 2]
cmp word [rsi], r15w
jne 0x140085ade
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x38]
call fcn.14006d930
jmp 0x140085b59
mov rax, qword [rsp + 0x38]
cmp word [rax], r15w
je 0x140085afa
lea rdx, [0x140119038]
lea rcx, [rsp + 0x38]
call fcn.140061a7c
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.140061a7c
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, r15d
jle 0x140085b35
cdqe
cmp word [rbx + rax*2 - 2], r13w
je 0x140085b35
lea rdx, [0x140114ca4]
lea rcx, [rsp + 0x38]
call fcn.140061a7c
lea rcx, [rsp + 0x38]
mov rdx, rsi
call fcn.140061a7c
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
movsxd rcx, eax
lea rsi, [rsi + rcx*2 + 2]
cmp word [rsi], r15w
jne 0x140085ade
mov rbp, qword [rsp + 0x40]
jmp 0x140085cc6
mov rsi, qword [rsp + 0xe0]
mov ecx, 9
movzx eax, word [rsi]
mov rbx, rsi
mov qword [rsp + 0x40], rbx
cmp ax, r15w
je 0x140085ba6
lea edx, [rcx + 0x17]
cmp cx, ax
ja 0x140085b8f
cmp ax, 0xd
jbe 0x140085ba6
cmp dx, ax
je 0x140085ba6
add rbx, 2
mov qword [rsp + 0x40], rbx
mov ax, word [rbx]
cmp ax, r15w
jne 0x140085b84
sub rbx, rsi
lea rcx, [rsp + 0x60]
mov rdx, rsi
sar rbx, 1
lea eax, [rbx + 1]
movsxd r8, eax
call fcn.14006d8d4
cmp ebx, r15d
jle 0x140085bcf
movsxd rax, ebx
cmp word [rsi + rax*2 - 2], r13w
jne 0x140085bd2
mov r13d, r15d
movsxd rax, ebx
mov rbx, qword [rsp + 0x60]
lea rcx, [rsp + 0x40]
mov word [rbx + rax*2], r13w
call fcn.140059340
mov rsi, qword [rsp + 0x40]
cmp word [rsi], r15w
jne 0x140085c0b
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x38]
call fcn.14006d930
jmp 0x140085cbc
mov r13d, 9
mov rax, qword [rsp + 0x38]
cmp word [rax], r15w
je 0x140085c2d
lea rdx, [0x140119038]
lea rcx, [rsp + 0x38]
call fcn.140061a7c
lea rcx, [rsp + 0x38]
mov rdx, rbx
call fcn.140061a7c
movzx eax, word [rsi]
mov rdx, rsi
cmp ax, r15w
je 0x140085c6e
mov ecx, 0x20
cmp r13w, ax
ja 0x140085c57
cmp ax, 0xd
jbe 0x140085c6e
cmp cx, ax
je 0x140085c6e
add rsi, 2
mov qword [rsp + 0x40], rsi
mov ax, word [rsi]
cmp ax, r15w
jne 0x140085c4b
sub rsi, rdx
lea rcx, [rsp + 0xa8]
sar rsi, 1
mov r8, rsi
call fcn.14006d8d4
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x38]
call fcn.140061a7c
lea rcx, [rsp + 0x40]
call fcn.140059340
lea rcx, [rsp + 0xa8]
call fcn.140059370
mov rsi, qword [rsp + 0x40]
cmp word [rsi], r15w
jne 0x140085c11
lea rcx, [rsp + 0x60]
call fcn.140059370
bt dword [rsp + 0x110], 9
jb 0x140085d48
cmp byte [rsp + 0x31], r15b
jne 0x140085d48
cmp r12b, r15b
je 0x140085d48
cmp r14w, r15w
je 0x140085d48
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.14006d910
mov rcx, qword [rsp + 0x40]
call fcn.14005e62c
cmp rax, r15
jne 0x140085d08
mov rax, qword [rsp + 0x40]
jmp 0x140085d0c
add rax, 2
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x2e]
call qword [sym.imp.SHLWAPI.DLL_StrRChrW]
cmp rax, r15
jne 0x140085d3e
lea rdx, [0x1401151f8]
lea rcx, [rsp + 0x38]
call fcn.140061a7c
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.140061a7c
lea rcx, [rsp + 0x40]
call fcn.140059370
lea rcx, [rsp + 0x48]
call fcn.140059370
jmp 0x140085e56
xor edx, edx
lea rcx, [rsp + 0x158]
lea r8d, [rdx + 0x38]
call fcn.1400fa350
xor eax, eax
xor r15d, 0x40
mov qword [rsp + 0x158], rax
mov word [rsp + 0x190], ax
mov word [rsp + 0x3a0], ax
lea rax, [rsp + 0x3a0]
mov dword [rsp + 0x170], r15d
xor r15d, r15d
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x150], r12
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x178], rbp
mov qword [rsp + 0x180], rax
cmp rsi, r15
je 0x140085de9
lea rax, [0x140066dd8]
mov qword [rsp + 0x180], rsi
mov qword [rsp + 0x178], rax
lea rcx, [rsp + 0x150]
call qword [sym.imp.SHELL32.DLL_SHBrowseForFolderW]
mov rbx, rax
cmp rax, r15
je 0x140085e56
lea rdx, [rsp + 0x190]
mov rcx, rax
call qword [sym.imp.SHELL32.DLL_SHGetPathFromIDListW]
cmp eax, r15d
je 0x140085e27
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x38]
call fcn.14006d930
lea r8, [0x1401346e8]
lea rdx, [0x14011deb8]
lea rcx, [0x14011e420]
xor r9d, r9d
call fcn.14005aa8c
mov r11, qword [0x1401346e8]
cmp r11, r15
je 0x140085e56
mov rcx, rbx
call r11
cmp rbp, r15
jne 0x140085ea2
mov rax, qword [rsp + 0x608]
mov rdx, qword [rsp + 0x38]
cmp rax, r15
je 0x140085e77
mov rcx, rax
call fcn.14006d9c8
jmp 0x140085ea2
lea rcx, [rsp + 0x60]
call fcn.14006d8b0
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x5f0]
call fcn.140060d64
lea rcx, [rsp + 0x60]
call fcn.140059370
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
call fcn.14001dfa0
lea rcx, [rsp + 0x38]
call fcn.140059370
lea rcx, [rsp + 0x68]
call fcn.140059370
lea rcx, [rsp + 0x78]
call fcn.140059370
lea rcx, [rsp + 0x70]
call fcn.140059370
lea rcx, [rsp + 0x88]
call fcn.140059370
lea rcx, [rsp + 0x58]
call fcn.140059370
lea rcx, [rsp + 0x90]
call fcn.140059370
lea rcx, [rsp + 0x80]
call fcn.140059370
mov rbx, qword [rsp + 0x600]
xor eax, eax
add rsp, 0x5b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret