Function at 0x411430
Capabilities:
Query service status
Start service
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf364
mov eax, dword fs:[0]
push eax
sub esp, 0x7f4
mov eax, dword [0x507254]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov dword [ebp - 0x700], eax
mov esi, ecx
mov dword [ebp - 0x6f8], esi
mov dword [ebp - 0x6fc], esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x710], esi
push ecx
push dword [eax]
mov dword [ebp - 0x70c], eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411546
call edi
mov dword [ebp - 0x6fc], 0
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x64], xmm0
movups xmmword [ebp - 0x30], xmm0
test eax, eax
je 0x411565
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00412a00
mov dword [ebp - 4], 0
push 0x1a
push str.service::query_status_err
push 0
mov ecx, eax
call fcn.00412460
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x34]
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm1
mov byte [esi + 0x18], 1
cmp edx, 8
jb 0x411aa4
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411964
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411bbc
jmp 0x411964
movups xmm1, xmmword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
movq xmm0, qword [ebp - 0x20]
movups xmmword [ebp - 0x64], xmm1
mov dword [ebp - 0x6fc], eax
movups xmmword [ebp - 0x30], xmm1
movq qword [ebp - 0x20], xmm0
mov ecx, dword [ebp - 0x60]
cmp ecx, 1
je 0x41158d
cmp ecx, 3
je 0x41158d
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov byte [esi + 0x18], 0
jmp 0x411aa4
lea ecx, [ebp - 0x708]
call fcn.0040ed90
mov ecx, 0x2710
nop dword [eax]
cmp dword [ebp - 0x2c], 3
jne 0x4118eb
mov eax, 0xcccccccd
mul dword [ebp - 0x6fc]
shr edx, 3
cmp edx, 0x3e8
jae 0x4115c7
mov edx, 0x3e8
jmp 0x4115d0
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x700]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4115fa
call edi
xorps xmm0, xmm0
xor ecx, ecx
movq xmm1, xmm0
jmp 0x411608
movups xmm0, xmmword [ebp - 0x64]
xor eax, eax
mov ecx, dword [ebp - 0x4c]
movq xmm1, qword [ebp - 0x54]
mov dword [ebp - 0x6fc], ecx
movq qword [ebp - 0x20], xmm1
mov dword [ebp - 0x18], ecx
movups xmmword [ebp - 0x758], xmm0
movups xmmword [ebp - 0x30], xmm0
test eax, eax
je 0x41163b
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00412a00
mov dword [ebp - 4], 1
jmp 0x4114d2
cmp dword [ebp - 0x754], 1
je 0x4118eb
lea eax, [ebp - 0x708]
push eax
lea ecx, [ebp - 0x73c]
call fcn.0040ed90
mov edx, eax
lea ecx, [ebp - 0x718]
call fcn.00412430
add esp, 4
lea ecx, [ebp + 8]
mov edx, eax
call fcn.00412780
mov ecx, 0x2710
test al, al
je 0x4115a0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 2
call fcn.0040dfe0
push 0x230
lea eax, [ebp - 0x6f4]
push 0
push eax
call fcn.004a8a30
push 0x22c
lea eax, [ebp - 0x6f0]
mov dword [ebp - 0x6f4], 0xffffffff
push 0
push eax
call fcn.004a8a30
push 0x230
lea eax, [ebp - 0x294]
push 0
push eax
call fcn.004a8a30
mov eax, dword [ebp - 0x6f4]
lea esi, [ebp - 0x6f0]
mov ecx, 0x8b
mov dword [ebp - 0x294], eax
lea edi, [ebp - 0x290]
rep movsd dword es:[edi], dword [esi]
push 0x230
lea eax, [ebp - 0x4c4]
push 0
push eax
call fcn.004a8a30
push 0x22c
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x4c4], 0xffffffff
push 0
push eax
call fcn.004a8a30
add esp, 0x3c
mov byte [ebp - 4], 6
nop dword [eax]
mov edi, dword [ebp - 0x294]
cmp edi, dword [ebp - 0x4c4]
jne 0x4117fb
lea edx, [ebp - 0x290]
mov esi, 0x228
lea eax, [ebp - 0x4c0]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x411768
add edx, 4
add eax, 4
sub esi, 4
jae 0x411753
mov al, 1
jmp 0x41176a
xor al, al
test al, al
je 0x4117fb
mov eax, dword [ebp - 0x4c4]
mov ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne eax, ecx
cmp edi, ecx
mov dword [ebp - 0x4c4], eax
mov eax, dword [ebp - 0x6f4]
cmovne edi, ecx
cmp eax, ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x34]
cmovne eax, ecx
mov dword [ebp - 0x294], edi
mov dword [ebp - 0x6f4], eax
cmp edx, 8
jb 0x4117e3
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4117d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411bbc
push edx
push ecx
call fcn.004a6287
add esp, 8
mov esi, dword [ebp - 0x6f8]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411598
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0x48]
call fcn.0040e210
test al, al
je 0x411849
push dword [ebp - 0x288]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x411839
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x294]
call fcn.0040f060
jmp 0x411730
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x294]
call fcn.0040f060
jmp 0x411730
mov eax, dword [ebp - 0x700]
push 0
push 0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x411920
call edi
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00412940
push 0x12
mov dword [ebp - 4], 9
push str.start_service_err
jmp 0x4114d9
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x700]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x411973
call edi
xorps xmm0, xmm0
xor edi, edi
movq qword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x64], xmm0
movups xmmword [ebp - 0x30], xmm0
test eax, eax
je 0x41198c
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00412a00
mov dword [ebp - 4], 0xa
jmp 0x4114d2
push edx
push ecx
call fcn.004a6287
add esp, 8
jmp 0x411aa4
movups xmm1, xmmword [ebp - 0x30]
mov edi, dword [ebp - 0x18]
movq xmm0, qword [ebp - 0x20]
movups xmmword [ebp - 0x64], xmm1
movups xmmword [ebp - 0x30], xmm1
movq qword [ebp - 0x20], xmm0
lea ecx, [ebp - 0x718]
call fcn.0040ed90
cmp dword [ebp - 0x60], 2
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x708], ecx
mov dword [ebp - 0x704], eax
jne 0x411a75
mov eax, 0xcccccccd
mul edi
shr edx, 3
cmp edx, 0x3e8
jae 0x4119cb
mov edx, 0x3e8
jmp 0x4119d9
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x700]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x411a07
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
xor edi, edi
movq xmm1, xmm0
jmp 0x411a15
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
mov edi, dword [ebp - 0x18]
movq xmm1, qword [ebp - 0x20]
movq qword [ebp - 0x20], xmm1
movups xmmword [ebp - 0x64], xmm0
movups xmmword [ebp - 0x30], xmm0
test eax, eax
jne 0x411b0e
mov esi, dword [ebp - 0x60]
cmp esi, 4
je 0x411b03
lea eax, [ebp - 0x708]
push eax
lea ecx, [ebp - 0x718]
call fcn.0040ed90
mov edx, eax
lea ecx, [ebp - 0x73c]
call fcn.00412430
add esp, 4
lea ecx, [ebp + 8]
mov edx, eax
call fcn.00412780
test al, al
jne 0x411ac2
cmp esi, 2
je 0x4119b2
mov esi, dword [ebp - 0x6f8]
push str.service_not_started
lea ecx, [ebp - 0x2c]
call fcn.0040a560
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.004120f0
push eax
mov ecx, esi
call fcn.00412130
lea ecx, [ebp - 0x60]
call fcn.00402710
lea ecx, [ebp - 0x2c]
call fcn.00402710
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a6256
mov esp, ebp
pop ebp
ret
push str.timeout_wait_for_service_to_start
lea ecx, [ebp - 0x730]
call fcn.0040a560
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004120f0
mov ecx, dword [ebp - 0x6f8]
push eax
call fcn.00412130
lea ecx, [ebp - 0x48]
call fcn.00402710
lea ecx, [ebp - 0x730]
call fcn.00402710
mov eax, dword [ebp - 0x6f8]
jmp 0x411aa6
mov esi, dword [ebp - 0x6f8]
jmp 0x411572
mov edx, eax
lea ecx, [ebp - 0x754]
call fcn.00412a00
push 0x1a
push str.service::query_status_err
push 0
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.00412460
mov esi, dword [ebp - 0x6f8]
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
xor eax, eax
movq qword [ebp - 0x38], xmm0
movups xmmword [esi], xmm1
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x730]
movq qword [ebp - 0x720], xmm0
movups xmmword [ebp - 0x48], xmm1
mov dword [ebp - 0x34], 7
movups xmmword [ebp - 0x730], xmm1
mov word [ebp - 0x48], ax
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x720], eax
mov dword [ebp - 0x71c], 7
mov word [ebp - 0x730], ax
mov byte [esi + 0x18], 1
call fcn.00402710
lea ecx, [ebp - 0x48]
call fcn.00402710
lea ecx, [ebp - 0x754]
jmp 0x411a9f
call fcn.004ab23f
int3