Function at 0x430cd0
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 0x430cf0
call fcn.00431bb0
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 0x430d85
lea eax, [ebp + 4]
sub eax, 4
push ebx
push eax
call fcn.00420ea0
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 0x430d85
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x430d62
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.00424200
add esp, 8
cmp dword [ebp + 0x14], 0
jne 0x430d8f
push ebx
push str.Service__s_already_existed
push 0x550003
call fcn.00424200
add esp, 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x430e52
or esi, 0xffffffff
cmp dword [0x5fdc84], 0
je 0x430e27
lea eax, [ebp + 4]
sub eax, 4
push ebx
push eax
call fcn.00420ea0
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 0x430e27
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x430dfb
push ebx
push str.Failed_deleting_service__s:__m
push 0x550003
call fcn.00424200
add esp, 0xc
jmp 0x430dfd
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 0x430e4a
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.00424200
add esp, 8
jmp 0x430e4a
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x430e3e
call fcn.005414b2
mov esi, dword [eax]
sub esi, 0x424
neg esi
sbb esi, esi
test esi, esi
jne 0x430d7b
push dword [ebp + 0x10]
push edi
push dword [ebp + 0x1c]
push 0xf01ff
push dword [ebp + 0xc]
push ebx
call fcn.00431800
push eax
call fcn.0053b3a0
add esp, 0x1c
test eax, eax
jne 0x430f0b
push ebx
push str.Failed_creating_service__s:__m
push 0x550003
call fcn.00424200
mov esi, dword [ebp + 0x18]
add esp, 0xc
test esi, esi
je 0x430f00
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x430ea9
call fcn.005414b2
cmp dword [eax], 0x430
jne 0x430f00
push esi
push str.Trying_again_in__d_ms
push 0x550003
call fcn.00424200
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.00431800
push eax
call fcn.0053b3a0
add esp, 0x1c
test eax, eax
jne 0x430f0b
push ebx
push str.Failed_creating_service__s_after_timeout:__m
push 0x550003
call fcn.00424200
add esp, 0xc
push ebx
push str.Service__s_could_not_be_recreated
jmp 0x430d6e
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x430f31
push str.Failed_close_service_handle:__m
push 0x550003
call fcn.00424200
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret