Function at 0x411320
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43b428
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x44aba4]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040d9b0
mov dword [esp + 0x28], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x24]
push 1
push eax
mov dword [esp + 0x60], ebx
call fcn.00411770
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov eax, edi
lea esi, [esp + 0x28]
call fcn.00413920
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
mov eax, dword [esp + 0x28]
mov esi, eax
je 0x4113ae
lea edx, [esp + 0x24]
cmp ecx, edx
je 0x4113b7
call fcn.004208da
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x20], esi
jne 0x4113ff
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x60], 0xffffffff
mov edx, dword [eax]
push edx
mov esi, ecx
push esi
lea eax, [esp + 0x24]
push eax
mov edi, ecx
call fcn.00414790
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00415b75
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x14], esi
jne 0x4114b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [esp + 0x14]
call fcn.00413140
mov ecx, dword [ebp + 8]
mov byte [esp + 0x58], 1
mov edx, dword [eax]
mov eax, dword [edi]
push edx
push eax
push 0x443154
push ecx
call fcn.00415760
mov byte [esp + 0x68], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41146c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x28]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x24]
push ecx
mov edi, esi
call fcn.00414790
mov edx, dword [esp + 0x28]
push edx
call fcn.00415b75
add esp, 4
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x411528
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [esp + 0x1c]
call fcn.00413140
mov edx, dword [ebp + 8]
mov byte [esp + 0x58], 2
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
push ecx
push 0x44318c
push edx
call fcn.00415760
mov byte [esp + 0x68], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411518
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41162c
lea edx, [esp + 0x30]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41159d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [esp + 0x1c]
call fcn.00413140
mov edx, dword [ebp + 8]
mov byte [esp + 0x58], 3
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
push ecx
push 0x4431bc
push edx
call fcn.00415760
mov byte [esp + 0x68], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41158a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x41162a
cmp dword [esp + 0x34], 1
jne 0x4115d6
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
push esi
call edi
lea eax, [esp + 0x24]
mov dword [esp + 0x58], 0xffffffff
call fcn.00410ab0
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x30]
push edx
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4115a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [esp + 0x1c]
call fcn.00413140
mov edx, dword [ebp + 8]
mov byte [esp + 0x58], 4
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
push ecx
push 0x4431f0
push edx
call fcn.00415760
add esp, 0x10
mov ecx, esi
call fcn.0040ddf0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
lea eax, [esp + 0x24]
mov dword [esp + 0x58], 0xffffffff
call fcn.00410ab0
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret