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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xa20]
sub rsp, 0xb20
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rbp + 0xa10], rax
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x78], rsi
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], si
mov dword [rsp + 0x30], 8
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140025040
nop
lea rcx, [rsp + 0x78]
cmp rcx, rax
je 0x14004122b
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14004121d
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140008ee0
nop
lea rcx, [rsp + 0x38]
call fcn.140008e70
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x78]
call fcn.140024330
nop
lea rcx, [rsp + 0x78]
call fcn.140008e70
mov word [rbp + 0x1f0], si
lea rdx, [rbp + 0x1f0]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov qword [rbp - 0x68], rsi
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], si
lea rax, [rbp + 0x1f0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140041290
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp - 0x68]
call fcn.140008ee0
nop
mov dil, 1
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x48]
call fcn.1400220d0
test eax, eax
je 0x1400414d6
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.1400fc160
lea rdx, [rbp - 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rsp + 0x78], rsi
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], si
lea rax, [rbp - 0x20]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140041300
mov r8, rbx
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x78]
call fcn.140008ee0
mov ebx, 0x60
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
cmp dword [rax + 0x40], 5
jl 0x1400413e0
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
mov rsi, rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.1400219c0
mov rdi, rax
mov dword [rsp + 0x30], 0x61
cmp qword [rax + 0x18], 0x10
jb 0x1400413a1
mov rdi, qword [rax]
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x68]
call fcn.1400219c0
nop
mov ebx, 0x63
mov dword [rsp + 0x30], ebx
cmp qword [rax + 0x18], 0x10
jb 0x1400413c3
mov rax, qword [rax]
mov qword [rsp + 0x20], rdi
mov r9, rax
lea r8, str.EnsureWorkingDirectory:_Trying_to_change_working_director_from__s_to__s
mov edx, 5
mov rcx, rsi
call fcn.14001e890
nop
test bl, 2
je 0x1400413f3
and ebx, 0xfffffffd
lea rcx, [rsp + 0x38]
call fcn.140009080
nop
test bl, 1
je 0x140041405
and ebx, 0xfffffffe
lea rcx, [rsp + 0x58]
call fcn.140009080
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne dil
test eax, eax
jne 0x1400414cb
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
cmp dword [rax + 0x40], 3
jl 0x1400414bb
xor ecx, ecx
call fcn.140027000
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001c7c0]
mov rcx, rax
call fcn.1400272d0
mov rsi, rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.1400219c0
nop
or ebx, 4
mov dword [rsp + 0x30], ebx
cmp qword [rax + 0x18], 0x10
jb 0x1400414a3
mov rax, qword [rax]
mov r9, rax
lea r8, str.EnsureWorkingDirecotry:_Failed_to_change_the_working_directory_to__s
mov edx, 3
mov rcx, rsi
call fcn.14001e890
nop
test bl, 4
je 0x1400414cb
lea rcx, [rsp + 0x58]
call fcn.140009080
nop
lea rcx, [rsp + 0x78]
call fcn.140008e70
nop
lea rcx, [rbp - 0x68]
call fcn.140008e70
nop
lea rcx, [rbp - 0x48]
call fcn.140008e70
movzx eax, dil
mov rcx, qword [rbp + 0xa10]
xor rcx, rsp
call fcn.1400f9560
lea r11, [rsp + 0xb20]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret