Function at 0x1002a85
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov eax, 0x100f62a
call fcn.01003f88
sub esp, 0x7c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push 2
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
call fcn.01006394
push 3
pop edi
push edi
mov dword [ebp - 0x34], eax
call fcn.01006394
push 0x3d
mov dword [ebp - 0x30], eax
call fcn.01006394
push 0xf003f
push esi
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x1002aed
call dword [fcn.01001088]
mov dword [ebp - 0x20], eax
push 0x10101d0
lea eax, [ebp - 0x20]
jmp 0x1002b8d
test edi, edi
jbe 0x1002be1
mov eax, dword [ebp + edi*4 - 0x38]
dec edi
push 0xf01ff
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
mov dword [ebp - 0x1c], esi
je 0x1002aed
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, eax
test ebx, ebx
je 0x1002bd5
mov eax, dword [ebp - 0x68]
cmp eax, 1
je 0x1002b71
jbe 0x1002bd5
cmp eax, 3
jbe 0x1002b64
cmp eax, 4
je 0x1002b53
jbe 0x1002bd5
cmp eax, 6
jbe 0x1002b64
cmp eax, 7
jne 0x1002bd5
lea eax, [ebp - 0x6c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
jmp 0x1002bcd
push 0x3e8
call dword [0x1001090]
jmp 0x1002bcd
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1002bcb
call dword [fcn.01001088]
mov dword [ebp - 0x24], eax
push 0x10101d0
lea eax, [ebp - 0x24]
push eax
call sub.msvcrt.dll__CxxThrowException
cmp dword [ebp - 0x1c], 0
je 0x1002ba2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x18], 0
je 0x1002bb1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x1002bc2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
mov eax, 0x1002bea
ret
xor ebx, ebx
test ebx, ebx
jne 0x1002b12
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1002aed
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0
jne 0x1002d78
call fcn.01002486
push 0xf
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
call fcn.01006394
push 0
push 0xfffffffffffffff0
push 0xf003f
push eax
push 0x80000002
lea ecx, [ebp - 0x6c]
call fcn.01004a7e
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.01004449
test eax, eax
jne 0x1002c50
push 3
pop esi
test esi, esi
jbe 0x1002c50
mov eax, dword [ebp + esi*4 - 0x38]
dec esi
push 1
push eax
lea ecx, [ebp - 0x6c]
call fcn.01004ad7
jmp 0x1002c3a
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.01004775
push 0x10
mov dword [ebp - 4], 5
xor edi, edi
call fcn.01006394
push edi
push 0xfffffffffffffff0
mov ebx, 0xf003f
push ebx
push eax
push 0x80000002
lea ecx, [ebp - 0x50]
call fcn.01004a7e
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.01004752
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
call fcn.01004449
test eax, eax
jne 0x1002cfb
push edi
lea ecx, [ebp - 0x50]
call fcn.01004475
mov esi, eax
test esi, esi
je 0x1002cfb
push 0
lea ecx, [ebp - 0x50]
call fcn.01004449
push 0
push 0xfffffffffffffff0
push ebx
push esi
push dword [ebp - 0x50]
lea ecx, [ebp - 0x6c]
call fcn.010047b3
push 1
lea ecx, [ebp - 0x6c]
call fcn.01004449
test eax, eax
jne 0x1002cf8
push 3
pop esi
test esi, esi
jbe 0x1002cf8
mov eax, dword [ebp + esi*4 - 0x38]
dec esi
push 1
push eax
lea ecx, [ebp - 0x6c]
call fcn.01004ad7
jmp 0x1002cdc
inc edi
jmp 0x1002ca1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.01004775
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.01004775
push 4
mov dword [ebp - 4], 9
call fcn.01006394
push 0
push 0xfffffffffffffff0
push 0xf003f
push eax
push 0x80000002
lea ecx, [ebp - 0x88]
call fcn.01004a7e
push 7
mov byte [ebp - 4], 0xa
call fcn.01006394
push 1
push eax
lea ecx, [ebp - 0x88]
call fcn.01004ad7
push 0x3e
call fcn.01006394
push 1
push eax
lea ecx, [ebp - 0x88]
call fcn.01004ad7
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 9
call fcn.01004775
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret