Function at 0x430c80
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5eda74]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
neg edi
sbb edi, edi
add edi, 3
cmp eax, 0xffffffff
jne 0x430ca0
call fcn.00431b60
mov ebx, dword [ebp + 8]
cmp eax, 2
mov ecx, 0x110
mov edx, 0x10
cmovg ecx, edx
cmp dword [0x5fdc84], 0
mov dword [ebp + 0x1c], ecx
je 0x430d35
lea eax, [ebp + 4]
sub eax, 4
push ebx
push eax
call fcn.00420e40
add esp, 8
push 4
push dword [eax]
push dword [0x5fdc84]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
call fcn.0053b3a0
add esp, 4
test eax, eax
je 0x430d35
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x430d12
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.004241a0
add esp, 8
cmp dword [ebp + 0x14], 0
jne 0x430d3f
push ebx
push str.Service__s_already_existed
push 0x550003
call fcn.004241a0
add esp, 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x430e02
or esi, 0xffffffff
cmp dword [0x5fdc84], 0
je 0x430dd7
lea eax, [ebp + 4]
sub eax, 4
push ebx
push eax
call fcn.00420e40
add esp, 8
push 0x10000
push dword [eax]
push dword [0x5fdc84]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
call fcn.0053b3a0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x430dd7
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x430dab
push ebx
push str.Failed_deleting_service__s:__m
push 0x550003
call fcn.004241a0
add esp, 0xc
jmp 0x430dad
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x430dfa
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.004241a0
add esp, 8
jmp 0x430dfa
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x430dee
call fcn.005414b2
mov esi, dword [eax]
sub esi, 0x424
neg esi
sbb esi, esi
test esi, esi
jne 0x430d2b
push dword [ebp + 0x10]
push edi
push dword [ebp + 0x1c]
push 0xf01ff
push dword [ebp + 0xc]
push ebx
call fcn.004317b0
push eax
call fcn.0053b3a0
add esp, 0x1c
test eax, eax
jne 0x430ebb
push ebx
push str.Failed_creating_service__s:__m
push 0x550003
call fcn.004241a0
mov esi, dword [ebp + 0x18]
add esp, 0xc
test esi, esi
je 0x430eb0
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x430e59
call fcn.005414b2
cmp dword [eax], 0x430
jne 0x430eb0
push esi
push str.Trying_again_in__d_ms
push 0x550003
call fcn.004241a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0x1c]
push 0xf01ff
push dword [ebp + 0xc]
push ebx
call fcn.004317b0
push eax
call fcn.0053b3a0
add esp, 0x1c
test eax, eax
jne 0x430ebb
push ebx
push str.Failed_creating_service__s_after_timeout:__m
push 0x550003
call fcn.004241a0
add esp, 0xc
push ebx
push str.Service__s_could_not_be_recreated
jmp 0x430d1e
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x430ee1
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.004241a0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret