Function at 0x180155e30
Capabilities:
Delete directory

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x298]
sub rsp, 0x370
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1804ca010]
xor rax, rsp
mov qword [rbp + 0x260], rax
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov esi, r12d
mov qword [rsp + 0x38], r12
mov rdx, rcx
lea rcx, [rbp - 0x68]
call fcn.180004aa0
nop
lea edx, [r12 + 0x10]
lea rcx, [rbp - 0x68]
call fcn.18015a5e0
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 8], r12
mov qword [rbp], r12
mov qword [rbp - 8], r12
mov qword [rbp], 7
mov word [rbp - 0x18], r12w
mov qword [rsp + 0x40], r12
lea ecx, [r12 + 8]
call fcn.180385c34
mov qword [rsp + 0x48], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov r15d, 1
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x58]
add rdx, 3
lea rcx, [rsp + 0x58]
call fcn.18000b590
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r9, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x58]
mov r14, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
sub rax, r14
cmp rdi, rax
ja 0x180155f7d
lea rax, [r14 + rdi]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x58]
cmp rcx, 8
cmovae rbx, qword [rsp + 0x58]
lea r8, [rdi + rdi]
lea rcx, [rbx + r14*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [r14 + rdi]
mov word [rbx + rax*2], r12w
jmp 0x180155f92
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180009e00
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 3
jb 0x180155fdd
lea rdi, [rcx + 3]
mov qword [rsp + 0x68], rdi
lea rbx, [rsp + 0x58]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + rcx*2]
mov r8d, 6
lea rdx, [0x1803c1568]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x180155ffe
mov qword [rsp + 0x20], 3
lea r9, [0x1803c1568]
xor r8d, r8d
lea edx, [r8 + 3]
lea rcx, [rsp + 0x58]
call fcn.180009e00
lea r8, [rbp - 0x40]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.18015e7f0
movzx edi, al
and r15d, 0xfffffffe
mov dword [rsp + 0x30], r15d
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x180156062
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015605d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18015605d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
mov rbx, qword [rsp + 0x40]
test dil, dil
je 0x1801567c4
movzx ecx, byte [rbp - 0x20]
shr cl, 4
mov r12, qword [rbp]
mov r14, qword [rbp - 8]
mov r13, qword [rbp - 0x18]
and cl, 1
je 0x1801560da
test r14, r14
je 0x1801560da
lea rax, [rbp - 0x18]
cmp r12, 8
cmovae rax, r13
cmp word [rax], 0x2e
jne 0x1801560da
cmp r14, 1
je 0x1801563f7
lea rax, [rbp - 0x18]
cmp r12, 8
cmovae rax, r13
cmp word [rax + 2], 0x2e
jne 0x1801560da
cmp r14, 2
je 0x1801563f7
test cl, cl
je 0x180156266
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], ax
or r15d, 2
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x58]
add rdx, r14
lea rcx, [rsp + 0x58]
call fcn.18000b590
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r9, qword [rbp - 0x68]
mov rsi, qword [rbp - 0x58]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], rcx
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x18015617f
lea rax, [rcx + rsi]
mov qword [rsp + 0x68], rax
lea rdi, [rsp + 0x58]
cmp rdx, 8
cmovae rdi, qword [rsp + 0x58]
lea r8, [rsi + rsi]
lea rcx, [rdi + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rsp + 0x38]
add rax, rsi
xor ecx, ecx
mov word [rdi + rax*2], cx
jmp 0x180156194
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.180009e00
lea r9, [rbp - 0x18]
cmp r12, 8
cmovae r9, r13
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp r14, rax
ja 0x1801561e7
lea rsi, [rcx + r14]
mov qword [rsp + 0x68], rsi
lea rdi, [rsp + 0x58]
cmp rdx, 8
cmovae rdi, qword [rsp + 0x58]
lea r8, [r14 + r14]
lea rcx, [rdi + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
xor r14d, r14d
mov word [rdi + rsi*2], r14w
jmp 0x1801561ff
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.180009e00
xor r14d, r14d
lea rcx, [rsp + 0x58]
call fcn.180155e30
mov rsi, rax
mov qword [rsp + 0x38], rax
and r15d, 0xfffffffd
mov dword [rsp + 0x30], r15d
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1801563e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801563de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801563de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], ax
or r15d, 4
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x58]
add rdx, r14
lea rcx, [rsp + 0x58]
call fcn.18000b590
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r9, qword [rbp - 0x68]
mov rsi, qword [rbp - 0x58]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], rcx
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x180156303
lea rax, [rsi + rcx]
mov qword [rsp + 0x68], rax
lea rdi, [rsp + 0x58]
cmp rdx, 8
cmovae rdi, qword [rsp + 0x58]
lea r8, [rsi + rsi]
lea rcx, [rdi + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rsp + 0x38]
add rax, rsi
xor ecx, ecx
mov word [rdi + rax*2], cx
jmp 0x180156318
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.180009e00
lea r9, [rbp - 0x18]
cmp r12, 8
cmovae r9, r13
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp r14, rax
ja 0x18015636b
lea rsi, [rcx + r14]
mov qword [rsp + 0x68], rsi
lea rdi, [rsp + 0x58]
cmp rdx, 8
cmovae rdi, qword [rsp + 0x58]
lea r8, [r14 + r14]
lea rcx, [rdi + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
xor r14d, r14d
mov word [rdi + rsi*2], r14w
jmp 0x180156383
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.180009e00
xor r14d, r14d
lea rcx, [rsp + 0x58]
call fcn.180175040
movzx esi, al
mov qword [rsp + 0x38], rsi
and r15d, 0xfffffffb
mov dword [rsp + 0x30], r15d
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1801563e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801563de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801563de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov word [rsp + 0x58], r14w
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r14
xor r12d, r12d
mov rdi, qword [rbx]
cmp rdi, 0xffffffffffffffff
je 0x1801567c4
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1801567c4
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x10]
call fcn.18015e610
movzx ecx, byte [rbp - 0x20]
shr cl, 4
mov r12, qword [rbp]
mov r14, qword [rbp - 8]
mov r13, qword [rbp - 0x18]
and cl, 1
je 0x18015648c
test r14, r14
je 0x18015648c
lea rax, [rbp - 0x18]
cmp r12, 8
cmovae rax, r13
cmp word [rax], 0x2e
jne 0x18015648c
cmp r14, 1
je 0x1801563f7
lea rax, [rbp - 0x18]
cmp r12, 8
cmovae rax, r13
cmp word [rax + 2], 0x2e
jne 0x18015648c
cmp r14, 2
je 0x1801563f7
test cl, cl
je 0x18015662c
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], ax
or r15d, 8
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x58]
add rdx, r14
lea rcx, [rsp + 0x58]
call fcn.18000b590
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r9, qword [rbp - 0x68]
mov rsi, qword [rbp - 0x58]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x48], rcx
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x180156531
lea rax, [rcx + rsi]
mov qword [rsp + 0x68], rax
lea rdi, [rsp + 0x58]
cmp rdx, 8
cmovae rdi, qword [rsp + 0x58]
lea r8, [rsi + rsi]
lea rcx, [rdi + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rsp + 0x48]
add rax, rsi
xor ecx, ecx
mov word [rdi + rax*2], cx
jmp 0x180156546
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.180009e00
lea r9, [rbp - 0x18]
cmp r12, 8
cmovae r9, r13
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp r14, rax
ja 0x180156599
lea rsi, [rcx + r14]
mov qword [rsp + 0x68], rsi
lea rdi, [rsp + 0x58]
cmp rdx, 8
cmovae rdi, qword [rsp + 0x58]
lea r8, [r14 + r14]
lea rcx, [rdi + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
xor r12d, r12d
mov word [rdi + rsi*2], r12w
jmp 0x1801565b1
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x58]
call fcn.180009e00
xor r12d, r12d
lea rcx, [rsp + 0x58]
call fcn.180155e30
mov rsi, qword [rsp + 0x38]
add rsi, rax
mov qword [rsp + 0x38], rsi
and r15d, 0xfffffff7
mov dword [rsp + 0x30], r15d
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x180156613
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015660e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801567b6
call fcn.180385c70
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
jmp 0x1801563fa
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], ax
or r15d, 0x10
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x58]
add rdx, r14
lea rcx, [rsp + 0x78]
call fcn.18000b590
lea r9, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r9, qword [rbp - 0x68]
mov rsi, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x78]
mov qword [rsp + 0x48], rcx
mov rdx, qword [rbp - 0x70]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1801566c2
lea rax, [rcx + rsi]
mov qword [rbp - 0x78], rax
lea rdi, [rsp + 0x78]
cmp rdx, 8
cmovae rdi, qword [rsp + 0x78]
lea r8, [rsi + rsi]
lea rcx, [rdi + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rsp + 0x48]
add rax, rsi
xor ecx, ecx
mov word [rdi + rax*2], cx
jmp 0x1801566d7
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.180009e00
lea r9, [rbp - 0x18]
cmp r12, 8
cmovae r9, r13
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x70]
mov rax, rdx
sub rax, rcx
cmp r14, rax
ja 0x180156727
lea rsi, [rcx + r14]
mov qword [rbp - 0x78], rsi
lea rdi, [rsp + 0x78]
cmp rdx, 8
cmovae rdi, qword [rsp + 0x78]
lea r8, [r14 + r14]
lea rcx, [rdi + rcx*2]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
xor r12d, r12d
mov word [rdi + rsi*2], r12w
jmp 0x18015673f
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.180009e00
xor r12d, r12d
lea rcx, [rsp + 0x78]
call fcn.180175040
movzx eax, al
mov rsi, qword [rsp + 0x38]
add rsi, rax
mov qword [rsp + 0x38], rsi
and r15d, 0xffffffef
mov dword [rsp + 0x30], r15d
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x18015679f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015679a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1801567bd
call fcn.180385c70
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
jmp 0x1801563fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1801567de
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x1801567de
mov qword [rbx], 0xffffffffffffffff
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18015689e
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.180175ae0
test al, al
je 0x180156900
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x180156900
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x18015688c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180156887
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180156887
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
inc rsi
lea rcx, [rsp + 0x40]
call fcn.18015e780
nop
lea rcx, [rbp - 0x18]
call fcn.180004df0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x180156a8d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180156a88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180156a88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x180156944
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015693f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18015693f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
lea rcx, [rbp - 0x68]
call fcn.180174640
mov ebx, eax
cmp eax, 0xffffffff
je 0x1801568a1
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.180174520
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18015689e
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.180175ae0
test al, al
je 0x180156a22
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x180156a22
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x18015688c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180156887
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180156887
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x180156a66
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180156a61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180156a61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r12w
mov edx, ebx
lea rcx, [rbp - 0x68]
call fcn.180174520
jmp 0x1801568a1
call fcn.180385c70
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r12w
mov rax, rsi
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.180385c10
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret