Function at 0x14008c900
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1990
call fcn.1400baa60
sub rsp, rax
mov rax, qword [0x1400e0920]
xor rax, rsp
mov qword [rsp + 0x1980], rax
mov dil, cl
lea r15, [0x140105fe0]
mov r12b, r9b
mov rcx, r15
mov sil, r8b
mov bpl, dl
call fcn.140010f8c
xor r14d, r14d
mov ebx, 1
cmp bpl, r14b
je 0x14008c96a
test bl, al
jne 0x14008c96a
xor al, al
jmp 0x14008cd41
call fcn.14008f160
mov word [0x140126290], r14w
mov r13d, eax
call fcn.1400829f8
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140012a24
lea rdx, [0x14010e71c]
mov r8d, 0x400
mov rcx, r15
call fcn.140012a08
mov edx, dword [rsp + 0xb0]
mov cl, bl
mov byte [0x14010bdd2], bpl
mov dword [0x14010c294], ebx
mov dword [0x14010bd78], r14d
mov dword [0x14010c6b4], edx
mov dword [0x14010bd9c], r14d
call fcn.14008a928
cmp dword [rsp + 0x158], r14d
lea r8, [0x14010e71c]
lea rdx, [0x1400c3f4c]
setne al
lea rcx, [0x140126290]
mov r9b, dil
mov byte [rsp + 0x28], r12b
mov byte [rsp + 0x20], al
call fcn.14008b850
cmp dil, r14b
je 0x14008ca17
mov rcx, rbx
call fcn.14008c75c
cmp al, r14b
je 0x14008c963
lea rdx, [rsp + 0x980]
mov r8d, 0x400
mov rcx, r15
call fcn.1400129e8
lea r12, [0x1401055a0]
cmp word [rsp + 0x980], r14w
jne 0x14008ca6c
mov rcx, r12
call fcn.1400405dc
mov rcx, r12
mov edi, eax
call fcn.140040648
cmp edi, eax
jne 0x14008ca6c
cmp dword [rsp + 0x158], r14d
je 0x14008ca69
cmp byte [rsp + 0x179], r14b
je 0x14008ca6c
mov sil, bl
lea r15, [0x1400c3120]
cmp sil, r14b
je 0x14008cacb
mov rcx, qword [0x14010ef20]
lea rdx, [rsp + 0x180]
mov r9d, 0x3ff
xor r8d, r8d
mov dword [rsp + 0x20], r14d
call fcn.14006bc2c
cmp al, r14b
je 0x14008cab7
lea rsi, [rsp + 0x180]
mov rdi, r15
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
je 0x14008cb59
mov rcx, qword [0x14010ef20]
mov rdx, r15
call fcn.14006bb20
jmp 0x14008cb59
mov rdx, qword [0x14010ef20]
xor r8d, r8d
mov rcx, r12
call fcn.1400407ec
cmp al, r14b
je 0x14008c963
mov rsi, qword [0x14010ef20]
cmp dword [rsi + 0x40], r14d
jne 0x14008cb59
mov rcx, r14
movzx eax, word [rsp + rcx + 0x980]
add rcx, 2
mov word [rsp + rcx + 0x17e], ax
cmp ax, r14w
jne 0x14008caf6
cmp word [rsp + 0x180], r14w
je 0x14008cb2f
lea rcx, [rsp + 0x180]
call fcn.140052588
mov rsi, qword [0x14010ef20]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x180]
repne scasw ax, word [rdi]
mov eax, dword [0x1400c42d4]
lea rdx, [rsp + 0x180]
mov rcx, rsi
mov dword [rdi - 2], eax
call fcn.14006bb34
cmp dword [rsp + 0x158], r14d
je 0x14008cbdf
cmp byte [rsp + 0x179], r14b
jne 0x14008cbdf
mov rcx, r12
call fcn.1400405dc
mov edi, eax
cmp eax, r14d
je 0x14008cbd0
cmp word [rsp + 0x980], r14w
jne 0x14008cbdf
mov rcx, r12
call fcn.140040648
cmp edi, eax
jne 0x14008cbdf
mov r8, qword [0x1400ffd80]
mov rcx, qword [0x1400ec660]
lea rax, [0x14010e71c]
lea r9, [0x14008b798]
lea rdx, str.ASKPROCESSVOLDLG
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxParamW]
cmp rax, 0xffffffffffffffff
je 0x14008c963
cmp rax, rbx
jne 0x14008cbdf
mov rcx, qword [0x14010ef20]
mov rdx, r15
call fcn.14006bb20
mov word [rsp + 0x1180], r14w
cmp bpl, r14b
jne 0x14008cc5b
cmp word [0x140126290], r14w
je 0x14008cc5b
cmp dword [0x14010bca8], 4
je 0x14008cc5b
lea rcx, [rsp + 0x1180]
mov edx, 0x400
call fcn.140087598
lea rcx, [0x140126290]
xor edx, edx
call fcn.140031c00
lea rcx, [0x140126290]
call fcn.140087580
cmp al, r14b
jne 0x14008cc5b
mov ecx, 0x1f7
call fcn.140061d94
lea rdx, [0x140126290]
mov rcx, rax
call fcn.140096028
lea rcx, [0x1400ec668]
call fcn.1400286f0
jmp 0x14008c963
mov dl, byte [0x14010d6bb]
lea rcx, [0x140105fe0]
xor r8d, r8d
call fcn.140017374
cmp word [rsp + 0x1180], r14w
je 0x14008cc89
lea rcx, [rsp + 0x1180]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.14008f160
cmp r13d, eax
jne 0x14008cd06
cmp byte [0x1400fec04], r14b
jne 0x14008cd06
cmp bpl, r14b
je 0x14008ccd3
mov ecx, 0x3a7
call fcn.140061d94
mov ecx, 0x3a8
mov rdi, rax
call fcn.140061d94
mov rcx, qword [0x1400ffd80]
mov r9d, 0x40
mov r8, rdi
mov rdx, rax
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x14008cd09
cmp dword [0x14010d6cc], r14d
je 0x14008cd09
lea rcx, [0x14010e71c]
call fcn.140031164
cmp al, r14b
jne 0x14008cd09
mov rcx, r12
call fcn.140042cc8
cmp al, r14b
je 0x14008cd09
xor edx, edx
mov rcx, r12
call fcn.1400433a8
jmp 0x14008cd09
mov bl, r14b
lea rcx, [0x1400ffda0]
mov byte [0x1400ffdd0], r14b
call fcn.14006b304
cmp bpl, r14b
jne 0x14008cd3f
cmp byte [0x1400fec04], r14b
jne 0x14008cd3f
cmp byte [0x140126288], r14b
je 0x14008cd3f
lea rcx, [0x140126290]
call fcn.14008ba98
mov al, bl
mov rcx, qword [rsp + 0x1980]
xor rcx, rsp
call fcn.1400a86e0
lea r11, [rsp + 0x1990]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret