Function at 0x14003c330
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 [0x140263bb0]
mov r15, r8
sbb ebp, ebp
mov r12, rdx
add ebp, 3
mov rbx, rcx
cmp eax, 0xffffffff
jne 0x14003c36f
call fcn.14003d560
cmp eax, 2
mov r13d, 0x2f80
mov ecx, reloc.WS2_32.dll_recv
mov r14d, 0x110
cmovg r14d, ecx
cmp qword [0x140279320], 0
je 0x14003c40c
lea rcx, [rsp + 0x58]
mov rdx, rbx
sub rcx, 8
call fcn.140029470
mov rcx, qword [0x140279320]
mov r8d, 4
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140171060
test rax, rax
je 0x14003c40c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003c3ec
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
test edi, edi
jne 0x14003c414
mov r8, rbx
lea rdx, str.Service__s_already_existed
mov ecx, 0x5b0003
call fcn.14002d1f0
or eax, 0xffffffff
jmp 0x14003c5f8
test edi, edi
je 0x14003c4ec
or edi, 0xffffffff
mov qword [rsp + 0x60], rsi
cmp qword [0x140279320], 0
je 0x14003c4b8
lea rcx, [rsp + 0x58]
mov rdx, rbx
sub rcx, 8
call fcn.140029470
mov rcx, qword [0x140279320]
mov r8d, 0x10000
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140171060
mov rsi, rax
test rax, rax
je 0x14003c4b8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003c48d
mov r8, rbx
lea rdx, str.Failed_deleting_service__s:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
jmp 0x14003c48f
xor edi, edi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003c4df
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
jmp 0x14003c4df
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov rax, qword [r13 + rcx]
test rax, rax
jne 0x14003c4d3
call fcn.140176084
mov ecx, dword [rax]
sub ecx, 0x424
neg ecx
sbb edi, edi
mov rsi, qword [rsp + 0x60]
test edi, edi
jne 0x14003c404
mov qword [rsp + 0x28], r15
mov r9d, r14d
mov r8d, 0xf01ff
mov dword [rsp + 0x20], ebp
mov rdx, r12
mov rcx, rbx
call fcn.14003d0a0
mov rcx, rax
call fcn.140171060
test rax, rax
jne 0x14003c5cf
mov r8, rbx
lea rdx, str.Failed_creating_service__s:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
mov edi, dword [rsp + 0x80]
test edi, edi
je 0x14003c5b6
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov rax, qword [r13 + rcx]
test rax, rax
jne 0x14003c554
call fcn.140176084
cmp dword [rax], 0x430
jne 0x14003c5b6
mov r8d, edi
lea rdx, str.Trying_again_in__d_ms
mov ecx, 0x5b0003
call fcn.14002d1f0
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.14003d0a0
mov rcx, rax
call fcn.140171060
test rax, rax
jne 0x14003c5cf
mov r8, rbx
lea rdx, str.Failed_creating_service__s_after_timeout:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
mov r8, rbx
lea rdx, str.Service__s_could_not_be_recreated
mov ecx, 0x5b0003
call fcn.14002d1f0
or eax, 0xffffffff
jmp 0x14003c5f8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003c5f6
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
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