Function at 0x1800997b0
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 [0x1804cc010]
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 0x180099b76
cmp qword [rcx + 0x1f0], 0
je 0x180099b76
mov r8, rdx
cmp qword [rdx + 0x18], 8
jb 0x18009981f
mov r8, qword [rdx]
xor r9d, r9d
mov r15d, 0x26
lea rdi, str.3B17FBE5_E5F0_4ecb_B4A7_2B70C8E37DC7
cmp rax, r15
jne 0x180099859
mov edx, r15d
mov rcx, rdi
sub r8, rdi
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x180099859
add rcx, 2
sub rdx, 1
jne 0x180099840
lea eax, [rdx + 1]
jmp 0x18009985c
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 0x1800998b0
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 0x1800998da
lea rcx, [rbp - 0x21]
call fcn.180155b10
test al, al
jne 0x1800998da
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.180158700
mov byte [rbp - 0x49], 1
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800998e7
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 0x18009995f
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 0x180099924
mov rbx, qword [rbx]
lea rcx, [rbp - 1]
cmp r12, 8
cmovae rcx, r13
mov r8, qword [rdx]
test r8, r8
je 0x180099944
mov rdx, rbx
call fcn.1801543e0
test eax, eax
jne 0x18009995f
mov rcx, qword [rsi + 0x1f0]
mov rax, qword [rcx]
call qword [rax + 0xe0]
test eax, eax
je 0x18009995f
xor bl, bl
jmp 0x180099acd
mov qword [rsi + 0x10c], 0xffffffffffffffff
mov dword [rsi + 0x108], 0xffffffff
lea rbx, [rsi + 0xf0]
mov qword [rbp - 0x41], rbx
test rbx, rbx
je 0x180099993
mov rcx, qword [rbx]
test rcx, rcx
je 0x180099993
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0xf8]
call fcn.1800a71d0
nop
test rbx, rbx
je 0x1800999bb
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800999b3
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 0x1800999da
mov r14, qword [r14]
mov rax, qword [rbp - 0x39]
cmp qword [rax], 0x26
jne 0x180099a0a
sub r14, rdi
nop word [rax + rax]
movzx eax, word [rdi]
cmp word [r14 + rdi], ax
jne 0x180099a0a
add rdi, 2
sub r15, 1
jne 0x1800999f0
lea r8d, [r15 + 2]
jmp 0x180099a10
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 0x180099a47
mov rcx, qword [rbx]
test rcx, rcx
je 0x180099a47
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0x1a8]
call fcn.180096e00
nop
test rbx, rbx
je 0x180099a6f
mov rcx, qword [rbx]
test rcx, rcx
je 0x180099a67
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x39], 0
mov rcx, rsi
call fcn.18009a520
mov rcx, rsi
call fcn.1800a4bf0
mov rcx, rsi
call fcn.1800a4a40
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 0x180099ac3
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.1800a24b0
mov bl, 1
cmp r12, 8
jb 0x180099b0b
lea rdx, [r12*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x180099b03
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180099b03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.180386950
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 0x180099b60
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180099b5b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180099b5b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], di
movzx eax, bl
jmp 0x180099b78
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret