Function at 0x428051
Capabilities:
Check for time delay via gettickcount
Pause service
Query service status

Disassembly:
push 0x6c
mov eax, 0x453eea
call fcn.0043cf0a
push 4
pop ebx
xor edi, edi
push ebx
push edi
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp dword [0x48bab0], 0x2722c
mov esi, eax
mov dword [ebp - 0x34], esi
je 0x4284d1
cmp esi, edi
je 0x4284d1
push 0x104
push str.AdobeARMservice
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp dword [0x48bab0], 0x27290
mov dword [ebp - 0x14], eax
je 0x42849c
cmp eax, edi
je 0x42849c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x428103
push 0x47988c
lea ecx, [ebp - 0x18]
call fcn.0040215a
mov dword [ebp - 4], 2
push 0x186a0
lea eax, [ebp - 0x18]
push eax
push 1
call fcn.0040e50d
mov ecx, dword [ebp - 0x18]
jmp 0x428136
cmp dword [ebp - 0x70], 1
je 0x428113
cmp dword [ebp - 0x70], 3
jne 0x4281d0
push str.Service_is_stopped_or_about_to_stop
lea ecx, [ebp - 0x24]
call fcn.0040215a
mov dword [ebp - 4], 3
push edi
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.0040e50d
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x34]
call esi
mov eax, dword [ebp - 0x10]
jmp 0x4284fd
push str.Waiting_for_Service_to_run
lea ecx, [ebp - 0x18]
call fcn.0040215a
push edi
lea eax, [ebp - 0x18]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040e50d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x74]
push eax
push edi
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x42839c
cmp dword [ebp - 0x70], 1
je 0x4283cf
cmp dword [ebp - 0x70], 3
je 0x4283cf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x4283b5
cmp dword [ebp - 0x70], ebx
jne 0x428159
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push edi
push 0x45ecb0
push 0x80000002
mov dword [ebp - 0x20], edi
call ebx
cmp eax, edi
jne 0x42820b
lea eax, [ebp - 0x20]
push eax
push str.iLastSvcSuccess
lea esi, [ebp - 0x2c]
call fcn.0042434d
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push edi
push 0x45ecb0
push 0x80000002
mov dword [ebp - 0x28], edi
call ebx
cmp eax, edi
jne 0x42823b
lea eax, [ebp - 0x28]
push eax
push str.iLastSvcFailure
lea esi, [ebp - 0x2c]
call fcn.0042434d
pop ecx
pop ecx
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x428288
push str.Service_Manager_reported_error_after_first_attempt
lea ecx, [ebp - 0x18]
call fcn.0040215a
push 0x186a0
lea eax, [ebp - 0x18]
push eax
push 2
mov dword [ebp - 4], 8
call fcn.0040e50d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
cmp dword [ebp + 0xc], edi
je 0x4283e5
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
jbe 0x428333
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push edi
push 0x45ecb0
push 0x80000002
call ebx
cmp eax, edi
jne 0x428320
lea eax, [ebp - 0x1c]
push eax
push str.iLastSvcSuccess
lea esi, [ebp - 0x2c]
call fcn.0042434d
pop ecx
pop ecx
cmp eax, edi
jne 0x428320
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jbe 0x428320
push str.Service_confirmed_success
lea ecx, [ebp - 0x24]
call fcn.0040215a
push edi
lea eax, [ebp - 0x24]
push eax
push 2
mov dword [ebp - 4], 9
call fcn.0040e50d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], eax
add dword [ebp - 0x18], 0x1f4
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jb 0x42829d
cmp dword [ebp - 0x10], edi
jne 0x428474
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push edi
push 0x45ecb0
push 0x80000002
mov dword [ebp - 0x24], edi
call ebx
cmp eax, edi
jne 0x4283ee
lea eax, [ebp - 0x24]
push eax
push str.iLastSvcFailure
lea esi, [ebp - 0x2c]
call fcn.0042434d
pop ecx
pop ecx
cmp eax, edi
jne 0x4283ee
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jbe 0x4283ee
push str.Service_confirmed_error
lea ecx, [ebp - 0x18]
call fcn.0040215a
push edi
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0xa
push 2
jmp 0x4280f9
push str.QueryServiceStatusEx_failed
lea ecx, [ebp - 0x18]
call fcn.0040215a
mov dword [ebp - 4], 5
jmp 0x4280ee
push str.Service_wait_timed_out
lea ecx, [ebp - 0x18]
call fcn.0040215a
mov dword [ebp - 4], 7
push edi
jmp 0x4280f3
push str.Service_is_stopped_or_about_to_stop
lea ecx, [ebp - 0x18]
call fcn.0040215a
mov dword [ebp - 4], 6
jmp 0x4283c9
cmp dword [ebp - 0x10], edi
jne 0x428474
cmp dword [0x48bae8], edi
je 0x428402
cmp dword [0x48b508], edi
je 0x428141
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Second_attempt_to_notify_Service
lea ecx, [ebp - 0x24]
call fcn.0040215a
push edi
lea eax, [ebp - 0x24]
push eax
push 2
mov dword [ebp - 4], 0xb
call fcn.0040e50d
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
lea eax, [ebp - 0x50]
push eax
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x428474
push str.Unable_to_notify_Service_in_the_second_attempt
lea ecx, [ebp - 0x24]
call fcn.0040215a
mov dword [ebp - 4], 0xc
push 0x186a0
jmp 0x428128
push str.Service_notify_success
lea ecx, [ebp - 0x2c]
call fcn.0040215a
push edi
lea eax, [ebp - 0x2c]
push eax
push 2
mov dword [ebp - 4], 0xd
call fcn.0040e50d
mov ecx, dword [ebp - 0x2c]
jmp 0x428136
push str.OpenService_failed._Cannot_notify_ARM_Service
lea ecx, [ebp - 0x24]
call fcn.0040215a
xor eax, eax
push edi
lea ecx, [ebp - 0x24]
inc eax
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0040e50d
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4284fb
push str.OpenSCManager_failed._Cannot_notify_ARM_Service
lea ecx, [ebp - 0x24]
call fcn.0040215a
push edi
lea eax, [ebp - 0x24]
push eax
push 1
mov dword [ebp - 4], edi
call fcn.0040e50d
mov ecx, dword [ebp - 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025e7
xor eax, eax
call fcn.0043cfe2
ret