Function at 0x100da71
Capabilities:
Delete service

Disassembly:
mov eax, 0x1095f05
call fcn.01077478
sub esp, 0x10
mov eax, dword [0x10a6184]
push ebx
push esi
push edi
mov edi, 0x10a6184
cmp eax, edi
mov esi, ecx
mov dword [ebp - 0x14], esi
je 0x100daac
test byte [eax + 0x1c], 1
je 0x100daac
push 0x100217c
push 0x3c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x100db03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x10a6184]
cmp eax, edi
je 0x100dcd6
test byte [eax + 0x1c], 2
je 0x100dca5
cmp byte [eax + 0x19], 2
jb 0x100dca5
push ebx
push 0x100217c
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
jmp 0x100dca0
add esi, 0x20
mov eax, dword [esi]
push 0x10024
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x1c], ebx
jne 0x100db5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x10a6184]
cmp eax, edi
je 0x100db50
test byte [eax + 0x1c], 2
je 0x100db50
cmp byte [eax + 0x19], 2
jb 0x100db50
push ebx
push 0x100217c
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100dca0
push 0x7530
push ebx
push dword [ebp - 0x10]
call fcn.0100cd52
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
xor ebx, ebx
cmp eax, ebx
je 0x100dbb9
mov eax, dword [0x10a6184]
cmp eax, edi
je 0x100dba0
test byte [eax + 0x1c], 2
je 0x100dba0
cmp byte [eax + 0x19], 4
jb 0x100dba0
push 0x100217c
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
push eax
push 0x400d3779
push 4
call fcn.0100d481
jmp 0x100dc6b
push 0x10a8b2c
lea ecx, [ebp - 0x18]
call fcn.01020db5
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x430
mov eax, dword [0x10a6184]
jne 0x100dc10
cmp eax, edi
je 0x100dc00
test byte [eax + 0x1c], 2
je 0x100dc00
cmp byte [eax + 0x19], 4
jb 0x100dc00
push 0x100217c
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov eax, dword [esi]
xor ebx, ebx
push ebx
push ebx
push eax
push 0x400d3779
push 4
jmp 0x100dc54
cmp eax, edi
je 0x100dc33
test byte [eax + 0x1c], 2
je 0x100dc33
cmp byte [eax + 0x19], 2
jb 0x100dc33
push ebx
push 0x100217c
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
push ebx
lea eax, [ebp - 0x18]
push 0x100219c
push eax
call fcn.0100d972
mov eax, dword [esi]
add esp, 0xc
push 0
push dword [ebp - 0x18]
push eax
push 0xc00d37dd
push 1
mov ecx, dword [ebp - 0x14]
call fcn.0100d481
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.01009cd1
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push 0xea60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.0100a79d
push dword [ebp - 0x10]
call fcn.0100d758
push dword [ebp - 0x10]
call edi
mov edi, 0x10a6184
mov eax, dword [0x10a6184]
cmp eax, edi
je 0x100dcd6
test byte [eax + 0x1c], 1
je 0x100dcd6
movzx ecx, byte [eax + 0x19]
mov edx, ebx
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x100dcd6
push ebx
push 0x100217c
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret