Function at 0x414250
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46857d
mov eax, dword fs:[0]
push eax
sub esp, 0x80
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041fb60
add esp, 8
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x48]
cmovae edx, dword [ebp - 0x58]
mov dword [ebp - 4], 0
lea edx, [edx + eax*2]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
xor esi, esi
sub edx, eax
mov dword [ebp - 0x60], eax
xor edi, edi
mov dword [ebp - 0x74], edx
mov ecx, edx
mov dword [ebp - 0x6c], edi
sar ecx, 1
mov eax, esi
mov dword [ebp - 0x68], edi
mov edx, eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x70], ecx
je 0x414311
cmp ecx, 0x7fffffff
ja 0x4144d1
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00410e60
push dword [ebp - 0x74]
mov edi, eax
mov eax, dword [ebp - 0x70]
push dword [ebp - 0x60]
mov dword [ebp - 0x6c], edi
push edi
lea esi, [edi + eax*2]
mov dword [ebp - 0x64], esi
call fcn.00449170
mov eax, dword [ebp - 0x70]
add esp, 0xc
mov edx, esi
lea eax, [edi + eax*2]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x60], 0
cmp eax, edx
je 0x41432d
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x68], eax
jmp 0x414343
lea ecx, [ebp - 0x60]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.004072c0
mov esi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
mov edi, dword [ebp - 0x6c]
xor edx, edx
mov dword [ebp - 0x28], 1
cmp edi, eax
mov dword [ebp - 0x20], 1
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x24], eax
cmove ecx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x8c]
push eax
push 2
push dword [ebp - 0x78]
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp eax, 1
sete byte [ebp - 0x59]
je 0x414450
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push 0x20
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
movups xmmword [ebp - 0x40], xmm0
call fcn.00410e00
movups xmm0, xmmword [str.Cannot_set_failure_parameters]
mov edx, eax
mov dword [ebp - 0x30], 0x1d
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x2c], 0x1f
movups xmmword [edx], xmm0
movq xmm0, qword [0x46ef74]
movq qword [edx + 0x10], xmm0
mov ecx, dword [0x46ef7c]
mov dword [edx + 0x18], ecx
mov al, byte [0x46ef80]
mov byte [edx + 0x1c], al
mov byte [edx + 0x1d], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00411f60
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, 0x10
jb 0x414450
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x414446
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4144d6
push ecx
push edx
call fcn.0044781c
add esp, 8
test edi, edi
je 0x41447d
sub esi, edi
mov eax, edi
and esi, 0xfffffffe
cmp esi, 0x1000
jb 0x414473
mov edi, dword [eax - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4144db
push esi
push edi
call fcn.0044781c
add esp, 8
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x4144b3
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4144a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4144db
push ecx
push edx
call fcn.0044781c
add esp, 8
mov al, byte [ebp - 0x59]
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.00410c60
call fcn.0044c8cf
call fcn.0044c8cf
int3