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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105ada8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 0x10], 0
push 0xe0000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x104bd91
mov dword [ebp - 0x18], 0
push 0x80010020
lea ecx, [ebp + 8]
call fcn.010107dc
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x104bd64
cmp dword [ebp + 0xc], 2
je 0x104bbeb
cmp dword [ebp + 0xc], 3
je 0x104bbeb
cmp dword [ebp + 0xc], 4
je 0x104bbeb
cmp dword [ebp + 0xc], 1
jne 0x104bc46
lea edx, [ebp - 0x34]
push edx
push 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x104bc19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x100d9a0
push 3
call fcn.0102e650
add esp, 0x10
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.01045040
test eax, eax
jne 0x104bc46
mov ecx, dword [ebp + 8]
push ecx
push 0x100d968
push 2
call fcn.0102e650
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x104bd37
mov ecx, dword [ebp + 8]
push ecx
push 0x100d930
push 1
call fcn.0102e650
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x3c], 0
cmp dword [ebp + 0xc], 2
je 0x104bc88
cmp dword [ebp + 0xc], 3
jne 0x104bc91
mov dword [ebp - 0x40], 3
jmp 0x104bc98
mov dword [ebp - 0x40], 6
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x18], 0
push SysReAllocString
lea ecx, [ebp + 8]
call fcn.010107dc
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x18], 0
je 0x104bd23
mov dword [ebp - 0x38], 0
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x40]
jne 0x104bd18
push 0x100d858
push 2
call fcn.0102e650
add esp, 8
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x104bd23
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x38], 0
jne 0x104bd35
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x40]
jb 0x104bc9f
jmp 0x104bd62
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
push 0x100d7e0
push 3
call fcn.0102e650
add esp, 0x10
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x104bd85
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x100d750
push 3
call fcn.0102e650
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x104bdae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100d6b0
push 3
call fcn.0102e650
add esp, 0xc
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc