Function at 0x180099ef0
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 [0x1804cd010]
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 0x18009a2b6
cmp qword [rcx + 0x1f0], 0
je 0x18009a2b6
mov r8, rdx
cmp qword [rdx + 0x18], 8
jb 0x180099f5f
mov r8, qword [rdx]
xor r9d, r9d
mov r15d, 0x26
lea rdi, str.3B17FBE5_E5F0_4ecb_B4A7_2B70C8E37DC7
cmp rax, r15
jne 0x180099f99
mov edx, r15d
mov rcx, rdi
sub r8, rdi
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x180099f99
add rcx, 2
sub rdx, 1
jne 0x180099f80
lea eax, [rdx + 1]
jmp 0x180099f9c
mov eax, r9d
mov dword [rsi + 0x208], eax
mov dword [rsi + 0x3e8], 0xffffffff
mov rdx, r14
lea rcx, [rbp - 0x21]
call fcn.180004ad0
nop
lea rbx, [rsi + 0x118]
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.180004ad0
nop
lea rax, [rbp - 0x21]
cmp rbx, rax
je 0x180099ff0
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x11]
mov rcx, rbx
call fcn.180004ea0
mov byte [rbp - 0x49], 0
cmp dword [rsi + 0x208], 1
je 0x18009a01a
lea rcx, [rbp - 0x21]
call fcn.1801561c0
test al, al
jne 0x18009a01a
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.180158db0
mov byte [rbp - 0x49], 1
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x18009a027
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 0x18009a09f
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 0x18009a064
mov rbx, qword [rbx]
lea rcx, [rbp - 1]
cmp r12, 8
cmovae rcx, r13
mov r8, qword [rdx]
test r8, r8
je 0x18009a084
mov rdx, rbx
call fcn.180154a90
test eax, eax
jne 0x18009a09f
mov rcx, qword [rsi + 0x1f0]
mov rax, qword [rcx]
call qword [rax + 0xe0]
test eax, eax
je 0x18009a09f
xor bl, bl
jmp 0x18009a20d
mov qword [rsi + 0x10c], 0xffffffffffffffff
mov dword [rsi + 0x108], 0xffffffff
lea rbx, [rsi + 0xf0]
mov qword [rbp - 0x41], rbx
test rbx, rbx
je 0x18009a0d3
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009a0d3
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0xf8]
call fcn.1800a7910
nop
test rbx, rbx
je 0x18009a0fb
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009a0f3
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 0x18009a11a
mov r14, qword [r14]
mov rax, qword [rbp - 0x39]
cmp qword [rax], 0x26
jne 0x18009a14a
sub r14, rdi
nop word [rax + rax]
movzx eax, word [rdi]
cmp word [r14 + rdi], ax
jne 0x18009a14a
add rdi, 2
sub r15, 1
jne 0x18009a130
lea r8d, [r15 + 2]
jmp 0x18009a150
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 0x18009a187
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009a187
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0x1a8]
call fcn.180097540
nop
test rbx, rbx
je 0x18009a1af
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009a1a7
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x39], 0
mov rcx, rsi
call fcn.18009ac60
mov rcx, rsi
call fcn.1800a5330
mov rcx, rsi
call fcn.1800a5180
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 0x18009a203
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.1800a2bf0
mov bl, 1
cmp r12, 8
jb 0x18009a24b
lea rdx, [r12*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x18009a243
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009a243
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.180388460
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 0x18009a2a0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009a29b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009a29b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], di
movzx eax, bl
jmp 0x18009a2b8
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.180388400
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret