Function at 0x10002da88
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xb40
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x10007d1c0]
xor rax, rsp
mov qword [rsp + 0xb30], rax
mov rbx, rcx
mov qword [rsp + 0x70], rcx
xor ebp, ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
add rcx, 0x18
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
lock or dword [rsp], ebp
lea rdx, [rsp + 0x330]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebp
jbe 0x10002db86
mov dword [rsp + 0x20], ebp
lea r9, [0x1000090e8]
lea r8, [rsp + 0x330]
mov edx, 0x104
lea rcx, [rsp + 0x120]
call fcn.1000155bc
cmp eax, ebp
jl 0x10002db86
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x30]
call fcn.100033c94
mov rsi, qword [rax]
mov qword [rax], rbp
mov rdi, qword [rbx + 0x10]
cmp rsi, rdi
je 0x10002db5e
cmp rdi, rbp
je 0x10002db5e
mov rcx, qword [rdi]
call fcn.100033f8c
mov rcx, rdi
call sub.msvcrt.dll_free
mov qword [rbx + 0x10], rsi
mov rdi, qword [rsp + 0x30]
cmp rdi, rbp
je 0x10002db7c
mov rcx, qword [rdi]
call fcn.100033f8c
mov rcx, rdi
call sub.msvcrt.dll_free
cmp qword [rbx + 0x10], rbp
jne 0x10002dd46
mov qword [rsp + 0x28], rbp
lea rax, [rsp + 0x330]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
xor r8d, r8d
lea rdx, [0x1000090e8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, ebp
jne 0x10002dc51
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, 0xf
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbp
mov byte [rsp + 0x48], bpl
lea r8d, [rbx + 8]
lea rdx, [0x1000065f0]
lea rcx, [rsp + 0x40]
call fcn.100015edc
nop
lea rcx, [rsp + 0xa0]
call fcn.1000685aa
nop
lea rax, [0x100003578]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xd0], rbp
mov byte [rsp + 0xc0], bpl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xb8]
call fcn.100015bcc
nop
lea rdx, [0x100079a98]
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0x38]
call fcn.100033c94
mov rsi, qword [rax]
mov qword [rax], rbp
mov rdi, qword [rbx + 0x10]
cmp rsi, rdi
je 0x10002dc87
cmp rdi, rbp
je 0x10002dc87
mov rcx, qword [rdi]
call fcn.100033f8c
mov rcx, rdi
call sub.msvcrt.dll_free
mov qword [rbx + 0x10], rsi
mov rdi, qword [rsp + 0x38]
cmp rdi, rbp
je 0x10002dca5
mov rcx, qword [rdi]
call fcn.100033f8c
mov rcx, rdi
call sub.msvcrt.dll_free
cmp qword [rbx + 0x10], rbp
jne 0x10002dd46
mov ebx, 0xf
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x90], rbp
mov byte [rsp + 0x80], bpl
lea r8d, [rbx + 8]
lea rdx, [0x100006608]
lea rcx, [rsp + 0x78]
call fcn.100015edc
nop
lea rcx, [rsp + 0xe0]
call fcn.1000685aa
nop
lea rax, [0x100003578]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0x110], rbp
mov byte [rsp + 0x100], bpl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xf8]
call fcn.100015bcc
nop
lea rdx, [0x100079a98]
lea rcx, [rsp + 0xe0]
call sub.msvcrt.dll__CxxThrowException
nop
mov qword [0x100081688], rbx
mov rax, rbx
mov rcx, qword [rsp + 0xb30]
xor rcx, rsp
call fcn.100068440
lea r11, [rsp + 0xb40]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret