Function at 0x140017cc0
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 0xb58]
mov rbx, rcx
mov byte [rcx + 0x2c8], 1
mov word [rcx + 0xb88], 0
test rax, rax
je 0x140017f64
cmp word [rax], 0
je 0x140017f64
mov ecx, 0x28
mov qword [rsp + 0x58], rbp
call fcn.140077140
xor ebp, ebp
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140017d31
lea rcx, vtable.Label.0
mov qword [rax + 0x10], rbp
mov qword [rax], rcx
lea rcx, [0x1400bdf7c]
mov qword [rax + 8], rcx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rbp
jmp 0x140017d34
mov rax, rbp
mov qword [rbx + 0x6a0], rax
test rax, rax
je 0x140017f56
cmp byte [0x1400f22d2], 0
lea rdx, [0x1400d26f8]
jne 0x140017d5b
mov rdx, qword [rbx + 0xb58]
mov rcx, rbx
call fcn.1400181a0
cmp eax, 1
jne 0x140017f56
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
call fcn.14001dee0
test eax, eax
je 0x140017f56
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.1400252a0
test eax, eax
je 0x140017f56
mov rdx, qword [rbx]
mov rcx, rbx
mov qword [rsp + 0x60], rsi
call fcn.140025380
cmp qword [rbx + 0x10], 0
je 0x140017dd0
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x18]
mov qword [rcx + 0x20], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x18]
mov qword [rcx + 0x18], rax
mov rax, qword [rbx + 0x10]
mov qword [rbx], rax
cmp dword [rbx + 0x38], 0
mov esi, ebp
jle 0x140017e39
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r14
mov r14, rbp
nop word [rax + rax]
mov rax, qword [rbx + 0x30]
mov rdi, qword [r14 + rax]
cmp byte [rdi + 0x5d], 0
jne 0x140017e24
mov r8, qword [rdi + 0x30]
lea r9, [rdi + 0x48]
mov rdx, rdi
mov rcx, rbx
call fcn.140031d40
mov r8, qword [rdi + 0x38]
lea r9, [rdi + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.140031d40
inc esi
add r14, 8
cmp esi, dword [rbx + 0x38]
jl 0x140017df0
mov r14, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
cmp qword [rbx + 0x2a8], 0
mov rsi, qword [rsp + 0x60]
je 0x140017e6c
mov rcx, rbx
call fcn.140020e70
test eax, eax
je 0x140017f56
mov rcx, qword [rbx + 0x2a8]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbx + 0x2a8], rbp
mov rcx, qword [0x1400f1570]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [rbx + 0x2c4]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov dl, 0x68
mov rcx, rbx
call fcn.14001dee0
test eax, eax
je 0x140017f56
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
call fcn.14001dee0
test eax, eax
je 0x140017f56
mov rcx, qword [rbx + 0x6a0]
xor r9d, r9d
mov rax, qword [rbx + 8]
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov qword [rcx + 0x10], rax
mov rcx, rbx
mov rdx, qword [rbx]
call fcn.140025400
test rax, rax
je 0x140017f56
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.1400257a0
test rax, rax
je 0x140017f56
mov r9d, 3
lea rdx, str.ErrorLevel
xor r8d, r8d
mov rcx, rbx
call fcn.140022860
mov qword [0x1400f1518], rax
test rax, rax
je 0x140017f56
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
lea rdx, [0x1400be064]
mov rcx, rax
call fcn.14007d4e0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x50]
call fcn.140013bd0
mov rbp, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x40
pop rbx
ret
or eax, 0xffffffff
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x40
pop rbx
ret