Function at 0x411bc0
Capabilities:
Check for time delay via gettickcount
Print debug messages
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5c2b50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [0x5c8368], eax
test eax, eax
jne 0x411c99
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._n______________________________________________________________________________________________n
call ebx
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
call edi
push eax
push str.DoStartSvc
push 0x426
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservice_servicemain.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0x426
push str.DoStartSvc
call fcn.00404610
add esp, 0xc
test esi, esi
je 0x411c6f
push esi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call ebx
call edi
push eax
push str.OpenSCManager_failed___d__n
call fcn.00536761
add esp, 8
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536ab6
mov esp, ebp
pop ebp
ret
push 0xf01ff
push str.ChromodoUpdater
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [0x5c836c], eax
test eax, eax
jne 0x411d6d
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._n______________________________________________________________________________________________n
call ebx
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
call edi
push eax
push str.DoStartSvc
push 0x434
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservice_servicemain.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0x434
push str.DoStartSvc
call fcn.00404610
add esp, 0xc
test esi, esi
je 0x411d37
push esi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call ebx
call edi
push eax
push str.OpenService_failed___d__n
call fcn.00536761
add esp, 8
push dword [0x5c8368]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536ab6
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea ecx, [ebp - 0x2c]
push ecx
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call ebx
test eax, eax
jne 0x411e4a
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._n______________________________________________________________________________________________n
call ebx
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
call edi
push eax
push str.DoStartSvc
push 0x443
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservice_servicemain.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0x443
push str.DoStartSvc
call fcn.00404610
add esp, 0xc
test esi, esi
je 0x411e0a
push esi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call ebx
call edi
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00536761
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push dword [0x5c836c]
call esi
push dword [0x5c8368]
call esi
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00536ab6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 1
je 0x411eeb
cmp eax, 3
je 0x411e73
push str.Cannot_start_the_service_because_it_is_already_running_n
call fcn.00536761
add esp, 4
jmp 0x412213
call esi
mov edi, dword [ebp - 0x14]
mov ebx, eax
mov eax, 0xcccccccd
mul dword [ebp - 0x10]
shr edx, 3
cmp edx, 0x3e8
jae 0x411e94
mov edx, 0x3e8
jmp 0x411ea2
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [0x5c836c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x411fa9
cmp dword [ebp - 0x14], edi
jbe 0x411ed2
call esi
jmp 0x411edf
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x10]
ja 0x411f97
cmp dword [ebp - 0x24], 3
je 0x411e73
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push 0
push 0
push dword [0x5c836c]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x412014
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._n______________________________________________________________________________________________n
call ebx
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
call edi
push eax
push str.DoStartSvc
push 0x495
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservice_servicemain.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0x495
push str.DoStartSvc
call fcn.00404610
add esp, 0xc
test esi, esi
je 0x411f83
push esi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call ebx
call edi
push eax
push str.StartService_failed___d__n
jmp 0x411e19
push str.Timeout_waiting_for_service_to_stop_n
call fcn.00536761
add esp, 4
jmp 0x412213
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._n______________________________________________________________________________________________n
call ebx
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
call edi
push eax
push str.DoStartSvc
push 0x474
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservice_servicemain.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0x474
jmp 0x411df0
push str.Service_start_pending..._n
call fcn.00536761
add esp, 4
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [0x5c836c]
call ebx
test eax, eax
jne 0x4120a4
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._n______________________________________________________________________________________________n
call ebx
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
call edi
push eax
push str.DoStartSvc
push 0x4a6
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservice_servicemain.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0x4a6
jmp 0x411df0
call esi
cmp dword [ebp - 0x24], 2
mov ebx, eax
mov edi, dword [ebp - 0x14]
jne 0x4121bd
mov eax, 0xcccccccd
mul dword [ebp - 0x10]
shr edx, 3
cmp edx, 0x3e8
jae 0x4120cf
mov edx, 0x3e8
jmp 0x4120dd
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [0x5c836c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x412126
cmp dword [ebp - 0x14], edi
jbe 0x41210e
call esi
mov edi, dword [ebp - 0x14]
mov ebx, eax
jmp 0x41211b
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x10]
ja 0x4121bd
cmp dword [ebp - 0x24], 2
je 0x4120b5
jmp 0x4121bd
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._n______________________________________________________________________________________________n
call edi
push 0x800
call fcn.005369fe
push 0x800
mov esi, eax
push 0
push esi
call fcn.00537300
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
call ebx
push eax
push str.DoStartSvc
push 0x4ca
push str.c:devdragon_release_sync_srcdragonupdateservicedragonupdateservice_servicemain.cpp
push str.CD_Module
push str._s_____s____d____s___returned__d
push 0x800
push esi
call fcn.00406430
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0x4ca
push str.DoStartSvc
call fcn.00404610
add esp, 0xc
test esi, esi
je 0x4121a6
push esi
call fcn.005369c6
add esp, 4
push str._n______________________________________________________________________________________________n
call edi
call ebx
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00536761
add esp, 8
cmp dword [ebp - 0x24], 4
jne 0x4121d2
push str.Service_started_successfully._n
call fcn.00536761
add esp, 4
jmp 0x412213
push str.Service_not_started.__n
call fcn.00536761
push dword [ebp - 0x24]
push str.__Current_State:__d_n
call fcn.00536761
push dword [ebp - 0x1c]
push str.__Exit_Code:__d_n
call fcn.00536761
push dword [ebp - 0x14]
push str.__Check_Point:__d_n
call fcn.00536761
push dword [ebp - 0x10]
push str.__Wait_Hint:__d_n
call fcn.00536761
add esp, 0x24
push dword [0x5c836c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [0x5c8368]
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00536ab6
mov esp, ebp
pop ebp
ret