Function at 0x407f30
Capabilities:
Query service status
Stop service

Disassembly:
push 0xffffffffffffffff
push 0x44b598
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
mov ebp, 0xf
mov eax, str.Security_Server
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407f80
sub eax, edx
push eax
push str.Security_Server
lea ecx, [esp + 0x44]
call fcn.004024f0
push 0x20000000
push ebx
push ebx
mov dword [esp + 0x8c], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebx
jne 0x40807c
mov eax, str.Security_Server
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407fd0
sub eax, edx
push eax
push str.Security_Server
lea ecx, [esp + 0x60]
call fcn.004024f0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x9c], 1
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x7c]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402280
sub esp, 0x1c
mov byte [esp + 0xb8], 2
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x1b
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x452dbc
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0xb8], 1
call fcn.004041e0
mov esi, 0x10
cmp dword [esp + 0x70], esi
jb 0x40805c
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00416c01
add esp, 4
cmp dword [esp + 0x54], esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x40840e
mov edx, dword [esp + 0x40]
push edx
jmp 0x408406
push 0x34
push str.Security_Server
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
jne 0x4080fd
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x60]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402280
sub esp, 0x1c
mov byte [esp + 0xb8], 3
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x19
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x452dd8
mov byte [ecx + 4], bl
call fcn.004024f0
mov byte [esp + 0xb8], bl
call fcn.004041e0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x54], 0x10
jb 0x40840e
mov ecx, dword [esp + 0x40]
push ecx
jmp 0x408406
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x408161
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x60]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402280
sub esp, 0x1c
mov byte [esp + 0xb8], 4
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x452df4
call fcn.004020b0
mov byte [esp + 0xb8], bl
call fcn.004041e0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
jmp 0x4080e8
mov eax, dword [esp + 0x24]
add eax, 0xffffffff
cmp eax, 6
ja case.default.0x408171
jmp dword [eax*4 + 0x408430]
sub esp, 0x1c
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004020f0
sub esp, 0x1c
mov byte [esp + 0xb8], 5
mov ecx, esp
mov dword [esp + 0x54], esp
push str.StopSP___SERVICE_PAUSED
jmp 0x408397
sub esp, 0x1c
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.004020f0
sub esp, 0x1c
mov byte [esp + 0xb8], 6
mov ecx, esp
mov dword [esp + 0x54], esp
push str.StopSP___SERVICE_PAUSE_PENDING
jmp 0x408397
sub esp, 0x1c
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004020f0
sub esp, 0x1c
mov byte [esp + 0xb8], 7
mov ecx, esp
mov dword [esp + 0x54], esp
push str.StopSP___SERVICE_CONTINUE_PENDING
jmp 0x408397
lea eax, [esp + 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x408268
sub esp, 0x1c
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004020f0
sub esp, 0x1c
mov byte [esp + 0xb8], 8
mov ecx, esp
mov dword [esp + 0x54], esp
push str.StopSP___ControlService
call fcn.004020b0
mov byte [esp + 0xb8], bl
call fcn.004041e0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
lea ecx, [esp + 0x3c]
call fcn.00402120
jmp 0x40840e
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x24]
cmp eax, 1
je 0x408285
cmp eax, 3
jne 0x4083a8
sub esp, 0x1c
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.004020f0
sub esp, 0x1c
mov byte [esp + 0xb8], 9
mov ecx, esp
mov dword [esp + 0x54], esp
push str.StopSP____
call fcn.004020b0
mov byte [esp + 0xb8], bl
call fcn.004041e0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
lea ecx, [esp + 0x3c]
call fcn.00402120
mov eax, 1
jmp 0x408410
sub esp, 0x1c
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004020f0
sub esp, 0x1c
mov byte [esp + 0xb8], 0xa
mov ecx, esp
mov dword [esp + 0x54], esp
push str.StopSP___SERVICE_STOP_PENDING
jmp 0x408397
sub esp, 0x1c
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.004020f0
sub esp, 0x1c
mov byte [esp + 0xb8], 0xb
mov ecx, esp
mov dword [esp + 0x54], esp
push str.StopSP___SERVICE_START_PENDING
jmp 0x408397
sub esp, 0x1c
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004020f0
sub esp, 0x1c
mov byte [esp + 0xb8], 0xc
mov ecx, esp
mov dword [esp + 0x54], esp
push str.StopSP___SERVICE_STOPPED
jmp 0x408397
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x60]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402280
sub esp, 0x1c
mov byte [esp + 0xb8], 0xd
mov ecx, esp
mov dword [esp + 0x54], esp
push 0x452f08
call fcn.004020b0
mov byte [esp + 0xb8], bl
call fcn.004041e0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x60]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00402280
sub esp, 0x1c
mov byte [esp + 0xb8], 0xe
mov ecx, esp
mov dword [esp + 0x54], esp
push str.StopSP__
call fcn.004020b0
mov byte [esp + 0xb8], bl
call fcn.004041e0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
cmp dword [esp + 0x54], 0x10
jb 0x40840e
mov eax, dword [esp + 0x40]
push eax
call fcn.00416c01
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004322f2
add esp, 0x70
ret