Function at 0x430770
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x469744]
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 0x43079f
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 0x43085b
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 0x430843
mov edi, edi
mov eax, 0xcccccccd
mul dword [ebp - 8]
shr edx, 3
cmp edx, 0x3e8
jae 0x4307ea
mov edx, 0x3e8
jmp 0x4307f7
cmp edx, 0x2710
jbe 0x4307f7
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 0x43083d
mov ecx, dword [ebp - 0x254]
cmp dword [ebp - 0xc], ecx
jbe 0x43082a
call edi
mov edx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 0x254], edx
jmp 0x430833
call edi
sub eax, esi
cmp eax, dword [ebp - 8]
ja 0x43083d
cmp dword [ebp - 0x1c], 1
jne 0x4307d0
xor eax, eax
jmp 0x430861
cmp dword [ebp - 0x1c], 1
jne 0x430847
xor eax, eax
jmp 0x430861
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 0x430861
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4309a1
cmp eax, 0x424
je 0x4309a1
push str.Service_did_not_respond_to_the_stop_command._Will_force_close
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.004386fc
mov esi, eax
add esp, 4
test esi, esi
je 0x43099c
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 0x430961
mov eax, dword [esi + 0xc]
push eax
lea eax, [ebp - 0x250]
call fcn.004316e0
add esp, 4
cmp eax, 1
jne 0x430930
push str.Force_closing_the_service
push 0x46a9d4
call fcn.0042d150
mov ecx, dword [esi + 0xc]
add esp, 8
call fcn.00431780
push esi
mov edi, eax
call fcn.0043ad71
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438876
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.0043ad71
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438876
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.0043ad71
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438876
mov esp, ebp
pop ebp
ret
mov eax, 0xe
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00438876
mov esp, ebp
pop ebp
ret