Function at 0x4030e0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ddf6
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x4251d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 0
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x403128
xor al, al
jmp 0x403368
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x40313f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x174], edx
jmp 0x40314b
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x174], eax
push 0xf01ff
mov ecx, dword [ebp - 0x174]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40317b
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x403368
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4031a8
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x403368
cmp dword [ebp - 0x34], 4
jne 0x4031fc
push str.__started.
lea ecx, [ebp - 0x58]
call fcn.00406560
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
push edx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.004077c0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x403368
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40322e
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x403368
push str.__waiting_for_the_state_change
lea ecx, [ebp - 0x74]
call fcn.00406560
mov dword [ebp - 4], 1
lea edx, [ebp - 0x74]
push edx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x74]
call fcn.004077c0
mov dword [ebp - 0x3c], 0
jmp 0x403273
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x1e
jge 0x403352
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4032aa
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x403368
cmp dword [ebp - 0x34], 4
jne 0x403306
push str.__started.
lea ecx, [ebp - 0x90]
call fcn.00406560
mov dword [ebp - 4], 2
lea edx, [ebp - 0x90]
push edx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x90]
call fcn.004077c0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x403368
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x41f6b4
lea ecx, [ebp - 0xac]
call fcn.00406560
mov dword [ebp - 4], 3
lea edx, [ebp - 0xac]
push edx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xac]
call fcn.004077c0
jmp 0x40326a
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret