Function at 0x14005c750
Capabilities:
Set current directory

Disassembly:
push rbx
push r13
sub rsp, 0x38
movzx eax, word [rcx]
xor r13d, r13d
mov rbx, rcx
test ax, ax
je 0x14005c790
cmp word [rcx + 2], 0x3a
jne 0x14005c790
cmp word [rcx + 4], r13w
jne 0x14005c790
mov word [rsp + 0x50], ax
mov eax, 0x3a
mov dword [rsp + 0x54], 0x5c
mov word [rsp + 0x52], ax
lea rbx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x14005c7b7
cmp byte [0x140171e90], r13b
je 0x14005ca6a
call fcn.14003d070
add rsp, 0x38
pop r13
pop rbx
ret
cmp byte [0x140171e90], r13b
je 0x14005ca6a
mov rcx, rbx
mov qword [rsp + 0x30], r12
call fcn.14005cab0
mov rbx, qword [0x1401703d0]
movzx eax, byte [rbx + 0x23]
test al, al
jne 0x14005c809
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1401296b4]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e9bc0
mov r12, qword [rsp + 0x30]
add rsp, 0x38
pop r13
pop rbx
ret
lea r12, [0x1401296b4]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
cmp qword [rbx + 8], r12
jne 0x14005c829
mov rbp, qword [rbx + 0x10]
shr rbp, 1
jmp 0x14005c82e
mov ebp, 1
lea rcx, [rbp + 1]
lea rsi, [rcx + rcx]
cmp al, 2
jne 0x14005c84a
mov rdx, rbp
mov rcx, r12
call fcn.140005910
jmp 0x14005ca5b
mov r8, qword [0x140169b08]
cmp rsi, r8
jbe 0x14005c883
cmp rsi, qword [rbx + 0x18]
jbe 0x14005c883
lea rcx, [0x14014bd60]
call fcn.1400dd2e0
lea r8, [0x1401295d4]
lea rcx, [0x1401712e0]
mov rdx, rax
call fcn.1400a5580
jmp 0x14005ca5b
cmp rcx, 2
jae 0x14005c89d
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.1400ea290
jmp 0x14005ca5b
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x14005c8ba
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r8, qword [0x140169b08]
mov rcx, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
mov qword [rsp + 0x68], rdi
cmp rsi, rcx
jbe 0x14005ca2e
movzx r9d, byte [rbx + 0x20]
movzx eax, r9b
cmp r9b, 1
jbe 0x14005c8f2
cmp al, 2
je 0x14005c92f
mov rdi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
jmp 0x14005ca22
mov edi, 0x80
cmp rsi, rdi
ja 0x14005c92f
cmp rsi, 8
ja 0x14005c909
mov edi, 8
jmp 0x14005c915
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmp rsi, rax
cmovbe rdi, rax
mov rcx, rdi
call fcn.1400dc2b0
test rax, rax
je 0x14005ca56
mov byte [rbx + 0x20], 1
jmp 0x14005ca22
cmp rsi, 0x20
jae 0x14005c93f
mov edi, SafeArrayAllocDescriptor
jmp 0x14005c9e9
mov edi, 0x208
cmp rsi, rdi
jb 0x14005c9e9
cmp rsi, 0x50000
jae 0x14005c9a5
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x14005c96c
addsd xmm0, qword [0x140152fd8]
mulsd xmm0, qword [0x140153040]
movsd xmm1, qword [0x140153038]
xor eax, eax
comisd xmm0, xmm1
jbe 0x14005c99b
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14005c99b
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x14005c9e9
cmp rsi, 0x320000
jae 0x14005c9b7
lea rdi, [rsi + 0x8000]
jmp 0x14005c9e9
cmp rsi, 0xc80000
jae 0x14005c9e2
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x14005c9e9
lea rdi, [rsi + 0x20000]
cmp rdi, r8
cmova rdi, r8
cmp r9b, 2
jne 0x14005ca09
test rcx, rcx
je 0x14005ca09
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.140108f48
jmp 0x14005ca0c
xor sil, sil
test rdi, rdi
js 0x14005ca72
mov rcx, rdi
call fcn.1401084ac
test rax, rax
je 0x14005ca72
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, r12
je 0x14005ca44
lea r8, [rbp + rbp]
mov rdx, r12
call fcn.140109100
mov rax, qword [rbx + 8]
lea rcx, [rbp + rbp]
mov word [rcx + rax], r13w
mov qword [rbx + 0x10], rcx
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r12, qword [rsp + 0x30]
add rsp, 0x38
pop r13
pop rbx
ret
test sil, sil
je 0x14005ca88
lea rax, [0x140171290]
mov qword [rbx + 0x18], r13
mov qword [rbx + 8], rax
jmp 0x14005ca90
mov rax, qword [rbx + 8]
mov word [rax], r13w
lea r8, [0x1401295d4]
lea rdx, str.Out_of_memory.
lea rcx, [0x1401712e0]
mov qword [rbx + 0x10], r13
call fcn.1400a5580
jmp 0x14005ca56