Function at 0x14001fd70
Capabilities:
Set current directory

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [rcx + 0xb80]
mov rbx, rcx
mov byte [rcx + 0x2d0], 1
mov word [rcx + 0xbb0], 0
test rax, rax
je 0x14002033f
cmp word [rax], 0
je 0x14002033f
cmp qword [0x140118128], 0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r14
lea r14, [0x1400e145c]
jne 0x14001fdcf
call fcn.1400a8f60
mov qword [0x140118128], rax
test rax, rax
je 0x14001fe2e
mov rdx, qword [0x140118130]
cmp qword [rdx + 0x10], 0x28
jae 0x14001fdf2
call fcn.1400a8f60
mov rdx, qword [0x140118130]
mov qword [rdx + 0x18], rax
test rax, rax
je 0x14001fe2e
mov rcx, qword [rdx + 8]
add qword [rdx + 0x10], 0xffffffffffffffd8
lea rax, [rcx + 0x28]
mov qword [0x140118138], rcx
mov qword [rdx + 8], rax
test rcx, rcx
je 0x14001fe2e
xor r12d, r12d
lea rax, vtable.Label.0
mov qword [rcx + 8], r14
mov qword [rcx], rax
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], r12
mov qword [rcx + 0x20], r12
jmp 0x14001fe34
xor r12d, r12d
mov ecx, r12d
mov qword [rbx + 0x6a8], rcx
test rcx, rcx
je 0x14002032c
cmp byte [0x140116911], 0
lea rdx, [0x1400e6840]
jne 0x14001fe5b
mov rdx, qword [rbx + 0xb80]
mov rcx, rbx
call fcn.140020580
cmp eax, 1
jne 0x14002032c
xor r9d, r9d
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
mov qword [rsp + 0x20], r12
call fcn.1400281c0
test eax, eax
je 0x14002032c
mov rax, qword [rbx + 8]
mov rcx, rbx
mov qword [rax + 0x10], 1
mov rdx, qword [rbx]
call fcn.14002eaa0
test eax, eax
je 0x14002032c
mov rdx, qword [rbx]
mov rcx, rbx
mov qword [rsp + 0x70], rsi
call fcn.14002eb80
cmp qword [rbx + 0x10], 0
je 0x14001fedc
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 qword [rsp + 0x68], rbp
mov esi, r12d
mov qword [rsp + 0x48], rdi
jle 0x14001ff37
mov rbp, r12
mov rax, qword [rbx + 0x30]
mov rdi, qword [rax + rbp]
cmp byte [rdi + 0x5d], 0
jne 0x14001ff2c
test byte [rdi + 0x5c], 4
jne 0x14001ff2c
mov r8, qword [rdi + 0x30]
lea r9, [rdi + 0x48]
mov rdx, rdi
mov rcx, rbx
call fcn.140040fe0
mov r8, qword [rdi + 0x38]
lea r9, [rdi + 0x50]
mov rdx, rdi
mov rcx, rbx
call fcn.140040fe0
inc esi
add rbp, 8
cmp esi, dword [rbx + 0x38]
jl 0x14001fef2
cmp qword [rbx + 0x2b0], 0
je 0x14001ff65
mov rcx, rbx
call fcn.14002bfd0
test eax, eax
je 0x140020327
mov rcx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbx + 0x2b0], r12
cmp dword [0x140116924], 0
je 0x14001ff76
mov rcx, rbx
call fcn.1400410e0
mov rcx, qword [0x140117328]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [rbx + 0x2cc]
xor r9d, r9d
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
mov qword [rsp + 0x20], r12
call fcn.1400281c0
test eax, eax
je 0x140020327
xor r9d, r9d
xor r8d, r8d
mov dl, 0x68
mov rcx, rbx
mov qword [rsp + 0x20], r12
call fcn.1400281c0
test eax, eax
je 0x140020327
mov rax, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x20], r12
mov qword [rcx + 0x10], 1
mov rax, qword [rbx + 8]
mov qword [rax + 0x10], 1
mov rcx, qword [rbx + 0x6a8]
mov rax, qword [rbx + 8]
mov qword [rcx + 0x10], rax
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.14002ec00
cld
jmp 0x140020003
add byte [rax - 0x7b], cl
ror byte [rdi], 0x84
sbb al, byte [rbx]
add byte [rax], al
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.14002f170
test rax, rax
je 0x140020327
lea rdx, str.ErrorLevel
mov r9d, 3
xor r8d, r8d
mov rcx, rbx
call fcn.14002dda0
mov rbx, rax
mov qword [0x140117318], rax
test rax, rax
je 0x140020327
movzx eax, byte [rax + 0x23]
mov qword [rsp + 0x38], r13
test al, al
jne 0x14002007a
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400e14fc]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400afc20
jmp 0x1400202b0
lea r13, [0x1400e14fc]
cmp qword [rbx + 8], r13
jne 0x140020090
mov rbp, qword [rbx + 0x10]
shr rbp, 1
jmp 0x140020095
mov ebp, 1
lea rcx, [rbp + 1]
lea rsi, [rcx + rcx]
cmp al, 2
jne 0x1400200b1
mov rdx, rbp
mov rcx, r13
call fcn.1400060a0
jmp 0x1400202b0
mov r9, qword [0x140111460]
cmp rsi, r9
jbe 0x1400200de
cmp rsi, qword [rbx + 0x18]
jbe 0x1400200de
lea rdx, str.Memory_limit_reached__see_MaxMem_in_the_help_file_.
lea rcx, [0x1401181e0]
mov r8, r14
call fcn.140040200
jmp 0x1400202b0
cmp rcx, 2
jae 0x1400200f8
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.1400b02d0
jmp 0x1400202b0
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x140020115
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r9, qword [0x140111460]
mov rcx, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rsi, rcx
jbe 0x140020288
movzx r8d, byte [rbx + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x140020148
cmp al, 2
je 0x140020185
mov rdi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
jmp 0x14002027c
mov edi, 0x80
cmp rsi, rdi
ja 0x140020185
cmp rsi, 8
ja 0x14002015f
mov edi, 8
jmp 0x14002016b
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rsi, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400a8ed0
test rax, rax
je 0x1400202b0
mov byte [rbx + 0x20], 1
jmp 0x14002027c
cmp rsi, 0x20
jae 0x140020195
mov edi, SafeArrayAllocDescriptor
jmp 0x14002023f
mov edi, 0x208
cmp rsi, rdi
jb 0x14002023f
cmp rsi, 0x50000
jae 0x1400201fb
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x1400201c2
addsd xmm0, qword [0x1400ffd68]
mulsd xmm0, qword [0x1400ffda0]
movsd xmm1, qword [0x1400ffd98]
xor eax, eax
comisd xmm0, xmm1
jbe 0x1400201f1
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x1400201f1
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x14002023f
cmp rsi, 0x320000
jae 0x14002020d
lea rdi, [rsi + 0x8000]
jmp 0x14002023f
cmp rsi, 0xc80000
jae 0x140020238
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x14002023f
lea rdi, [rsi + 0x20000]
cmp rdi, r9
cmova rdi, r9
cmp r8b, 2
jne 0x14002025f
test rcx, rcx
je 0x14002025f
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.1400c9ae0
jmp 0x140020262
xor sil, sil
test rdi, rdi
js 0x1400202ed
mov rcx, rdi
call fcn.1400c9044
test rax, rax
je 0x1400202ed
mov byte [rbx + 0x20], 2
and byte [rbx + 0x21], 0x7f
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x14002029e
lea r8, [rbp + rbp]
mov rdx, r13
call fcn.1400c9ca0
mov rcx, qword [rbx + 8]
lea rdx, [rbp + rbp]
mov word [rdx + rcx], r12w
mov qword [rbx + 0x10], rdx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x60]
call fcn.14001b450
mov r13, qword [rsp + 0x38]
mov eax, 1
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x40]
mov r14, qword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret
test sil, sil
je 0x140020303
lea rax, [0x140118198]
mov qword [rbx + 0x18], r12
mov qword [rbx + 8], rax
jmp 0x14002030b
mov rax, qword [rbx + 8]
mov word [rax], r12w
lea rdx, str.Out_of_memory.
lea rcx, [0x1401181e0]
mov r8, r14
mov qword [rbx + 0x10], r12
call fcn.140040200
jmp 0x1400202b0
or eax, 0xffffffff
jmp 0x1400202ce
mov r12, qword [rsp + 0x40]
mov r14, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x50
pop rbx
ret
or eax, 0xffffffff
add rsp, 0x50
pop rbx
ret