Function at 0x679420
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x906648]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
test edi, edi
jne 0x67945c
mov eax, 0x3ea
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063c972
mov esp, ebp
pop ebp
ret
push ebx
push esi
push bind
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x6794bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f1a60
add esp, 4
mov ebx, eax
test byte [0x9538a8], 1
je 0x6794af
push ebx
push str.Open_SC_manager_failed._err___d
push 0x1e
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_utl_utl_winnt_scm.c
push str.utl_open_sc_manager
push dword [0x90a2e8]
push 1
call fcn.004f21c0
add esp, 0x1c
test ebx, ebx
jne 0x67980b
mov esi, dword [ebp - 0x30]
jmp 0x6794be
xor ebx, ebx
push 0x24
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x67951e
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
call fcn.004f1a60
add esp, 4
mov ebx, eax
test byte [0x9538a8], 1
je 0x679804
push ebx
push str.Open_service_failed._err___d
push 0x187
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_utl_utl_winnt_scm.c
push str.utl_stop_service
push dword [0x90a2e8]
push 1
call fcn.004f21c0
add esp, 0x1c
jmp 0x679804
push 0x54747551
push 0x24
call fcn.004f3590
mov edi, eax
add esp, 8
test edi, edi
jne 0x67956a
test byte [0x9538a8], 1
je 0x679560
push str.Memory_allcation_failure.
push 0x18f
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_utl_utl_winnt_scm.c
push str.utl_stop_service
push dword [0x90a2e8]
push 1
call fcn.004f21c0
add esp, 0x18
mov ebx, 0xc
jmp 0x6797f9
lea eax, [ebp - 0x28]
push eax
push 0x24
push edi
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x6795c9
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
call fcn.004f1a60
add esp, 4
mov ebx, eax
test byte [0x9538a8], 1
je 0x6797f0
push ebx
push str.QueryServiceStatusEx_failed._err___d
push 0x19e
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_utl_utl_winnt_scm.c
push str.utl_stop_service
push dword [0x90a2e8]
push 1
call fcn.004f21c0
add esp, 0x1c
jmp 0x6797f0
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x6795ff
test byte [0x9538a8], 4
je 0x6797f0
push str.Service_is_already_stopped.
push 0x1a4
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_utl_utl_winnt_scm.c
push str.utl_stop_service
push dword [0x90a2e8]
push 4
jmp 0x6797e8
cmp eax, 3
jne 0x6796b3
mov ecx, 0x2710
nop dword [eax]
test byte [0x9538a8], 8
je 0x679642
push str.Service_stop_pending.
push 0x1ad
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_utl_utl_winnt_scm.c
push str.utl_stop_service
push dword [0x90a2e8]
push 8
call fcn.004f21c0
add esp, 0x18
mov ecx, 0x2710
mov eax, 0xcccccccd
mul dword [edi + 0x18]
shr edx, 3
cmp edx, 0x3e8
jae 0x67965c
mov edx, 0x3e8
jmp 0x679665
cmp edx, 0x2710
cmova edx, ecx
push 0
push edx
call fcn.004f49d0
add esp, 8
lea eax, [ebp - 0x28]
push eax
push 0x24
push edi
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x679746
cmp dword [edi + 4], 1
je 0x67972a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x6796f9
cmp dword [edi + 4], 3
mov ecx, 0x2710
je 0x679610
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x679775
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
call fcn.004f1a60
add esp, 4
mov ebx, eax
test byte [0x9538a8], 1
je 0x6797f0
push ebx
push str.ControlService_failed._err___d
push 0x1e0
jmp 0x6795aa
or ebx, 0xffffffff
test byte [0x9538a8], 1
je 0x6797f0
push str.Timeout_occurred._Service_stop_pending.
push 0x1d0
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_utl_utl_winnt_scm.c
push str.utl_stop_service
push dword [0x90a2e8]
push 1
jmp 0x6797e8
test byte [0x9538a8], 8
je 0x6797f0
push str.Service_stop_successfully.
push 0x1c9
jmp 0x6797d6
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
call fcn.004f1a60
add esp, 4
mov ebx, eax
test byte [0x9538a8], 1
je 0x6797f0
push ebx
push str.QueryServiceStatusEx_failed._err___d
push 0x1c3
jmp 0x6795aa
cmp dword [edi + 4], 1
je 0x6797c3
nop dword [eax + eax]
push 0
push dword [edi + 0x18]
call fcn.004f49d0
add esp, 8
lea eax, [ebp - 0x28]
push eax
push 0x24
push edi
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x679839
cmp dword [edi + 4], 1
je 0x6797c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x67981e
cmp dword [edi + 4], 1
jne 0x679780
test byte [0x9538a8], 8
je 0x6797f0
push str.Service_stopped_successfully.
push 0x200
push str.E:_workspace_AC_CC_Windows_TACC_MASTER_master_src_solidifier_utl_utl_winnt_scm.c
push str.utl_stop_service
push dword [0x90a2e8]
push 8
call fcn.004f21c0
add esp, 0x18
push edi
call fcn.004f3570
add esp, 4
push dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x67980b
push esi
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.0063c972
mov esp, ebp
pop ebp
ret
or ebx, 0xffffffff
test byte [0x9538a8], 1
je 0x6797f0
push str.Timeout_occurred._service_is_not_stopped.
push 0x1fc
jmp 0x679713
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
call fcn.004f1a60
add esp, 4
mov ebx, eax
test byte [0x9538a8], 1
je 0x6797f0
push ebx
push str.QueryServiceStatusEx_failed._err___d
push 0x1f2
jmp 0x6795aa