Function at 0x140002960
Capabilities:
Set current directory

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x14003f4d0]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x28], r8
mov rbx, rdx
mov qword [rsp + 0x40], rdx
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
mov rax, qword [rcx + 0x18]
test rax, rax
jne 0x140002a17
test r9b, 1
je 0x1400029e2
lea rcx, [rdx + 8]
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], r12
mov byte [rcx], r12b
lea r8d, [r12 + 6]
lea rdx, str._none_
call fcn.1400019d0
jmp 0x140002e88
call fcn.14000ae90
test rax, rax
lea rdx, [rax + 8]
jne 0x1400029f3
mov rdx, r12
lea rcx, [rbx + 8]
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], r12
mov byte [rcx], r12b
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.1400018a0
jmp 0x140002e88
mov qword [rsp + 0x38], r12
lea rbx, [rax + 3]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.140012044
mov r13, rax
mov qword [rsp + 0x38], rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400142c0
mov r8, qword [rsi + 0x18]
add rsi, 8
cmp qword [rsi + 0x18], 0x10
jb 0x140002a56
mov rdx, qword [rsi]
jmp 0x140002a59
mov rdx, rsi
mov rcx, r13
call fcn.140012c70
test byte [rsp + 0x138], 2
jne 0x140002a82
xor r8d, r8d
mov dl, 0x20
mov rcx, rsi
call fcn.140003a70
cmp rax, 0xffffffffffffffff
je 0x140002a82
mov al, 1
jmp 0x140002a84
xor al, al
mov byte [rsp + 0x20], al
mov rdi, r13
cmp qword [rsi + 0x18], 0x10
jb 0x140002a95
mov rsi, qword [rsi]
test al, al
je 0x140002aa2
mov byte [r13], 0x22
lea rdi, [r13 + 1]
movzx eax, byte [rsi]
movzx ecx, byte [rsi + 1]
cmp al, cl
jne 0x140002ab1
cmp al, 0x5c
je 0x140002aba
cmp al, 0x2f
je 0x140002aba
xor r14b, r14b
jmp 0x140002abd
mov r14b, 1
xor bl, bl
cmp cl, 0x3a
jne 0x140002ace
movsx ecx, al
call fcn.1400141a8
mov ebx, eax
mov qword [rsp + 0x80], 0xf
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x68], 0
lea rax, vtable.wbs::FileString.0
mov qword [rsp + 0x60], rax
xor r15b, r15b
mov dword [rsp + 0x24], r15d
test r14b, r14b
jne 0x140002b4d
test byte [rsp + 0x138], 1
je 0x140002b4d
lea rcx, [rsp + 0x60]
call fcn.140003030
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
cmovae rax, rcx
cmp byte [rax + 1], 0x3a
jne 0x140002b4d
lea rax, [rsp + 0x68]
cmp rdx, 0x10
cmovae rax, rcx
movsx ecx, byte [rax]
call fcn.1400141a8
mov r15d, eax
mov dword [rsp + 0x24], eax
test bl, bl
je 0x140002b72
test byte [rsp + 0x138], 1
je 0x140002b60
cmp bl, r15b
je 0x140002b72
movsx ecx, byte [rsi]
call fcn.1400141a8
mov byte [rdi], al
mov byte [rdi + 1], 0x3a
add rdi, 2
test byte [rsp + 0x138], 1
je 0x140002ba3
cmp bl, r15b
je 0x140002ba3
mov byte [rsp + 0x58], bl
mov word [rsp + 0x59], 0x3a
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x60]
call fcn.140003030
jmp 0x140002bab
xor r15b, r15b
mov dword [rsp + 0x24], r15d
neg bl
sbb rbx, rbx
and ebx, 2
add rbx, rsi
cmp qword [rsp + 0x78], 0
je 0x140002cbb
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rax, qword [rsp + 0x68]
cmp byte [rax + 1], 0x3a
jne 0x140002bec
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rsp + 0x68]
call fcn.140001bc0
mov qword [rsp + 0xa8], 0xf
mov qword [rsp + 0xa0], r12
mov byte [rsp + 0x90], 0
lea r12, vtable.wbs::StringBase_char_.0
mov qword [rsp + 0x88], r12
mov r8, qword [rsp + 0x78]
mov rdx, rbx
lea rcx, [rsp + 0x88]
call fcn.14000ad50
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.1400021d0
test eax, eax
jne 0x140002c79
mov rax, qword [rsp + 0x78]
lea rcx, [rax + rbx]
movzx edx, byte [rcx]
test dl, dl
je 0x140002c6e
cmp dl, 0x5c
je 0x140002c68
cmp rax, 1
jne 0x140002c79
test r15b, r15b
jne 0x140002c79
inc rbx
jmp 0x140002c79
lea rbx, [rcx + 1]
jmp 0x140002c79
mov byte [rdi], 0x2e
inc rdi
add rbx, qword [rsp + 0x78]
mov qword [rsp + 0x88], r12
cmp qword [rsp + 0xa8], 0x10
jb 0x140002c99
mov rcx, qword [rsp + 0x90]
call fcn.140012aec
mov qword [rsp + 0xa8], 0xf
mov qword [rsp + 0xa0], 0
mov byte [rsp + 0x90], 0
jmp 0x140002cc2
lea r12, vtable.wbs::StringBase_char_.0
mov ecx, 0x7fffffff
mov rax, qword [rsp + 0x28]
test rax, rax
cmove rax, rcx
mov qword [rsp + 0x28], rax
or rsi, 0xffffffffffffffff
nop dword [rax]
inc rsi
cmp byte [rbx + rsi], 0
jne 0x140002ce0
mov r14, rdi
sub r14, r13
cmp rsi, rax
jle 0x140002d4a
xor cl, cl
cmp rsi, rax
jle 0x140002d4a
mov r15, rbx
nop
inc rbx
movzx eax, byte [rbx]
test al, al
je 0x140002d47
cmp al, 0x5c
jne 0x140002d00
test cl, cl
jne 0x140002d36
mov rdx, qword [rsp + 0x30]
sub rdx, rdi
add rdx, r13
lea r8, str....
mov rcx, rdi
call fcn.140013ca4
add rdi, 4
add r14, 4
mov cl, 1
mov eax, ebx
sub eax, r15d
cdqe
sub rsi, rax
mov rax, qword [rsp + 0x28]
jmp 0x140002cf6
mov rbx, r15
mov rdx, qword [rsp + 0x30]
sub rdx, rdi
add rdx, r13
mov r8, rbx
mov rcx, rdi
call fcn.140013ca4
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140002d64
add rdi, rax
mov eax, dword [rsp + 0x24]
test al, al
je 0x140002d8e
mov byte [rsp + 0x58], al
mov word [rsp + 0x59], 0x3a
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [rsp + 0x20], 0
je 0x140002d9b
mov byte [rdi], 0x22
inc rdi
mov byte [rdi], 0
mov qword [rsp + 0x60], r12
cmp qword [rsp + 0x80], 0x10
jb 0x140002db8
mov rcx, qword [rsp + 0x68]
call fcn.140012aec
mov qword [rsp + 0x80], 0xf
xor edi, edi
mov qword [rsp + 0x78], rdi
mov byte [rsp + 0x68], dil
lea rdx, [0x14002c500]
test r13, r13
cmovne rdx, r13
mov qword [rsp + 0xd0], 0xf
mov qword [rsp + 0xc8], rdi
mov byte [rsp + 0xb8], 0
cmp byte [rdx], 0
jne 0x140002e04
mov r8, rdi
jmp 0x140002e1a
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140002e10
lea rcx, [rsp + 0xb8]
call fcn.1400019d0
mov qword [rsp + 0xb0], r12
mov rcx, r13
call fcn.140013fa8
mov rbx, qword [rsp + 0x40]
lea rcx, [rbx + 8]
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rdi
mov byte [rcx], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xb8]
call fcn.1400018a0
mov qword [rbx], r12
mov qword [rsp + 0xb0], r12
cmp qword [rsp + 0xd0], 0x10
jb 0x140002e92
mov rcx, qword [rsp + 0xb8]
call fcn.140012aec
jmp 0x140002e92
lea r12, vtable.wbs::StringBase_char_.0
mov qword [rbx], r12
mov rax, rbx
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1400139b0
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret