Function at 0x430620
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x468744]
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 0x43064f
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 0x43070b
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 0x4306f3
mov edi, edi
mov eax, 0xcccccccd
mul dword [ebp - 8]
shr edx, 3
cmp edx, 0x3e8
jae 0x43069a
mov edx, 0x3e8
jmp 0x4306a7
cmp edx, 0x2710
jbe 0x4306a7
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 0x4306ed
mov ecx, dword [ebp - 0x254]
cmp dword [ebp - 0xc], ecx
jbe 0x4306da
call edi
mov edx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 0x254], edx
jmp 0x4306e3
call edi
sub eax, esi
cmp eax, dword [ebp - 8]
ja 0x4306ed
cmp dword [ebp - 0x1c], 1
jne 0x430680
xor eax, eax
jmp 0x430711
cmp dword [ebp - 0x1c], 1
jne 0x4306f7
xor eax, eax
jmp 0x430711
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 0x430711
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x430851
cmp eax, 0x424
je 0x430851
push str.Service_did_not_respond_to_the_stop_command._Will_force_close
push 0x4699d4
mov eax, 1
mov dword [ebp - 0x254], 0
call fcn.0042d020
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.0043860c
mov esi, eax
add esp, 4
test esi, esi
je 0x43084c
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 0x430811
mov eax, dword [esi + 0xc]
push eax
lea eax, [ebp - 0x250]
call fcn.00431590
add esp, 4
cmp eax, 1
jne 0x4307e0
push str.Force_closing_the_service
push 0x4699d4
call fcn.0042d020
mov ecx, dword [esi + 0xc]
add esp, 8
call fcn.00431630
push esi
mov edi, eax
call fcn.0043ac71
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438786
mov esp, ebp
pop ebp
ret
push str.Service_is_not_running
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 8
push esi
xor edi, edi
call fcn.0043ac71
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438786
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 0x4699d4
mov eax, 1
call fcn.0042d020
add esp, 0xc
push esi
call fcn.0043ac71
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438786
mov esp, ebp
pop ebp
ret
mov eax, 0xe
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00438786
mov esp, ebp
pop ebp
ret