Function at 0x14008b350
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rdi, rdx
mov qword [rsp + 0x40], rdx
call fcn.140067ee0
mov r8, qword [rdi]
add r8, 0x30
cmp qword [r8 + 0x18], 0xf
jbe 0x14008b399
mov r8, qword [r8]
lea rdx, str.RestartServiceCmdHandler:_From__s
mov rcx, rax
call fcn.140068190
mov rbx, qword [0x1401f90b8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov ecx, 0x20
call fcn.14016aa7c
mov qword [rsp + 0x68], rax
movdqa xmm0, xmmword [0x14019e100]
movdqu xmmword [rsp + 0x78], xmm0
movups xmm0, xmmword [str.AcService.RunMode]
movups xmmword [rax], xmm0
movzx edx, byte [0x14019d6d8]
mov byte [rax + 0x10], dl
mov byte [rax + 0x11], 0
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140062990
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x14008b444
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008b43f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008b621
call fcn.14016aab8
movdqa xmm0, xmmword [0x14019ba70]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rcx, qword [rsp + 0x48]
xor ebx, ebx
mov r8, qword [rsp + 0x58]
cmp r8, 7
jne 0x14008b49e
lea rdx, str.Console
call fcn.140191dc0
test eax, eax
jne 0x14008b49e
call fcn.140067ee0
lea rdx, str.RestartServiceCmdHandler:_Run_in_debug_mode__ignore_
mov rcx, rax
call fcn.140067c10
jmp 0x14008b576
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 0x70]
call fcn.140191ec0
lea rdx, [rbp - 0x70]
lea rcx, str.RestartService.exe
call fcn.14005a030
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rbp - 0x70]
mov ecx, 0x134
call fcn.14003fd00
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xa0]
call fcn.140191ec0
lea rdx, [rbp + 0xa0]
lea rcx, str.stopservice.txt
call fcn.14005a030
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x80000000
mov r8d, 1
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call fcn.140191ec0
lea r9, [rbp - 0x70]
lea r8, str.__s__SNLSPService
mov edx, 0x208
lea rcx, [rbp + 0x1b0]
call fcn.140040fd0
xor edx, edx
lea rcx, [rbp + 0x1b0]
call fcn.140066840
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14008b5af
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008b5aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008b61b
call fcn.14016aab8
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14008b5f7
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14008b5f7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14008b5f7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.14016ab50
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140170de4
nop
call fcn.140170de4
int3