Function at 0x14003f100
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 [0x140177090]
xor rax, rsp
mov qword [rbp + 0xa10], rax
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
mov dword [rsp + 0x30], 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140025ca0
nop
lea rcx, [rsp + 0x38]
cmp rcx, rax
je 0x14003f187
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14003f179
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400088b0
nop
lea rcx, [rsp + 0x58]
call fcn.140008840
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x38]
call fcn.140024f90
nop
lea rcx, [rsp + 0x38]
call fcn.140008840
mov word [rbp + 0x1f0], si
lea rdx, [rbp + 0x1f0]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], si
lea rax, [rbp + 0x1f0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x14003f1e4
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp - 0x68]
call fcn.1400088b0
nop
mov dil, 1
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x48]
call fcn.140022bf0
test eax, eax
je 0x14003f3f0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.1400ec680
lea rdx, [rbp - 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], si
lea rax, [rbp - 0x20]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14003f250
mov r8, rbx
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x78]
call fcn.1400088b0
nop
xor ecx, ecx
call fcn.140027840
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ba40]
mov rcx, rax
call fcn.140027a90
mov rdi, rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.14001a4c0
lea rbx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rbx, qword [rsp + 0x38]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x58], 0
mov dword [rsp + 0x30], 0x3c
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.14001a4c0
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r9, qword [rsp + 0x58]
mov qword [rsp + 0x20], rbx
lea r8, str.EnsureWorkingDirectory:_Trying_to_change_working_director_from__s_to__s
mov edx, 5
mov rcx, rdi
call fcn.14001de90
nop
lea rcx, [rsp + 0x58]
call fcn.140008a50
nop
lea rcx, [rsp + 0x38]
call fcn.140008a50
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 0x14003f3e5
xor ecx, ecx
call fcn.140027840
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ba40]
mov rcx, rax
call fcn.140027a90
mov rbx, rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x4c
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.14001a4c0
lea r9, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae r9, qword [rsp + 0x38]
lea r8, str.EnsureWorkingDirecotry:_Failed_to_change_the_working_directory_to__s
mov edx, 3
mov rcx, rbx
call fcn.14001de90
nop
lea rcx, [rsp + 0x38]
call fcn.140008a50
nop
lea rcx, [rsp + 0x78]
call fcn.140008840
nop
lea rcx, [rbp - 0x68]
call fcn.140008840
nop
lea rcx, [rbp - 0x48]
call fcn.140008840
movzx eax, dil
mov rcx, qword [rbp + 0xa10]
xor rcx, rsp
call fcn.1400e9d60
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