Function at 0x140039070
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 [0x14015a138]
xor rax, rsp
mov qword [rbp + 0xa10], rax
xor esi, esi
mov dword [rsp + 0x30], esi
movdqa xmm0, xmmword [0x14012bfc0]
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.14001d750
nop
lea rcx, [rbp - 0x80]
cmp rcx, rax
je 0x1400390fb
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400390ed
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 0x14003913d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039138
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039545
call fcn.1400ccd64
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.14001c1b0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14003918b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039186
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003954b
call fcn.1400ccd64
movdqa xmm0, xmmword [0x14012bfc0]
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 [0x14012bfc0]
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 0x1400391e0
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.14001ce30
test eax, eax
je 0x14003948a
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.1400cef80
lea rdx, [rbp - 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
movdqa xmm0, xmmword [0x14012bfc0]
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 0x140039250
mov r8, rbx
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x80]
call fcn.1400149d0
nop
movdqa xmm0, xmmword [0x14012bfd0]
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 [0x14012bfd0]
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.140018180
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.140016a40
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140039341
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003933c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039551
call fcn.1400ccd64
movdqa xmm0, xmmword [0x14012bfd0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140039391
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003938c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039551
call fcn.1400ccd64
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 0x140039449
movdqa xmm0, xmmword [0x14012bfd0]
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.140018180
mov rcx, rax
mov r9, rbx
lea r8, str.EnsureWorkingDirecotry:_Failed_to_change_the_working_directory_to__s
mov edx, 3
call fcn.140016a40
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140039449
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039443
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039557
call fcn.1400ccd64
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14003948a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039484
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003955d
call fcn.1400ccd64
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400394c6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400394c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003953f
call fcn.1400ccd64
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], si
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140039513
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003950e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003953f
call fcn.1400ccd64
movzx eax, dil
mov rcx, qword [rbp + 0xa10]
xor rcx, rsp
call fcn.1400ccd40
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.1400d1a34
nop
call fcn.1400d1a34
nop
call fcn.1400d1a34
nop
call fcn.1400d1a34
nop
call fcn.1400d1a34
nop
call fcn.1400d1a34
int3