Function at 0x4307e0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 4]
push esi
push edi
lea eax, [ebp - 0x20]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x43080f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4308cb
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 0x254], ecx
je 0x4308b3
mov edi, edi
mov eax, 0xcccccccd
mul dword [ebp - 8]
shr edx, 3
cmp edx, 0x3e8
jae 0x43085a
mov edx, 0x3e8
jmp 0x430867
cmp edx, 0x2710
jbe 0x430867
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4308ad
mov ecx, dword [ebp - 0x254]
cmp dword [ebp - 0xc], ecx
jbe 0x43089a
call edi
mov edx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 0x254], edx
jmp 0x4308a3
call edi
sub eax, esi
cmp eax, dword [ebp - 8]
ja 0x4308ad
cmp dword [ebp - 0x1c], 1
jne 0x430840
xor eax, eax
jmp 0x4308d1
cmp dword [ebp - 0x1c], 1
jne 0x4308b7
xor eax, eax
jmp 0x4308d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
jmp 0x4308d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x430a11
cmp eax, 0x424
je 0x430a11
push 0x45fca8
push 0x46a9d4
mov eax, 1
mov dword [ebp - 0x254], 0
call fcn.0042d150
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
add esp, 8
lea eax, [ebp - 0x254]
push eax
push 0
push 0
push ecx
call edi
mov edx, dword [ebp - 0x254]
push edx
call fcn.004381d7
mov esi, eax
add esp, 4
test esi, esi
je 0x430a0c
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebx + 4]
lea eax, [ebp - 0x254]
push eax
push ecx
push esi
push edx
call edi
test eax, eax
je 0x4309d1
mov eax, dword [esi + 0xc]
push eax
lea eax, [ebp - 0x250]
call fcn.00431750
add esp, 4
cmp eax, 1
jne 0x4309a0
push str.Force_closing_the_service
push 0x46a9d4
call fcn.0042d150
mov ecx, dword [esi + 0xc]
add esp, 8
call fcn.004317f0
push esi
mov edi, eax
call fcn.0043a831
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret
push str.Service_is_not_running
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 8
push esi
xor edi, edi
call fcn.0043a831
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.Error_retrieving_service_configuration__0x_X_
push 0x46a9d4
mov eax, 1
call fcn.0042d150
add esp, 0xc
push esi
call fcn.0043a831
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret
mov eax, 0xe
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00438351
mov esp, ebp
pop ebp
ret