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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105a728
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 0x1046631
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 0x1046604
cmp dword [ebp + 0xc], 2
je 0x104648b
cmp dword [ebp + 0xc], 3
je 0x104648b
cmp dword [ebp + 0xc], 4
je 0x104648b
cmp dword [ebp + 0xc], 1
jne 0x10464e6
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 0x10464b9
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 0x10464e6
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 0x10465d7
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 0x1046528
cmp dword [ebp + 0xc], 3
jne 0x1046531
mov dword [ebp - 0x40], 3
jmp 0x1046538
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 0x10465c3
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 0x10465b8
push 0x100d858
push 2
call fcn.0102e650
add esp, 8
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
jmp 0x10465c3
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x38], 0
jne 0x10465d5
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x40]
jb 0x104653f
jmp 0x1046602
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 0x1046625
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 0x104664e
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