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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xa28]
sub rsp, 0xb20
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14015b138]
xor rax, rsp
mov qword [rbp + 0xa10], rax
xor esi, esi
mov dword [rsp + 0x30], esi
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], si
mov dword [rsp + 0x30], 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14001dcc0
nop
lea rcx, [rbp - 0x80]
cmp rcx, rax
je 0x14003966b
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14003965d
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x80]
call fcn.1400149d0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400396ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400396a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039ab5
call fcn.1400cd424
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.14001c720
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400396fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400396f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039abb
call fcn.1400cd424
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], si
mov word [rbp + 0x1f0], si
lea rdx, [rbp + 0x1f0]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], si
lea rax, [rbp + 0x1f0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140039750
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp - 0x60]
call fcn.1400149d0
nop
mov dil, 1
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x40]
call fcn.14001d3a0
test eax, eax
je 0x1400399fa
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.1400cf640
lea rdx, [rbp - 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], si
lea rax, [rbp - 0x20]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400397c0
mov r8, rbx
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x80]
call fcn.1400149d0
nop
movdqa xmm0, xmmword [0x14012d1e0]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x30], reloc.WS2_32.dll_ntohl
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x80]
call fcn.1400089b0
nop
movdqa xmm0, xmmword [0x14012d1e0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov dword [rsp + 0x30], reloc.WLDAP32.dll_Ordinal_30
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x60]
call fcn.1400089b0
lea rdi, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdi, qword [rsp + 0x38]
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rbx, qword [rsp + 0x58]
xor ecx, ecx
call fcn.1400186d0
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov r9, rbx
lea r8, str.EnsureWorkingDirectory:_Trying_to_change_working_director_from__s_to__s
mov edx, 5
call fcn.140016fb0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1400398b1
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400398ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039ac1
call fcn.1400cd424
movdqa xmm0, xmmword [0x14012d1e0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140039901
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400398fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039ac1
call fcn.1400cd424
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne dil
test eax, eax
jne 0x1400399b9
movdqa xmm0, xmmword [0x14012d1e0]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], al
mov dword [rsp + 0x30], Ordinal_41
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x80]
call fcn.1400089b0
lea rbx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rbx, qword [rsp + 0x38]
xor ecx, ecx
call fcn.1400186d0
mov rcx, rax
mov r9, rbx
lea r8, str.EnsureWorkingDirecotry:_Failed_to_change_the_working_directory_to__s
mov edx, 3
call fcn.140016fb0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1400399b9
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400399b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039ac7
call fcn.1400cd424
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1400399fa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400399f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039acd
call fcn.1400cd424
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140039a36
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039a31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039aaf
call fcn.1400cd424
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], si
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140039a83
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039a7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039aaf
call fcn.1400cd424
movzx eax, dil
mov rcx, qword [rbp + 0xa10]
xor rcx, rsp
call fcn.1400cd400
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
call fcn.1400d20f4
nop
call fcn.1400d20f4
nop
call fcn.1400d20f4
nop
call fcn.1400d20f4
nop
call fcn.1400d20f4
nop
call fcn.1400d20f4
int3