Function at 0x140049a1d
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x308
mov rbx, r9
mov rbp, r8
mov r13, rdx
mov rsi, rcx
mov r15, qword [rsp + 0x3a0]
mov r14, qword [rsp + 0x390]
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x300], rax
call fcn.1400012b8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.1400077a2
test al, al
je 0x140049ad2
mov rax, qword [rsp + 0x398]
mov rcx, qword [rsp + 0x388]
mov edx, dword [rsp + 0x380]
mov edi, dword [rsp + 0x378]
mov r9, qword [rsp + 0x370]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], edi
mov rcx, r13
mov rdx, rbp
mov r8, rbx
call rsi
mov esi, 1
test eax, eax
jne 0x140049ce9
call fcn.1400012b8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140007792
xor esi, esi
test al, al
je 0x140049ce9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov edx, 0x18
mov rcx, r15
mov r8d, 1
call fcn.14001a89a
test al, al
je 0x140049cde
call fcn.14001a7d0
test rax, rax
je 0x140049cde
mov rdi, rax
test rbp, rbp
je 0x140049b41
mov rcx, rbp
call fcn.14001b06b
mov rbp, rax
test rax, rax
jne 0x140049b43
jmp 0x140049cde
xor ebp, ebp
test r13, r13
je 0x140049b5d
mov rcx, r13
call fcn.14001b06b
mov rbx, rax
test rax, rax
jne 0x140049b5f
mov rcx, rbp
jmp 0x140049b81
xor ebx, ebx
test r14, r14
je 0x140049b8d
mov rcx, r14
call fcn.14001b06b
mov r13, rax
test rax, rax
jne 0x140049b90
mov rcx, rbp
xor edx, edx
call fcn.14001b128
mov rcx, rbx
xor edx, edx
call fcn.14001b128
jmp 0x140049cde
xor r13d, r13d
test rbp, rbp
je 0x140049b9b
mov rax, qword [rbp + 8]
jmp 0x140049b9d
xor eax, eax
mov qword [rsp + 0x90], rax
test rbx, rbx
je 0x140049bb0
mov rax, qword [rbx + 8]
jmp 0x140049bb2
xor eax, eax
mov qword [rsp + 0x88], rax
test r13, r13
je 0x140049bc5
mov rax, qword [r13 + 8]
jmp 0x140049bc7
xor eax, eax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], 0
lea rsi, [rsp + 0xf0]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140067c70
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140049c0c
mov qword [rsp + 0x78], rsi
movaps xmm0, xmmword [0x140092800]
lea r14, [rsp + 0x60]
movaps xmmword [r14], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14001b8e6
lea rsi, [0x140096120]
lea rax, [rsp + 0x98]
mov ecx, 0xb
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
movabs rcx, 0xaaaaaaaaaaaaaaaa
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov dword [rdx], 0x18
mov qword [rdx + 8], r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x88]
lea r9, [rsp + 0x90]
mov rcx, r14
mov edx, 0xd
call fcn.14004980e
mov edi, eax
mov rcx, rbp
xor edx, edx
call fcn.14001b128
mov rcx, rbx
xor edx, edx
call fcn.14001b128
mov rcx, r13
xor edx, edx
call fcn.14001b128
test edi, edi
jne 0x140049cda
mov ecx, dword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp dword [rsp + 0xa0], 0
sete sil
test edi, edi
je 0x140049ce9
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140065b10
mov eax, esi
add rsp, 0x308
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret