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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46867d
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4a3a10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x88], eax
jne 0x414bcc
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x30
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00410e00
movups xmm0, xmmword [str.Service_Control_Manager_have_NULL_handle]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x28
mov dword [ebp - 0x14], 0x2f
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x46eefc]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [0x46ef0c]
movq qword [eax + 0x20], xmm0
mov byte [eax + 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00411f60
mov ecx, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 0x7d], al
cmp ecx, 0x10
jb 0x415195
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x414bba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4151b0
push ecx
push edx
call fcn.0044781c
mov al, byte [ebp - 0x7d]
add esp, 8
jmp 0x415195
test eax, eax
jne 0x414c23
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
push 0x20
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00410e00
movups xmm0, xmmword [str.Service_have_NULL_handle]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x46ef28]
movq qword [eax + 0x10], xmm0
mov byte [eax + 0x18], 0
mov dword [ebp - 4], 1
jmp 0x414b7d
lea ecx, [ebp - 0x84]
push ecx
push 0x24
lea ecx, [ebp - 0x64]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, 1
je 0x414c8c
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x60
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00410e00
mov dword [ebp - 0x28], eax
mov ecx, 0x17
mov dword [ebp - 0x18], 0x5c
mov esi, str.Cannot_get_extended_service_info_when_we_check_the_status_in_case_the_service_is_not_stopped
mov dword [ebp - 0x14], 0x5f
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov byte [eax + 0x5c], 0
mov dword [ebp - 4], 2
jmp 0x414b7d
mov eax, dword [ebp - 0x60]
cmp eax, 1
je 0x414d01
cmp eax, 3
je 0x414d01
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x20
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00410e00
movups xmm0, xmmword [str.Service_already_running]
mov edx, eax
mov dword [ebp - 0x18], 0x17
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], 0x1f
movups xmmword [edx], xmm0
mov ecx, dword [0x46eff8]
mov dword [edx + 0x10], ecx
mov cx, word [0x46effc]
mov word [edx + 0x14], cx
mov al, byte [0x46effe]
mov byte [edx + 0x16], al
mov byte [edx + 0x17], 0
mov dword [ebp - 4], 3
jmp 0x414b7d
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp dword [ebp - 0x60], 3
mov ecx, 0x2710
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x84], eax
jne 0x414d98
nop dword [eax]
mov eax, 0xcccccccd
mul dword [ebp - 0x4c]
shr edx, 3
cmp edx, 0x3e8
jae 0x414d3a
mov edx, 0x3e8
jmp 0x414d43
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x8c]
push eax
push 0x24
lea eax, [ebp - 0x64]
push eax
push 0
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, 1
jne 0x414e6e
cmp dword [ebp - 0x50], edi
jbe 0x414d80
call esi
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x84], eax
jmp 0x414d8d
call esi
sub eax, dword [ebp - 0x84]
cmp eax, dword [ebp - 0x4c]
ja 0x414e04
cmp dword [ebp - 0x60], 3
mov ecx, 0x2710
je 0x414d20
mov edi, dword [ebp - 0x88]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x414ed7
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
push 0x20
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00410e00
movups xmm0, xmmword [str.cannot_start_new_service]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], 0x1f
movups xmmword [eax], xmm0
movq xmm0, qword [0x46f09c]
movq qword [eax + 0x10], xmm0
mov byte [eax + 0x18], 0
mov dword [ebp - 4], 6
jmp 0x414b7d
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x30
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
call fcn.00410e00
movups xmm0, xmmword [str.Timeout_waiting_for_service_to_stop]
mov edx, eax
mov dword [ebp - 0x18], 0x23
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], 0x2f
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x46f078]
movups xmmword [edx + 0x10], xmm0
mov cx, word [0x46f088]
mov word [edx + 0x20], cx
mov al, byte [0x46f08a]
mov byte [edx + 0x22], al
mov byte [edx + 0x23], 0
mov dword [ebp - 4], 5
jmp 0x414b7d
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push 0x70
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
movups xmmword [ebp - 0x40], xmm0
call fcn.00410e00
mov dword [ebp - 0x40], eax
mov ecx, 0x19
mov dword [ebp - 0x30], 0x65
mov esi, str.Cannot_get_extended_service_info_when_we_check_the_status_until_the_service_is_no_longer_stop_pending
mov dword [ebp - 0x2c], 0x6f
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x65], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 4
push eax
call fcn.00411f60
add esp, 4
mov byte [ebp - 0x7d], al
lea ecx, [ebp - 0x40]
call fcn.0040fdb0
mov al, byte [ebp - 0x7d]
jmp 0x415195
call fcn.0042edd0
mov edx, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x18], 0
mov ecx, dword [edx + 0x2c]
cmp ecx, 2
mov al, byte [edx + 0x90]
setle byte [ebp - 0x7d]
mov byte [ebp - 0x7e], al
jle 0x414f0f
test al, al
je 0x414f90
sub esp, 8
mov eax, esp
push 2
mov dword [eax], str.Service_start_pending...
sub esp, 8
mov dword [eax + 4], 0x18
lea eax, [edx + 8]
cmp dword [eax + 0x14], 0x10
mov edx, esp
mov ecx, eax
jb 0x414f35
mov ecx, dword [eax]
movq xmm0, qword [ebp - 0x1c]
sub esp, 0xc
mov dword [edx], ecx
lea ecx, [ebp - 0xc4]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.0040fc00
cmp byte [ebp - 0x7d], 0
je 0x414f75
mov ecx, dword [ebp - 0x84]
lea edx, [ebp - 0xc4]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
cmp byte [ebp - 0x7e], 0
je 0x414f90
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0xc4]
add ecx, 0x60
push eax
call fcn.00413930
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.004120d0
add esp, 8
test al, al
jne 0x41503c
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push 0x70
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
movups xmmword [ebp - 0x40], xmm0
call fcn.00410e00
mov dword [ebp - 0x40], eax
mov ecx, 0x19
mov dword [ebp - 0x30], 0x66
mov esi, str.Cannot_get_extended_service_info_when_we_check_the_status_until_the_service_is_no_longer_start_pending
mov dword [ebp - 0x2c], 0x6f
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [eax + 0x66], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 7
push eax
call fcn.00411f60
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov byte [ebp - 0x7e], al
cmp ecx, 0x10
jb 0x415195
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41502d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4151b0
push ecx
push edx
call fcn.0044781c
add esp, 8
jmp 0x415192
call esi
mov ecx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x84], eax
cmp ecx, 2
jne 0x415135
mov eax, 0xcccccccd
mul dword [ebp - 0x4c]
shr edx, 3
cmp edx, 0x3e8
jae 0x41506d
mov edx, 0x3e8
jmp 0x41507b
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x8c]
push eax
push 0x24
lea eax, [ebp - 0x64]
push eax
push 0
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, 1
jne 0x4150cb
cmp dword [ebp - 0x50], edi
jbe 0x4150b4
call esi
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x84], eax
jmp 0x4150c1
call esi
sub eax, dword [ebp - 0x84]
cmp eax, dword [ebp - 0x4c]
ja 0x415132
mov ecx, dword [ebp - 0x60]
cmp ecx, 2
je 0x415053
jmp 0x415135
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
push 0x40
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], 0xf
movups xmmword [ebp - 0x7c], xmm0
call fcn.00410e00
mov dword [ebp - 0x7c], eax
mov ecx, 0xf
mov dword [ebp - 0x6c], 0x3f
mov esi, str.Cannot_get_extended_service_info_when_we_check_the_status_again
mov dword [ebp - 0x68], 0x3f
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x3f], 0
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 8
push eax
call fcn.00411f60
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.0040fdb0
mov ecx, dword [ebp - 0x60]
cmp ecx, 4
sete byte [ebp - 0x7e]
jne 0x415151
call fcn.0042edd0
push str.Service_started_successfully
mov ecx, eax
call fcn.0040a6d0
jmp 0x415192
push str.Service_not_started.__n
call fcn.00416a50
push dword [ebp - 0x60]
push str.__Current_State:__d_n
call fcn.00416a50
push dword [ebp - 0x58]
push str.__Exit_Code:__d_n
call fcn.00416a50
push dword [ebp - 0x50]
push str.__Check_Point:__d_n
call fcn.00416a50
push dword [ebp - 0x4c]
push str.__Wait_Hint:__d_n
call fcn.00416a50
add esp, 0x24
mov al, byte [ebp - 0x7e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447a97
mov esp, ebp
pop ebp
ret
call fcn.0044c8cf
int3