Function at 0x180099df0
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 [0x1804ca010]
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 0x18009a1b6
cmp qword [rcx + 0x1f0], 0
je 0x18009a1b6
mov r8, rdx
cmp qword [rdx + 0x18], 8
jb 0x180099e5f
mov r8, qword [rdx]
xor r9d, r9d
mov r15d, 0x26
lea rdi, str.3B17FBE5_E5F0_4ecb_B4A7_2B70C8E37DC7
cmp rax, r15
jne 0x180099e99
mov edx, r15d
mov rcx, rdi
sub r8, rdi
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x180099e99
add rcx, 2
sub rdx, 1
jne 0x180099e80
lea eax, [rdx + 1]
jmp 0x180099e9c
mov eax, r9d
mov dword [rsi + 0x208], eax
mov dword [rsi + 0x3e8], 0xffffffff
mov rdx, r14
lea rcx, [rbp - 0x21]
call fcn.180004aa0
nop
lea rbx, [rsi + 0x118]
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.180004aa0
nop
lea rax, [rbp - 0x21]
cmp rbx, rax
je 0x180099ef0
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x11]
mov rcx, rbx
call fcn.180004e70
mov byte [rbp - 0x49], 0
cmp dword [rsi + 0x208], 1
je 0x180099f1a
lea rcx, [rbp - 0x21]
call fcn.180155c00
test al, al
jne 0x180099f1a
mov rdx, rbx
lea rcx, [rbp - 0x21]
call fcn.1801587f0
mov byte [rbp - 0x49], 1
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180099f27
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 0x180099f9f
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 0x180099f64
mov rbx, qword [rbx]
lea rcx, [rbp - 1]
cmp r12, 8
cmovae rcx, r13
mov r8, qword [rdx]
test r8, r8
je 0x180099f84
mov rdx, rbx
call fcn.1801544d0
test eax, eax
jne 0x180099f9f
mov rcx, qword [rsi + 0x1f0]
mov rax, qword [rcx]
call qword [rax + 0xe0]
test eax, eax
je 0x180099f9f
xor bl, bl
jmp 0x18009a10d
mov qword [rsi + 0x10c], 0xffffffffffffffff
mov dword [rsi + 0x108], 0xffffffff
lea rbx, [rsi + 0xf0]
mov qword [rbp - 0x41], rbx
test rbx, rbx
je 0x180099fd3
mov rcx, qword [rbx]
test rcx, rcx
je 0x180099fd3
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0xf8]
call fcn.1800a7810
nop
test rbx, rbx
je 0x180099ffb
mov rcx, qword [rbx]
test rcx, rcx
je 0x180099ff3
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 0x18009a01a
mov r14, qword [r14]
mov rax, qword [rbp - 0x39]
cmp qword [rax], 0x26
jne 0x18009a04a
sub r14, rdi
nop word [rax + rax]
movzx eax, word [rdi]
cmp word [r14 + rdi], ax
jne 0x18009a04a
add rdi, 2
sub r15, 1
jne 0x18009a030
lea r8d, [r15 + 2]
jmp 0x18009a050
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 0x18009a087
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009a087
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0x1a8]
call fcn.180097440
nop
test rbx, rbx
je 0x18009a0af
mov rcx, qword [rbx]
test rcx, rcx
je 0x18009a0a7
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x39], 0
mov rcx, rsi
call fcn.18009ab60
mov rcx, rsi
call fcn.1800a5230
mov rcx, rsi
call fcn.1800a5080
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 0x18009a103
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.1800a2af0
mov bl, 1
cmp r12, 8
jb 0x18009a14b
lea rdx, [r12*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x18009a143
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009a143
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.180385c70
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 0x18009a1a0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009a19b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009a19b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], di
movzx eax, bl
jmp 0x18009a1b8
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.180385c10
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret