Function at 0x40cab0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48844b
mov eax, dword fs:[0]
push eax
mov eax, 0x1088
call fcn.00458510
mov eax, dword [0x4db434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
xor ecx, ecx
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], ecx
xor edx, edx
xor eax, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov esi, dword [edi + 4]
sub esi, dword [edi]
sar esi, 3
test esi, esi
je 0x40cb47
cmp esi, 0x1fffffff
jbe 0x40cb2f
push str.vector_T__too_long
call fcn.004569fd
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040d6d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov esi, dword [edi]
mov edi, dword [edi + 4]
mov dword [ebp - 0x40], edi
cmp esi, edi
je 0x40ccac
mov ecx, dword [esi]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x48]
cmp ecx, edx
mov ecx, dword [ebp - 0x34]
jae 0x40cc20
lea edi, [ebp - 0x48]
cmp ecx, edi
mov edi, dword [ebp - 0x40]
ja 0x40cc20
lea edi, [ebp - 0x48]
sub edi, ecx
sar edi, 3
mov dword [ebp - 0x3c], edi
cmp edx, eax
jne 0x40cc00
mov ecx, eax
sub ecx, edx
sar ecx, 3
cmp ecx, 1
jae 0x40cbfd
sub edx, dword [ebp - 0x34]
mov ecx, 0x1fffffff
sar edx, 3
sub ecx, edx
mov dword [ebp - 0x38], edx
cmp ecx, 1
jb 0x40cb25
sub eax, dword [ebp - 0x34]
mov edx, 0x1fffffff
sar eax, 3
mov ecx, eax
mov dword [ebp - 0x34], 0
shr ecx, 1
sub edx, ecx
add ecx, eax
cmp edx, eax
mov eax, dword [ebp - 0x34]
cmovae eax, ecx
mov ecx, dword [ebp - 0x38]
inc ecx
cmp eax, ecx
cmovae ecx, eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040d6d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
jmp 0x40cc00
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x3c]
lea ecx, [ecx + edi*8]
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x3c], ecx
test edx, edx
je 0x40cc9b
mov ecx, dword [ecx]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx + 4]
jmp 0x40cc98
cmp edx, eax
jne 0x40cc8c
mov ecx, eax
sub ecx, edx
sar ecx, 3
cmp ecx, 1
jae 0x40cc8c
sub edx, dword [ebp - 0x34]
mov ecx, 0x1fffffff
sar edx, 3
sub ecx, edx
mov dword [ebp - 0x38], edx
cmp ecx, 1
jb 0x40cb25
sub eax, dword [ebp - 0x34]
mov edx, 0x1fffffff
sar eax, 3
mov ecx, eax
mov dword [ebp - 0x3c], 0
shr ecx, 1
sub edx, ecx
add ecx, eax
cmp edx, eax
mov eax, dword [ebp - 0x3c]
cmovae eax, ecx
mov ecx, dword [ebp - 0x38]
inc ecx
cmp eax, ecx
cmovae ecx, eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040d6d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
test edx, edx
je 0x40cc9b
mov ecx, dword [ebp - 0x4c]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x50]
mov dword [edx + 4], ecx
add edx, 8
add esi, 8
mov dword [ebp - 0x18], edx
cmp esi, edi
jne 0x40cb57
mov ecx, dword [ebp - 0x54]
xorps xmm0, xmm0
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x34]
movups xmmword [ebp - 0x30], xmm0
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 3
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
push 2
push dword [edi + 4]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x40cd3b
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0040c6d0
mov byte [ebp - 4], 1
mov edx, eax
lea ecx, [ebp - 0x88]
call fcn.00402830
mov esi, eax
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 0x10
jb 0x40cd0e
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x1094]
push str.Could_not_change_failure_actions_for_service_with_name__s___i_.
push eax
call fcn.004052e0
add esp, 0x10
lea eax, [ebp - 0x1094]
push 0x4d8cc4
push eax
call fcn.00459b3b
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40cdb1
mov eax, dword [ebp - 0x38]
sub eax, esi
sar eax, 3
cmp eax, 0x1fffffff
jbe 0x40cd5a
call fcn.0045e46c
shl eax, 3
cmp eax, 0x1000
jb 0x40cd93
test byte [ebp - 0x1c], 0x1f
je 0x40cd6f
call fcn.0045e46c
mov eax, dword [esi - 4]
cmp eax, esi
jb 0x40cd7b
call fcn.0045e46c
sub esi, eax
cmp esi, 4
jae 0x40cd87
call fcn.0045e46c
cmp esi, 0x23
jbe 0x40cd91
call fcn.0045e46c
mov esi, eax
push esi
call fcn.004584e5
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
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.004584f8
mov esp, ebp
pop ebp
ret 8