Function at 0x41e2d0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5f1464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x41e33b
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x6c], esi
test esi, esi
jne 0x41e35a
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
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.00545b6c
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2c], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x44], xmm0
movq qword [ebp - 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41e3ea
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jne 0x41e38f
mov dword [ebp - 0x4c], 1
jmp 0x41e3ea
cmp eax, 2
je 0x41e33b
cmp eax, 3
je 0x41e33b
cmp eax, 5
je 0x41e33b
cmp eax, 6
je 0x41e33b
cmp eax, 1
jne 0x41e3ba
cmp ecx, 4
jne 0x41e3ea
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
jmp 0x41e3e7
cmp eax, 4
je 0x41e3c4
cmp eax, 7
jne 0x41e3ea
cmp ecx, 1
jne 0x41e3d0
lea eax, [ebp - 0x44]
push eax
push ecx
jmp 0x41e3e0
cmp eax, 7
jne 0x41e3ea
cmp ecx, 4
jne 0x41e3ea
lea eax, [ebp - 0x44]
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x5d404c
mov ecx, edi
mov dword [edi + 0x18], eax
call fcn.00406440
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 8
jb 0x41e438
lea eax, [ecx + 8]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0x10
jb 0x41e41f
mov eax, dword [edi]
push 8
lea esi, [eax + ecx]
push 0x5db800
push esi
call fcn.00549bd0
add esp, 0xc
mov byte [esi + 8], 0
jmp 0x41e44f
push 8
push 0x5db800
mov byte [ebp - 0x48], 0
mov ecx, edi
push dword [ebp - 0x48]
push 8
call fcn.00410ca0
mov ecx, dword [edi + 0x18]
lea esi, [ebp - 0x13]
mov dword [ebp - 0x48], ecx
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x48]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x41e458
xor ecx, ecx
mov dword [ebp - 0x68], 0
lea edx, [ebp - 0x13]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 0x68], cl
mov eax, 0xf
mov dword [ebp - 0x54], eax
cmp esi, edx
je 0x41e4b3
mov eax, edx
lea ecx, [ebp - 0x68]
sub eax, esi
push eax
push esi
call fcn.00406440
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x14]
lea edx, [ebp - 0x68]
cmovae edx, dword [ebp - 0x68]
mov esi, dword [edi + 0x10]
sub eax, esi
cmp ecx, eax
ja 0x41e4f4
cmp dword [edi + 0x14], 0x10
lea eax, [ecx + esi]
mov dword [edi + 0x10], eax
jb 0x41e4de
mov edi, dword [edi]
push ecx
push edx
add esi, edi
push esi
call fcn.00549bd0
mov eax, dword [ebp - 0x58]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x41e505
push ecx
push edx
mov byte [ebp - 0x48], 0
push dword [ebp - 0x48]
push ecx
mov ecx, edi
call fcn.00410ca0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x68]
cmp eax, 0x10
jb 0x41e537
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e52d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41e54f
push edx
push ecx
call fcn.00545dac
add esp, 8
push dword [ebp - 0x50]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x6c]
call esi
mov eax, dword [ebp - 0x4c]
jmp 0x41e33d
call fcn.005500e6
int3