Function at 0x1800178b0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x18002c008]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rax, qword [0x18002c868]
xor r15d, r15d
mov rdi, rcx
mov qword [rbp - 0x18], r15
lea rcx, sym.ulib.dll_const_DSTRING::vftable
mov dword [rbp - 0x10], r15d
mov qword [rbp - 0x28], rcx
xorps xmm0, xmm0
mov qword [rsp + 0x78], rcx
mov r14, rdx
lea rcx, [rbp + 0x18]
mov qword [rbp - 0x20], rax
mov qword [rbp - 8], r15
mov sil, r15b
mov dword [rbp], r15d
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x70], r15d
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x60], r15d
movups xmmword [rsp + 0x68], xmm0
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x18], r15
mov dword [rbp + 0x24], 0x11
mov dword [rbp + 0x28], 0x12
mov dword [rbp + 0x30], 9
mov dword [rbp + 0x20], 0x34
mov qword [rsp + 0x60], r15
call sym.ulib.dll_public:_long_int___cdecl_ADMINFILEPRIVS::EnablePrivileges_void____ptr64
test eax, eax
js 0x180017b9b
mov ebx, r15d
cmp dword [rdi + 0x90], r15d
jle 0x180017b57
mov r9, qword [rdi + 0x40]
lea rdx, str._s_s_
mov r8, qword [rdi + 0x70]
lea rcx, [rsp + 0x78]
call sym.ulib.dll_public_virtual:_unsigned_char___cdecl_DSTRING::SPrintf_unsigned_short_int_const____ptr64____ptr64
test al, al
je 0x180017b9b
mov rdx, qword [rdi + 0x10]
lea rcx, [rsp + 0x78]
mov r8d, ebx
call sym.ulib.dll_public_virtual:_unsigned_char___cdecl_DSTRING::SPrintfAppend_unsigned_short_int_const____ptr64____ptr64
test al, al
je 0x180017b9b
movzx eax, word [rbp - 0x70]
lea r9, [rbp + 8]
mov dword [rsp + 0x50], r15d
lea r8, [rbp - 0x58]
add ax, ax
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x40], 0x204040
lea rcx, [rsp + 0x60]
mov word [rsp + 0x68], ax
xorps xmm0, xmm0
mov word [rsp + 0x6a], ax
mov edx, 0x100080
mov rax, qword [rbp - 0x78]
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], r15d
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x58], 0x30
mov qword [rbp - 0x40], 0x40
mov qword [rbp - 0x50], r15
movdqu xmmword [rbp - 0x38], xmm0
mov qword [rsp + 0x20], r15
movups xmmword [rbp + 8], xmm0
call qword [sym.imp.ntdll.dll_NtCreateFile]
nop dword [rax + rax]
test eax, eax
js 0x180017a67
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
inc ebx
mov qword [rsp + 0x60], r15
cmp ebx, dword [rdi + 0x90]
jl 0x180017973
jmp 0x180017b57
cmp eax, 0xc0000034
jne 0x180017b9b
jmp 0x180017b57
mov r9, qword [rdi + 0x40]
lea rdx, str._s_s_
mov r8, qword [rdi + 0x70]
lea rcx, [rsp + 0x78]
call sym.ulib.dll_public_virtual:_unsigned_char___cdecl_DSTRING::SPrintf_unsigned_short_int_const____ptr64____ptr64
test al, al
je 0x180017b9b
mov rdx, qword [rdi + 0x10]
lea rcx, [rsp + 0x78]
mov r8d, ebx
call sym.ulib.dll_public_virtual:_unsigned_char___cdecl_DSTRING::SPrintfAppend_unsigned_short_int_const____ptr64____ptr64
test al, al
je 0x180017b9b
mov r9, qword [rdi + 0x40]
lea rdx, str._s_s_
mov r8, qword [rdi + 0x70]
lea rcx, [rbp - 0x28]
call sym.ulib.dll_public_virtual:_unsigned_char___cdecl_DSTRING::SPrintf_unsigned_short_int_const____ptr64____ptr64
test al, al
je 0x180017b9b
mov rdx, qword [rdi + 0x10]
lea r8d, [rbx + 1]
lea rcx, [rbp - 0x28]
call sym.ulib.dll_public_virtual:_unsigned_char___cdecl_DSTRING::SPrintfAppend_unsigned_short_int_const____ptr64____ptr64
test al, al
je 0x180017b9b
mov eax, dword [rdi + 0x90]
dec eax
cmp ebx, eax
jne 0x180017b45
movzx eax, word [rbp - 0x70]
lea rcx, [rbp - 0x58]
add ax, ax
mov dword [rbp - 0x58], 0x30
mov word [rsp + 0x68], ax
xorps xmm0, xmm0
mov word [rsp + 0x6a], ax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x40], 0x40
movdqu xmmword [rbp - 0x38], xmm0
call qword [sym.imp.ntdll.dll_NtDeleteFile]
nop dword [rax + rax]
jmp 0x180017b53
lea r8, [rbp - 0x28]
lea rdx, [rsp + 0x78]
call fcn.180017fc0
test eax, eax
js 0x180017b9b
sub ebx, 1
jns 0x180017a77
test r14, r14
je 0x180017b98
lea r8, [rsp + 0x78]
mov rdx, r14
call fcn.180017bfc
test al, al
je 0x180017b9b
lea rdx, [rbp - 0x28]
mov rcx, rdi
call sym.ulib.dll_public:_unsigned_char___cdecl_SVILOGFILES::NewLogFileName_class_WSTRING____ptr64____ptr64
test al, al
je 0x180017b9b
lea r8, [rbp - 0x28]
lea rdx, [rsp + 0x78]
call fcn.180017fc0
test eax, eax
js 0x180017b9b
mov sil, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180017bb1
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
lea rcx, [rbp + 0x18]
call sym.ulib.dll_public:_void___cdecl_ADMINFILEPRIVS::destructor_void____ptr64
lea rcx, [rsp + 0x78]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
lea rcx, [rbp - 0x28]
call sym.ulib.dll_public_virtual:_void___cdecl_DSTRING::destructor_void____ptr64
mov al, sil
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.18000d460
mov rbx, qword [rsp + 0x190]
add rsp, 0x150
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret