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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5b8
mov rbx, rcx
lea rcx, [rax - 0x578]
mov edx, 0x20a
call fcn.14004bedc
mov rdx, qword [rsp + 0x80]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0x88]
call fcn.14004be6c
lea rcx, [rsp + 0x608]
xor r13d, r13d
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x98], r13
call fcn.140044ef4
lea esi, [r13 + 4]
lea rdx, [rsp + 0x608]
lea rcx, str._fix
mov r8d, esi
call fcn.14004e558
lea rdi, [0x1400d63f4]
lea rcx, [rsp + 0x50]
mov rdx, rdi
mov r14b, al
call fcn.140058920
lea rcx, [rsp + 0x70]
mov rdx, rdi
call fcn.140058920
lea rcx, [rsp + 0x68]
mov rdx, rdi
call fcn.140058920
lea rcx, [rsp + 0x78]
mov rdx, rdi
call fcn.140058920
mov r11, qword [rsp + 0x608]
lea rcx, str.raw
mov rdx, r11
mov r8d, esi
mov r15d, r13d
mov dword [rsp + 0x30], r13d
mov byte [rsp + 0x20], r13b
mov r12b, r13b
mov byte [rsp + 0x21], r13b
call fcn.140045f78
cmp al, r13b
je 0x140071fe9
add r11, 8
lea rcx, [rsp + 0x608]
mov byte [rsp + 0x21], 1
mov qword [rsp + 0x608], r11
call fcn.140044ef4
mov edi, 0x2c
lea rdx, [rsp + 0x608]
lea rcx, [rsp + 0x88]
mov r8d, edi
mov r9b, 1
call fcn.14005add0
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rax
call fcn.14004f5d4
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call fcn.1400035d0
mov rsi, qword [rsp + 0x50]
cmp word [rsi], r13w
je 0x1400728ad
mov rbx, qword [rsp + 0x608]
mov rcx, rbx
call fcn.14004b91c
cmp word [rax], di
jne 0x140072059
add rbx, 2
mov qword [rsp + 0x608], rbx
lea rcx, [rsp + 0x608]
call fcn.140044ef4
mov rcx, qword [rsp + 0x608]
movzx eax, word [rcx]
cmp ax, r13w
je 0x1400720aa
mov edx, 0x26
cmp dx, ax
jne 0x140072088
mov byte [rsp + 0x20], 1
jmp 0x140072095
mov edx, 0x2a
cmp dx, ax
jne 0x1400720a2
mov r12b, 1
add rcx, 2
mov ax, word [rcx]
cmp ax, r13w
jne 0x140072077
mov qword [rsp + 0x608], rcx
lea rcx, [rsp + 0x608]
call fcn.140044ef4
lea rdx, [rsp + 0x608]
lea rcx, [rsp + 0x88]
mov r8d, edi
mov r9b, 1
call fcn.14005add0
lea rdx, [rsp + 0x70]
xor r8d, r8d
mov rcx, rax
call fcn.14004f5d4
mov rcx, qword [rsp + 0x70]
call fcn.140015cb4
mov rbx, qword [rsp + 0x608]
mov rcx, rbx
mov rbp, rax
call fcn.14004b91c
cmp word [rax], di
jne 0x140072143
lea rdx, [rsp + 0x608]
lea rcx, [rsp + 0x88]
add rbx, 2
mov r8d, edi
mov r9b, 1
mov qword [rsp + 0x608], rbx
call fcn.14005add0
lea rdx, [rsp + 0x68]
xor r8d, r8d
mov rcx, rax
call fcn.14004f5d4
mov rbx, qword [rsp + 0x608]
mov rcx, rbx
call fcn.14004b91c
cmp word [rax], di
jne 0x14007218f
lea rdx, [rsp + 0x608]
lea rcx, [rsp + 0x88]
add rbx, 2
mov r8d, edi
mov r9b, 1
mov qword [rsp + 0x608], rbx
call fcn.14005add0
lea rdx, [rsp + 0x78]
xor r8d, r8d
mov rcx, rax
call fcn.14004f5d4
mov rbx, qword [rsp + 0x608]
mov rcx, rbx
call fcn.14004b91c
cmp word [rax], di
jne 0x1400721d9
lea rdx, [rsp + 0x608]
lea rcx, [rsp + 0x88]
add rbx, 2
mov r8d, edi
mov r9b, 1
mov qword [rsp + 0x608], rbx
call fcn.14005add0
lea rdx, [rsp + 0x30]
movzx r8d, di
mov rcx, rax
call fcn.14004f968
mov r15d, dword [rsp + 0x30]
lea rcx, [rsp + 0x48]
mov rdx, rbp
mov rdi, r13
call fcn.140058920
mov rbx, qword [rsp + 0x48]
xor ebp, ebp
mov r13d, 0x5c
cmp word [rbx], bp
je 0x14007225c
cmp r14b, bpl
je 0x140072259
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp word [rbx], bp
je 0x140072259
lea eax, [rbp + 0x3a]
cmp ax, word [rbx + 2]
jne 0x140072259
cmp r13w, word [rbx + 4]
jne 0x140072259
lea r14d, [r13 - 0x2e]
cmp r14w, word [rbx + 6]
je 0x140072259
lea edx, [rdi + 8]
lea rcx, [rsp + 0x48]
call fcn.14004bf70
mov rbx, qword [rsp + 0x48]
lea r11d, [rdi + 2]
movsxd r8, r11d
lea rdx, [rbx + 4]
lea rcx, [rbx + 8]
add r8, r8
call fcn.1400177b0
mov word [rbx + 6], r14w
mov rdi, rbx
lea rcx, [rsp + 0x28]
call fcn.14004be6c
mov rcx, qword [rsp + 0x610]
call fcn.1400486a4
mov r14, rax
cmp r12b, bpl
jne 0x14007275d
lea rdx, [0x1400df6b8]
lea rcx, [rsp + 0x40]
or r8d, 0xffffffff
mov r12, rbp
call fcn.140058960
mov rdi, qword [rsp + 0x78]
mov ax, word [rdi]
mov dword [rsp + 0x58], eax
cmp ax, bp
je 0x14007234d
mov edx, 0x7c
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rdx, rdi
lea rcx, [rsp + 0x40]
cmp rax, rbp
je 0x140072308
call fcn.1400589a0
lea rdx, [0x1400df6b4]
lea rcx, [rsp + 0x40]
call fcn.14004bfa8
mov r12, qword [rsp + 0x40]
mov dword [rsp + 0x58], ebp
mov rax, r12
cmp word [r12], bp
je 0x14007234d
mov ecx, 0x7c
cmp word [rax], cx
jne 0x1400722fd
mov word [rax], bp
add rax, 2
cmp word [rax], bp
jne 0x1400722f5
jmp 0x14007234d
call fcn.14004bfa8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x40]
movsxd rbp, eax
lea edx, [rbp + rbp + 6]
call fcn.14004bf70
mov r12, qword [rsp + 0x40]
lea r11d, [rbp + 1]
movsxd rcx, r11d
mov rdx, r12
lea r8, [rcx + rcx]
lea rcx, [r8 + r12]
call fcn.1400177f8
xor eax, eax
mov word [r12 + rbp*4 + 4], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x48]
movsxd rbx, eax
mov eax, 0x3f7a2
lea ebp, [rbx + rbx + 0x10]
cmp ebp, 0x3f7a0
cmovle ebp, eax
lea edx, [rbp + 8]
call fcn.14004bf70
mov rax, rbx
mov r11d, ebp
sub r11d, ebx
mov rbx, qword [rsp + 0x48]
xor edx, edx
add r11d, 8
lea rcx, [rbx + rax*2]
movsxd r8, r11d
add r8, r8
call fcn.1400b93b0
lea rcx, [rsp + 0xc0]
xor edx, edx
mov r8d, 0x88
mov dword [rsp + 0xb0], 0x98
call fcn.1400b93b0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xb8], r14
movzx ecx, word [rax]
mov dword [rsp + 0xe8], ebp
mov qword [rsp + 0xe0], rbx
neg cx
mov qword [rsp + 0xc8], r12
sbb rdx, rdx
xor ebp, ebp
and rdx, rax
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0xdc], ebp
or eax, r15d
mov qword [rsp + 0x108], rdx
mov qword [rsp + 0xf0], rbp
bt eax, 0x12
mov dword [rsp + 0xf8], ebp
mov qword [rsp + 0x100], rbp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x110], eax
jb 0x140072439
bts eax, 0x15
mov dword [rsp + 0x110], eax
call fcn.140046094
mov r14b, byte [rsp + 0x20]
lea rcx, [rsp + 0xb0]
cmp r14b, bpl
je 0x140072458
call qword [0x1400f2088]
jmp 0x14007245e
call qword [0x1400f2080]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], eax
call fcn.14004b91c
cmp dword [rax], 1
je 0x140072480
lea rcx, [rsp + 0x40]
call fcn.140044f24
jmp 0x140072841
bt dword [rsp + 0x110], 9
jb 0x1400724a2
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
call fcn.1400589a0
jmp 0x1400726c5
bt dword [rsp + 0x110], 0x13
jae 0x14007256d
mov r12, qword [rsp + 0xe0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r15d, r15d
inc eax
cdqe
lea rbp, [r12 + rax*2]
cmp word [rbp], r15w
jne 0x1400724eb
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
call fcn.1400589a0
jmp 0x1400726c3
mov rax, qword [rsp + 0x28]
cmp word [rax], r15w
je 0x140072507
lea rdx, [0x1400d91e8]
lea rcx, [rsp + 0x28]
call fcn.14004bfa8
lea rcx, [rsp + 0x28]
mov rdx, r12
call fcn.14004bfa8
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, r15d
jle 0x140072542
cdqe
cmp word [rbx + rax*2 - 2], r13w
je 0x140072542
lea rdx, [0x1400d6778]
lea rcx, [rsp + 0x28]
call fcn.14004bfa8
lea rcx, [rsp + 0x28]
mov rdx, rbp
call fcn.14004bfa8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
lea rbp, [rbp + rax*2]
cmp word [rbp], r15w
jne 0x1400724eb
jmp 0x1400726c3
mov rbp, qword [rsp + 0xe0]
mov ecx, 9
xor r12d, r12d
movzx eax, word [rbp]
mov rbx, rbp
lea r15d, [rcx + 0x17]
jmp 0x1400725a2
cmp cx, ax
ja 0x140072595
cmp ax, 0xd
jbe 0x1400725ad
cmp r15w, ax
je 0x1400725ad
add rbx, 2
mov ax, word [rbx]
mov qword [rsp + 0x38], rbx
cmp ax, r12w
jne 0x14007258a
sub rbx, rbp
lea rcx, [rsp + 0x60]
mov rdx, rbp
sar rbx, 1
lea r8d, [rbx + 1]
call fcn.140058944
cmp ebx, r12d
jle 0x1400725d4
movsxd rax, ebx
cmp word [rbp + rax*2 - 2], r13w
jne 0x1400725d7
mov r13d, r12d
movsxd rax, ebx
mov rbx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
mov word [rbx + rax*2], r13w
call fcn.140044ef4
mov rbp, qword [rsp + 0x38]
cmp word [rbp], r12w
jne 0x140072611
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
call fcn.1400589a0
jmp 0x1400726b9
mov r13d, 9
mov rax, qword [rsp + 0x28]
cmp word [rax], r12w
je 0x140072633
lea rdx, [0x1400d91e8]
lea rcx, [rsp + 0x28]
call fcn.14004bfa8
lea rcx, [rsp + 0x28]
mov rdx, rbx
call fcn.14004bfa8
mov rdx, rbp
jmp 0x140072660
cmp r13w, ax
ja 0x140072651
cmp ax, 0xd
jbe 0x14007266a
cmp r15w, ax
je 0x14007266a
add rbp, 2
mov qword [rsp + 0x38], rbp
movzx eax, word [rbp]
cmp ax, r12w
jne 0x140072645
sub rbp, rdx
lea rcx, [rsp + 0xa0]
sar rbp, 1
mov r8d, ebp
call fcn.140058944
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x28]
call fcn.14004bfa8
lea rcx, [rsp + 0x38]
call fcn.140044ef4
lea rcx, [rsp + 0xa0]
call fcn.140044f24
mov rbp, qword [rsp + 0x38]
cmp word [rbp], r12w
jne 0x140072617
lea rcx, [rsp + 0x60]
call fcn.140044f24
xor ebp, ebp
bt dword [rsp + 0x110], 9
jb 0x140072471
cmp byte [rsp + 0x21], bpl
jne 0x140072471
cmp r14b, bpl
je 0x140072471
cmp word [rsp + 0x58], bp
je 0x140072471
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140058980
mov rcx, qword [rsp + 0x38]
call fcn.140049814
cmp rax, rbp
jne 0x140072718
mov rax, qword [rsp + 0x38]
jmp 0x14007271c
add rax, 2
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x2e]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, rbp
jne 0x14007274e
lea rdx, [0x1400d7174]
lea rcx, [rsp + 0x28]
call fcn.14004bfa8
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.14004bfa8
lea rcx, [rsp + 0x38]
call fcn.140044f24
jmp 0x140072471
xor edx, edx
lea rcx, [rsp + 0x158]
lea r8d, [rdx + 0x38]
call fcn.1400b93b0
lea rax, [rsp + 0x3a0]
or r15d, 0x40
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x150], r14
mov qword [rsp + 0x158], rbp
mov word [rsp + 0x190], bp
mov word [rsp + 0x3a0], bp
mov qword [rsp + 0x168], rax
mov dword [rsp + 0x170], r15d
cmp rdi, rbp
je 0x1400727d5
lea rax, [0x14005093c]
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x178], rax
lea rcx, [rsp + 0x150]
call qword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov rbx, rax
cmp rax, rbp
je 0x140072841
lea rdx, [rsp + 0x190]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp eax, ebp
je 0x140072812
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x28]
call fcn.1400589a0
lea r8, [0x1400f2338]
lea rdx, str.OLE32.DLL
lea rcx, str.CoTaskMemFree
xor r9d, r9d
call fcn.140046024
mov r11, qword [0x1400f2338]
cmp r11, rbp
je 0x140072841
mov rcx, rbx
call r11
mov rax, qword [rsp + 0x618]
mov rdx, qword [rsp + 0x28]
cmp rax, rbp
je 0x14007285d
mov rcx, rax
call fcn.140058a38
jmp 0x140072886
lea rcx, [rsp + 0x60]
call fcn.140058920
mov r8, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x600]
mov rdx, rsi
call fcn.14004b578
lea rcx, [rsp + 0x60]
call fcn.140044f24
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.1400179e4
lea rcx, [rsp + 0x28]
call fcn.140044f24
lea rcx, [rsp + 0x48]
call fcn.140044f24
lea rcx, [rsp + 0x78]
call fcn.140044f24
lea rcx, [rsp + 0x68]
call fcn.140044f24
lea rcx, [rsp + 0x70]
call fcn.140044f24
lea rcx, [rsp + 0x50]
call fcn.140044f24
lea rcx, [rsp + 0x88]
call fcn.140044f24
lea rcx, [rsp + 0x80]
call fcn.140044f24
xor eax, eax
add rsp, 0x5b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret