Function at 0x18009c670
Capabilities:
Set current directory

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov byte [rbp - 0x48], r8b
mov r14, rdx
mov rsi, rcx
lea rax, [rdx + 0x10]
mov qword [rbp - 0x39], rax
mov rax, qword [rax]
test rax, rax
je 0x18009ca36
cmp qword [rcx + 0x1f0], 0
je 0x18009ca36
mov r8, rdx
cmp qword [rdx + 0x18], 8
jb 0x18009c6df
mov r8, qword [rdx]
xor r9d, r9d
mov r15d, 0x26
lea rdi, str.3B17FBE5_E5F0_4ecb_B4A7_2B70C8E37DC7
cmp rax, r15
jne 0x18009c719
mov edx, r15d
mov rcx, rdi
sub r8, rdi
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x18009c719
add rcx, 2
sub rdx, 1
jne 0x18009c700
lea eax, [rdx + 1]
jmp 0x18009c71c
mov eax, r9d
mov dword [rsi + 0x208], eax
mov dword [rsi + 0x3e8], 0xffffffff
mov rdx, r14
lea rcx, [rbp - 0x21]
call fcn.180005900
nop
lea rbx, [rsi + 0x118]
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.180005900
nop
lea rax, [rbp - 0x21]
cmp rbx, rax
je 0x18009c770
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x11]
mov rcx, rbx
call fcn.180005cd0
mov byte [rbp - 0x49], 0
cmp dword [rsi + 0x208], 1
je 0x18009c79a
lea rcx, [rbp - 0x21]
call fcn.18015b200
test al, al
jne 0x18009c79a
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.18015ddf0
mov byte [rbp - 0x49], 1
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x18009c7a7
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r12, qword [rbp + 0x17]
mov r13, qword [rbp - 1]
cmp byte [rbp - 0x48], 0
jne 0x18009c81f
mov rcx, qword [rbx + 0x10]
mov qword [rbp - 0x31], rcx
mov rax, qword [rbp + 0xf]
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x31]
lea r8, [rbp - 0x41]
cmp rax, rcx
cmovae rdx, r8
cmp qword [rbx + 0x18], 8
jb 0x18009c7e4
mov rbx, qword [rbx]
lea rcx, [rbp - 1]
cmp r12, 8
cmovae rcx, r13
mov r8, qword [rdx]
test r8, r8
je 0x18009c804
mov rdx, rbx
call fcn.180159ad0
test eax, eax
jne 0x18009c81f
mov rcx, qword [rsi + 0x1f0]
mov rax, qword [rcx]
call qword [rax + 0xe0]
test eax, eax
je 0x18009c81f
xor bl, bl
jmp 0x18009c98d
mov qword [rsi + 0x10c], 0xffffffffffffffff
mov dword [rsi + 0x108], 0xffffffff
lea rbx, [rsi + 0xf0]
mov qword [rbp - 0x41], rbx
test rbx, rbx
je 0x18009c853
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009c853
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0xf8]
call fcn.1800aa090
nop
test rbx, rbx
je 0x18009c87b
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009c873
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x41], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp qword [r14 + 0x18], 8
jb 0x18009c89a
mov r14, qword [r14]
mov rax, qword [rbp - 0x39]
cmp qword [rax], 0x26
jne 0x18009c8ca
sub r14, rdi
nop word [rax + rax]
movzx eax, word [rdi]
cmp word [r14 + rdi], ax
jne 0x18009c8ca
add rdi, 2
sub r15, 1
jne 0x18009c8b0
lea r8d, [r15 + 2]
jmp 0x18009c8d0
mov r8d, 3
mov rcx, qword [rsi + 0x1f0]
mov rax, qword [rcx]
lea rdx, [rbp - 0x21]
call qword [rax + 0x30]
mov byte [rsi + 0x410], 1
lea rbx, [rsi + 0x1a0]
mov qword [rbp - 0x39], rbx
test rbx, rbx
je 0x18009c907
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009c907
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0x1a8]
call fcn.180099be0
nop
test rbx, rbx
je 0x18009c92f
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009c927
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x39], 0
mov rcx, rsi
call fcn.18009d3e0
mov rcx, rsi
call fcn.1800a7ab0
mov rcx, rsi
call fcn.1800a7900
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetParent]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x64d
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageW]
cmp byte [rbp - 0x49], 0
jne 0x18009c983
mov r9d, 1
xor r8d, r8d
mov edx, 0x1013
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rsi
call fcn.1800a5370
mov bl, 1
cmp r12, 8
jb 0x18009c9cb
lea rdx, [r12*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x18009c9c3
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009c9c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.180393fb0
xor edi, edi
mov qword [rbp + 0xf], rdi
mov qword [rbp + 0x17], 7
mov word [rbp - 1], di
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x18009ca20
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009ca1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009ca1b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], di
movzx eax, bl
jmp 0x18009ca38
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret