Function at 0x402d80
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x2c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 4], edi
test edi, edi
jne 0x402db6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.00403fb7
add esp, 8
pop edi
add esp, 0x2c
ret
push esi
push 0xf01ff
push str.9eMobileService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x402def
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___d__n
call fcn.00403fb7
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
push 0x24
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x402e2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00403fb7
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
add esp, 0x2c
ret
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x402e5b
cmp eax, 3
je 0x402e5b
push str.Cannot_start_the_service_because_it_is_already_running_n
call fcn.00403fb7
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
add esp, 0x2c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
cmp dword [esp + 0x1c], 3
mov ebp, dword [esp + 0x2c]
mov edi, eax
jne 0x402edb
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x402e8d
mov edx, 0x3e8
jmp 0x402e9a
cmp edx, 0x2710
jbe 0x402e9a
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x14]
push edx
push 0x24
lea eax, [esp + 0x20]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x402f16
cmp dword [esp + 0x2c], ebp
jbe 0x402eca
call ebx
mov ebp, dword [esp + 0x2c]
mov edi, eax
jmp 0x402ed4
call ebx
sub eax, edi
cmp eax, dword [esp + 0x30]
ja 0x402f2f
cmp dword [esp + 0x1c], 3
je 0x402e72
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x402f54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_failed___d__n
call fcn.00403fb7
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x2c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00403fb7
add esp, 8
jmp 0x40309e
push str.Timeout_waiting_for_service_to_stop_n
call fcn.00403fb7
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x2c
ret
push str.Service_start_pending..._n
call fcn.00403fb7
add esp, 4
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x20]
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x402fa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00403fb7
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x2c
ret
call ebx
cmp dword [esp + 0x1c], 2
mov ebp, dword [esp + 0x2c]
mov edi, eax
jne 0x40303f
lea esp, [esp]
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x402fdb
mov edx, 0x3e8
jmp 0x402fe8
cmp edx, 0x2710
jbe 0x402fe8
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x14]
push ecx
push 0x24
lea edx, [esp + 0x20]
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40302b
cmp dword [esp + 0x2c], ebp
jbe 0x403018
call ebx
mov ebp, dword [esp + 0x2c]
mov edi, eax
jmp 0x403022
call ebx
sub eax, edi
cmp eax, dword [esp + 0x30]
ja 0x40303f
cmp dword [esp + 0x1c], 2
je 0x402fc0
jmp 0x40303f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00403fb7
add esp, 8
cmp dword [esp + 0x1c], 4
jne 0x403055
push str.Service_started_successfully._n
call fcn.00403fb7
add esp, 4
jmp 0x40309e
push str.Service_not_started.__n
call fcn.00403fb7
mov eax, dword [esp + 0x20]
push eax
push str.__Current_State:__d_n
call fcn.00403fb7
mov ecx, dword [esp + 0x30]
push ecx
push str.__Exit_Code:__d_n
call fcn.00403fb7
mov edx, dword [esp + 0x40]
push edx
push str.__Check_Point:__d_n
call fcn.00403fb7
mov eax, dword [esp + 0x4c]
push eax
push str.__Wait_Hint:__d_n
call fcn.00403fb7
add esp, 0x24
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x2c
ret