Function at 0x14007d30c
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, 0x5a0
mov rbx, rcx
lea rcx, [rsp + 0x70]
mov edx, 0x20a
mov r15, r8
call fcn.14005c9e0
mov rdx, qword [rsp + 0x70]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x80]
call fcn.14005c96c
lea rcx, [rsp + 0x5e8]
xor r12d, r12d
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], r12
call fcn.140054c14
lea esi, [r12 + 4]
lea rdx, [rsp + 0x5e8]
lea rcx, str._fix
mov r8d, esi
call fcn.14005f144
lea rdi, [0x1400fd538]
lea rcx, [rsp + 0x48]
mov rdx, rdi
mov r13b, al
call fcn.1400671f0
lea rcx, [rsp + 0x78]
mov rdx, rdi
call fcn.1400671f0
lea rcx, [rsp + 0x58]
mov rdx, rdi
call fcn.1400671f0
lea rcx, [rsp + 0x68]
mov rdx, rdi
call fcn.1400671f0
mov r11, qword [rsp + 0x5e8]
lea rcx, str.raw
mov rdx, r11
mov r8d, esi
mov r14d, r12d
mov dword [rsp + 0x30], r12d
mov byte [rsp + 0x21], r12b
mov bpl, r12b
mov byte [rsp + 0x20], r12b
call fcn.140056100
cmp al, r12b
je 0x14007d42f
add r11, 8
lea rcx, [rsp + 0x5e8]
mov byte [rsp + 0x20], 1
mov qword [rsp + 0x5e8], r11
call fcn.140054c14
mov edi, 0x2c
lea rdx, [rsp + 0x5e8]
lea rcx, [rsp + 0x80]
mov r8d, edi
mov r9b, 1
call fcn.1400747d0
lea rdx, [rsp + 0x48]
xor r8d, r8d
mov rcx, rax
call fcn.1400604ac
lea rdx, [rsp + 0x48]
xor r8d, r8d
mov rcx, rbx
call fcn.14000396c
mov r11, qword [rsp + 0x48]
cmp word [r11], r12w
je 0x14007dce5
mov rbx, qword [rsp + 0x5e8]
mov rcx, rbx
call fcn.14005c480
cmp word [rax], di
jne 0x14007d49f
add rbx, 2
mov qword [rsp + 0x5e8], rbx
lea rcx, [rsp + 0x5e8]
call fcn.140054c14
mov rcx, qword [rsp + 0x5e8]
movzx eax, word [rcx]
cmp ax, r12w
je 0x14007d4f0
mov edx, 0x26
cmp dx, ax
jne 0x14007d4ce
mov byte [rsp + 0x21], 1
jmp 0x14007d4db
mov edx, 0x2a
cmp dx, ax
jne 0x14007d4e8
mov bpl, 1
add rcx, 2
mov ax, word [rcx]
cmp ax, r12w
jne 0x14007d4bd
mov qword [rsp + 0x5e8], rcx
lea rcx, [rsp + 0x5e8]
call fcn.140054c14
lea rdx, [rsp + 0x5e8]
lea rcx, [rsp + 0x80]
mov r8d, edi
mov r9b, 1
call fcn.1400747d0
lea rdx, [rsp + 0x78]
xor r8d, r8d
mov rcx, rax
call fcn.1400604ac
mov rcx, qword [rsp + 0x78]
call fcn.14001a310
mov rbx, qword [rsp + 0x5e8]
mov rcx, rbx
mov rsi, rax
call fcn.14005c480
cmp word [rax], di
jne 0x14007d589
lea rdx, [rsp + 0x5e8]
lea rcx, [rsp + 0x80]
add rbx, 2
mov r8d, edi
mov r9b, 1
mov qword [rsp + 0x5e8], rbx
call fcn.1400747d0
lea rdx, [rsp + 0x58]
xor r8d, r8d
mov rcx, rax
call fcn.1400604ac
mov rbx, qword [rsp + 0x5e8]
mov rcx, rbx
call fcn.14005c480
cmp word [rax], di
jne 0x14007d5d5
lea rdx, [rsp + 0x5e8]
lea rcx, [rsp + 0x80]
add rbx, 2
mov r8d, edi
mov r9b, 1
mov qword [rsp + 0x5e8], rbx
call fcn.1400747d0
lea rdx, [rsp + 0x68]
xor r8d, r8d
mov rcx, rax
call fcn.1400604ac
mov rbx, qword [rsp + 0x5e8]
mov rcx, rbx
call fcn.14005c480
cmp word [rax], di
jne 0x14007d61f
lea rdx, [rsp + 0x5e8]
lea rcx, [rsp + 0x80]
add rbx, 2
mov r8d, edi
mov r9b, 1
mov qword [rsp + 0x5e8], rbx
call fcn.1400747d0
lea rdx, [rsp + 0x30]
movzx r8d, di
mov rcx, rax
call fcn.140060844
mov r14d, dword [rsp + 0x30]
lea rcx, [rsp + 0x50]
mov rdx, rsi
mov rdi, r12
call fcn.1400671f0
mov rbx, qword [rsp + 0x50]
xor esi, esi
mov r12d, 0x5c
cmp word [rbx], si
je 0x14007d6a6
cmp r13b, sil
je 0x14007d6a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp word [rbx], si
je 0x14007d6a3
lea eax, [rsi + 0x3a]
cmp ax, word [rbx + 2]
jne 0x14007d6a3
cmp r12w, word [rbx + 4]
jne 0x14007d6a3
lea r13d, [r12 - 0x2e]
cmp r13w, word [rbx + 6]
je 0x14007d6a3
lea eax, [rdi + 8]
lea rcx, [rsp + 0x50]
movsxd rdx, eax
call fcn.14005ca6c
mov rbx, qword [rsp + 0x50]
lea r11d, [rdi + 2]
movsxd r8, r11d
lea rdx, [rbx + 4]
lea rcx, [rbx + 8]
add r8, r8
call fcn.14001bd38
mov word [rbx + 6], r13w
mov rdi, rbx
lea rcx, [rsp + 0x28]
call fcn.14005c96c
mov rcx, r15
call fcn.140058aa0
mov r13, rax
cmp bpl, sil
jne 0x14007db96
lea rdx, [0x140107c80]
lea rcx, [rsp + 0x40]
or r8, 0xffffffffffffffff
mov rbp, rsi
call fcn.140067230
mov rdi, qword [rsp + 0x68]
mov r15w, word [rdi]
cmp r15w, si
je 0x14007d790
mov edx, 0x7c
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rdx, rdi
lea rcx, [rsp + 0x40]
cmp rax, rsi
je 0x14007d749
call fcn.140067270
lea rdx, [0x140107c7c]
lea rcx, [rsp + 0x40]
call fcn.14005caa8
mov rbp, qword [rsp + 0x40]
mov r15d, esi
mov rax, rbp
cmp word [rbp], si
je 0x14007d790
mov ecx, 0x7c
cmp word [rax], cx
jne 0x14007d73e
mov word [rax], si
add rax, 2
cmp word [rax], si
jne 0x14007d736
jmp 0x14007d790
call fcn.14005caa8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rsi, eax
lea ecx, [rsi + rsi + 6]
movsxd rdx, ecx
lea rcx, [rsp + 0x40]
call fcn.14005ca6c
mov rbp, qword [rsp + 0x40]
lea r11d, [rsi + 1]
movsxd rcx, r11d
mov rdx, rbp
lea r8, [rcx + rcx]
lea rcx, [r8 + rbp]
call fcn.14001bd80
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 + 0x50]
call fcn.14005ca6c
mov rax, rbx
mov r11d, esi
sub r11d, ebx
mov rbx, qword [rsp + 0x50]
xor edx, edx
add r11d, 8
lea rcx, [rbx + rax*2]
movsxd r8, r11d
add r8, r8
call fcn.1400e16a0
lea rcx, [rsp + 0xb0]
xor edx, edx
mov r8d, 0x88
mov dword [rsp + 0xa0], 0x98
call fcn.1400e16a0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa8], r13
movzx ecx, word [rax]
mov dword [rsp + 0xd8], esi
mov qword [rsp + 0xd0], rbx
neg cx
mov qword [rsp + 0xb8], rbp
sbb rdx, rdx
xor esi, esi
and rdx, rax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0xcc], esi
or eax, r14d
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0xe0], rsi
bt eax, 0x12
mov dword [rsp + 0xe8], esi
mov qword [rsp + 0xf0], rsi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x100], eax
jb 0x14007d87f
bts eax, 0x15
mov dword [rsp + 0x100], eax
call fcn.140056238
mov r13b, byte [rsp + 0x21]
lea rcx, [rsp + 0xa0]
cmp r13b, sil
je 0x14007d89e
call qword [0x14011c2e0]
jmp 0x14007d8a4
call qword [0x14011c2d8]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], eax
call fcn.14005c480
cmp dword [rax], 1
je 0x14007d8c6
lea rcx, [rsp + 0x40]
call fcn.140054c44
jmp 0x14007dc7a
bt dword [rsp + 0x100], 9
jb 0x14007d8e8
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x28]
call fcn.140067270
jmp 0x14007daff
bt dword [rsp + 0x100], 0x13
jae 0x14007d9b0
mov rbp, qword [rsp + 0xd0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r14d, r14d
movsxd rcx, eax
lea rsi, [rbp + rcx*2 + 2]
cmp word [rsi], r14w
jne 0x14007d930
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x28]
call fcn.140067270
jmp 0x14007dafd
mov rax, qword [rsp + 0x28]
cmp word [rax], r14w
je 0x14007d94c
lea rdx, [0x1400fdcd8]
lea rcx, [rsp + 0x28]
call fcn.14005caa8
lea rcx, [rsp + 0x28]
mov rdx, rbp
call fcn.14005caa8
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, r14d
jle 0x14007d987
cdqe
cmp word [rbx + rax*2 - 2], r12w
je 0x14007d987
lea rdx, [0x1401012d4]
lea rcx, [rsp + 0x28]
call fcn.14005caa8
lea rcx, [rsp + 0x28]
mov rdx, rsi
call fcn.14005caa8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rsi, [rsi + rcx*2 + 2]
cmp word [rsi], r14w
jne 0x14007d930
jmp 0x14007dafd
mov rsi, qword [rsp + 0xd0]
mov ecx, 9
xor ebp, ebp
movzx eax, word [rsi]
mov rbx, rsi
lea r14d, [rcx + 0x17]
jmp 0x14007d9e3
cmp cx, ax
ja 0x14007d9d6
cmp ax, 0xd
jbe 0x14007d9ed
cmp r14w, ax
je 0x14007d9ed
add rbx, 2
mov ax, word [rbx]
mov qword [rsp + 0x38], rbx
cmp ax, bp
jne 0x14007d9cb
sub rbx, rsi
lea rcx, [rsp + 0x60]
mov rdx, rsi
sar rbx, 1
lea eax, [rbx + 1]
movsxd r8, eax
call fcn.140067214
cmp ebx, ebp
jle 0x14007da15
movsxd rax, ebx
cmp word [rsi + rax*2 - 2], r12w
jne 0x14007da18
mov r12d, ebp
movsxd rax, ebx
mov rbx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
mov word [rbx + rax*2], r12w
call fcn.140054c14
mov rsi, qword [rsp + 0x38]
cmp word [rsi], bp
jne 0x14007da50
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x28]
call fcn.140067270
jmp 0x14007daf3
mov r12d, 9
mov rax, qword [rsp + 0x28]
cmp word [rax], bp
je 0x14007da71
lea rdx, [0x1400fdcd8]
lea rcx, [rsp + 0x28]
call fcn.14005caa8
lea rcx, [rsp + 0x28]
mov rdx, rbx
call fcn.14005caa8
mov rdx, rsi
jmp 0x14007da9e
cmp r12w, ax
ja 0x14007da8f
cmp ax, 0xd
jbe 0x14007daa6
cmp r14w, ax
je 0x14007daa6
add rsi, 2
mov qword [rsp + 0x38], rsi
movzx eax, word [rsi]
cmp ax, bp
jne 0x14007da83
sub rsi, rdx
lea rcx, [rsp + 0x98]
sar rsi, 1
mov r8, rsi
call fcn.140067214
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x28]
call fcn.14005caa8
lea rcx, [rsp + 0x38]
call fcn.140054c14
lea rcx, [rsp + 0x98]
call fcn.140054c44
mov rsi, qword [rsp + 0x38]
cmp word [rsi], bp
jne 0x14007da56
lea rcx, [rsp + 0x60]
call fcn.140054c44
xor esi, esi
bt dword [rsp + 0x100], 9
jb 0x14007d8b7
cmp byte [rsp + 0x20], sil
jne 0x14007d8b7
cmp r13b, sil
je 0x14007d8b7
cmp r15w, si
je 0x14007d8b7
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140067250
mov rcx, qword [rsp + 0x38]
call fcn.140059ae4
cmp rax, rsi
jne 0x14007db51
mov rax, qword [rsp + 0x38]
jmp 0x14007db55
add rax, 2
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x2e]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, rsi
jne 0x14007db87
lea rdx, [0x1400fdfc0]
lea rcx, [rsp + 0x28]
call fcn.14005caa8
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.14005caa8
lea rcx, [rsp + 0x38]
call fcn.140054c44
jmp 0x14007d8b7
xor edx, edx
lea rcx, [rsp + 0x148]
lea r8d, [rdx + 0x38]
call fcn.1400e16a0
lea rax, [rsp + 0x390]
or r14d, 0x40
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x140], r13
mov qword [rsp + 0x148], rsi
mov word [rsp + 0x180], si
mov word [rsp + 0x390], si
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x160], r14d
cmp rdi, rsi
je 0x14007dc0e
lea rax, [0x1400619f4]
mov qword [rsp + 0x170], rdi
mov qword [rsp + 0x168], rax
lea rcx, [rsp + 0x140]
call qword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov rbx, rax
cmp rax, rsi
je 0x14007dc7a
lea rdx, [rsp + 0x180]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, esi
je 0x14007dc4b
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x28]
call fcn.140067270
lea r8, [0x14011c5c8]
lea rdx, str.OLE32.DLL
lea rcx, str.CoTaskMemFree
xor r9d, r9d
call fcn.1400561c8
mov r11, qword [0x14011c5c8]
cmp r11, rsi
je 0x14007dc7a
mov rcx, rbx
call r11
mov rax, qword [rsp + 0x5f8]
mov rdx, qword [rsp + 0x28]
cmp rax, rsi
je 0x14007dc96
mov rcx, rax
call fcn.140067308
jmp 0x14007dcc1
lea rcx, [rsp + 0x60]
call fcn.1400671f0
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x5e0]
call fcn.14005be18
lea rcx, [rsp + 0x60]
call fcn.140054c44
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.14001c854
lea rcx, [rsp + 0x28]
call fcn.140054c44
lea rcx, [rsp + 0x50]
call fcn.140054c44
lea rcx, [rsp + 0x68]
call fcn.140054c44
lea rcx, [rsp + 0x58]
call fcn.140054c44
lea rcx, [rsp + 0x78]
call fcn.140054c44
lea rcx, [rsp + 0x48]
call fcn.140054c44
lea rcx, [rsp + 0x80]
call fcn.140054c44
lea rcx, [rsp + 0x70]
call fcn.140054c44
mov rbx, qword [rsp + 0x5f0]
xor eax, eax
add rsp, 0x5a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret