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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x630
mov rbp, qword [0x2bc041fd0]
mov rax, qword [rbp]
mov r12, r8
mov rdi, rcx
mov esi, edx
mov rbx, r9
mov edx, 0x38
lea rcx, [0x2bc0630a8]
call qword [rax + 0x998]
mov r8d, dword [rax]
test r8d, r8d
je 0x2bbee9a6c
mov rdx, qword [rbx + 0x410]
lea rcx, [sym.SetTkDialog]
mov qword [rax + 8], rdx
mov rax, qword [rbp]
mov rdx, rdi
call qword [rax + 0x3b0]
xor ecx, ecx
mov word [rbx + 0x208], cx
cmp esi, 2
je 0x2bbee9c18
cmp esi, 4
je 0x2bbee9ae8
cmp esi, 1
je 0x2bbee9aa0
xor eax, eax
add rsp, 0x630
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp word [rbx], 0x5c
je 0x2bbee9c90
mov rsi, qword [sym.imp.USER32.dll_SendMessageW]
mov r9, rbx
mov edx, 0x467
mov rcx, rdi
mov r8d, 1
call rsi
mov r9d, 1
xor r8d, r8d
mov edx, 0x465
mov rcx, rdi
call rsi
jmp 0x2bbee9a88
mov rax, qword [rbp]
lea rsi, [rsp + 0x130]
mov rcx, rsi
call qword [rax + 0x3e0]
mov rax, qword [rbp]
mov rcx, r12
mov rdi, qword [rax + 0xb20]
call sym.wcslen
mov rcx, r12
mov r8, rsi
lea r12, [rsp + 0x50]
mov rdx, rax
call rdi
mov rax, qword [rbp]
mov rcx, qword [rbx + 0x410]
mov r8, r12
mov rdx, qword [rsp + 0x130]
call qword [rax + 0x7d8]
test rax, rax
je 0x2bbee9c09
mov rax, qword [rbp]
xor edx, edx
mov rcx, rsi
lea rdi, [rsp + 0x420]
call qword [rax + 0x3f0]
mov rax, qword [rbp]
mov r8, rsi
mov rcx, qword [rsp + 0x50]
mov rdx, 0xffffffffffffffff
call qword [rax + 0xb28]
mov r8d, 0x104
mov rcx, rdi
mov rdx, rax
call sym.wcsncpy
mov rax, qword [rbp]
mov rcx, rsi
call qword [rax + 0x3d0]
mov rax, qword [rbp]
mov rcx, r12
call qword [rax + 0x3d0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x2bbee9d50
lea rsi, [rbx + 0x208]
mov edx, 0x104
xor r9d, r9d
mov rcx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edx, dword [rbx + 0x418]
test edx, edx
je 0x2bbee9a88
lea rdi, [rsp + 0x210]
mov r8, rsi
lea rdx, str.Directory__s_does_not_exist__nplease_select_or_enter_an_existing_directory.
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, 0x30
xor r8d, r8d
xor ecx, ecx
mov rdx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov word [rbx + 0x208], ax
jmp 0x2bbee9c4d
lea rbx, [rsp + 0x210]
mov rcx, r12
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x2bbee9c60
xor r9d, r9d
xor r8d, r8d
mov edx, 0x465
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
jmp 0x2bbee9a8a
mov r9, rbx
xor r8d, r8d
mov rcx, rdi
mov rbx, qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0x468
call rbx
mov r9d, 1
xor r8d, r8d
mov edx, 0x465
mov rcx, rdi
call rbx
jmp 0x2bbee9c44
lea rcx, [rsp + 0x130]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
mov rsi, qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x2bbee9acd
lea rcx, [rsp + 0x210]
call qword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x2bbee9d39
mov rcx, qword [rsp + 0x210]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov r9, rbx
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x420]
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x4c]
mov qword [rsp + 0x20], rdx
mov rdx, rdi
call qword [rax + 0x18]
test eax, eax
js 0x2bbee9d2b
mov r9, qword [rsp + 0x420]
test r9, r9
je 0x2bbee9d2b
mov edx, 0x467
mov rcx, rdi
xor r8d, r8d
call rsi
mov rcx, qword [rsp + 0x130]
mov rdx, qword [rsp + 0x420]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x210]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x130]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x2bbee9acd
lea rdx, [rbx + 0x208]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x2bbee9a88