Function at 0x14005e710
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x1401c5538]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rdi, rdx
mov qword [rsp + 0x40], rdx
call fcn.1400726a0
mov r8, qword [rdi]
add r8, 0x30
cmp qword [r8 + 0x18], 0x10
jb 0x14005e75e
mov r8, qword [r8]
lea rdx, str.RestartServiceCmdHandler:_From__s
mov rcx, rax
call fcn.140072950
mov rbx, qword [0x1401c9d18]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor esi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
lea edx, [rsi + 0x20]
lea rcx, [rsp + 0x48]
call fcn.140004ad0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], setsockopt
mov qword [rsp + 0x60], 0x1f
movups xmm0, xmmword [str.AcService.RunMode]
movups xmmword [rax], xmm0
movzx edx, byte [0x140176070]
mov byte [rax + 0x10], dl
mov byte [rax + 0x11], sil
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.14006e570
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14005e818
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e813
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005e9f2
call fcn.1401452fc
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], 0
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rcx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
cmp r8, 7
jne 0x14005e86f
lea rdx, str.Console
call fcn.140147d20
test eax, eax
jne 0x14005e86f
call fcn.1400726a0
lea rdx, str.RestartServiceCmdHandler:_Run_in_debug_mode__ignore_
mov rcx, rax
call fcn.1400723d0
jmp 0x14005e945
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 0x70]
call fcn.140147800
lea rdx, [rbp - 0x70]
lea rcx, str.RestartService.exe
call fcn.14006c680
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rbp - 0x70]
mov ecx, 0x134
call fcn.14004a430
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xa0]
call fcn.140147800
lea rdx, [rbp + 0xa0]
lea rcx, str.stopservice.txt
call fcn.14006c680
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 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.140147800
lea r9, [rbp - 0x70]
lea r8, str.__s__SNLSPService
mov edx, 0x208
lea rcx, [rbp + 0x1b0]
call fcn.140017490
xor edx, edx
lea rcx, [rbp + 0x1b0]
call fcn.140071740
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x14005e97d
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005e978
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005e9ec
call fcn.1401452fc
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x68], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14005e9c4
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14005e9c4
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14005e9c4
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.1401453a0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14014bf64
nop
call fcn.14014bf64
int3