Function at 0x140036ca0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
neg dword [rsp + 0x88]
mov edi, r9d
mov eax, dword [0x14025b390]
mov r15, r8
sbb ebp, ebp
mov r12, rdx
add ebp, 3
mov rbx, rcx
cmp eax, 0xffffffff
jne 0x140036cdf
call fcn.140037ca0
cmp eax, 2
mov r13d, 0x2fe0
mov ecx, reloc.WS2_32.dll_recv
mov r14d, 0x110
cmovg r14d, ecx
cmp qword [0x14026e570], 0
je 0x140036d7c
lea rcx, [rsp + 0x58]
mov rdx, rbx
sub rcx, 8
call fcn.140025620
mov rcx, qword [0x14026e570]
mov r8d, 4
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140172370
test rax, rax
je 0x140036d7c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140172320
test rax, rax
jne 0x140036d5c
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x670003
call fcn.140028ca0
test edi, edi
jne 0x140036d84
mov r8, rbx
lea rdx, str.Service__s_already_existed
mov ecx, 0x670003
call fcn.140028ca0
or eax, 0xffffffff
jmp 0x140036f70
test edi, edi
je 0x140036e64
or edi, 0xffffffff
mov qword [rsp + 0x60], rsi
cmp qword [0x14026e570], 0
jne 0x140036d9a
xor eax, eax
jmp 0x140036dc9
lea rcx, [rsp + 0x58]
mov rdx, rbx
sub rcx, 8
call fcn.140025620
mov rcx, qword [0x14026e570]
mov r8d, 0x10000
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140172370
mov rcx, rax
call fcn.140172370
mov rsi, rax
test rax, rax
jne 0x140036e02
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov rax, qword [r13 + rcx]
test rax, rax
jne 0x140036df4
call fcn.140176664
mov ecx, dword [rax]
sub ecx, 0x424
neg ecx
sbb edi, edi
jmp 0x140036e57
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
movsxd rcx, eax
call fcn.140172320
test rax, rax
jne 0x140036e2e
mov r8, rbx
lea rdx, str.Failed_deleting_service__s:__m
mov ecx, 0x670003
call fcn.140028ca0
jmp 0x140036e30
xor edi, edi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140172320
test rax, rax
jne 0x140036e57
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x670003
call fcn.140028ca0
mov rsi, qword [rsp + 0x60]
test edi, edi
jne 0x140036d74
mov qword [rsp + 0x28], r15
mov r9d, r14d
mov r8d, 0xf01ff
mov dword [rsp + 0x20], ebp
mov rdx, r12
mov rcx, rbx
call fcn.140037930
mov rcx, rax
call fcn.140172370
test rax, rax
jne 0x140036f47
mov r8, rbx
lea rdx, str.Failed_creating_service__s:__m
mov ecx, 0x670003
call fcn.140028ca0
mov edi, dword [rsp + 0x80]
test edi, edi
je 0x140036f2e
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov rax, qword [r13 + rcx]
test rax, rax
jne 0x140036ecc
call fcn.140176664
cmp dword [rax], 0x430
jne 0x140036f2e
mov r8d, edi
lea rdx, str.Trying_again_in__d_ms
mov ecx, 0x670003
call fcn.140028ca0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r9d, r14d
mov qword [rsp + 0x28], r15
mov r8d, 0xf01ff
mov dword [rsp + 0x20], ebp
mov rdx, r12
mov rcx, rbx
call fcn.140037930
mov rcx, rax
call fcn.140172370
test rax, rax
jne 0x140036f47
mov r8, rbx
lea rdx, str.Failed_creating_service__s_after_timeout:__m
mov ecx, 0x670003
call fcn.140028ca0
mov r8, rbx
lea rdx, str.Service__s_could_not_be_recreated
mov ecx, 0x670003
call fcn.140028ca0
or eax, 0xffffffff
jmp 0x140036f70
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140172320
test rax, rax
jne 0x140036f6e
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x670003
call fcn.140028ca0
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret