Function at 0x1026709
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
or dword [ebp - 0x20], 0xffffffff
push edi
xor edi, edi
push 0x40000000
push 0x10143d4
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x1026763
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x1026753
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x1014370
call fcn.0101872f
jmp 0x1026949
push esi
push 0xc0000000
push 0x1014364
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x10267a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x1026793
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x101432c
call fcn.0101872f
jmp 0x1026925
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea ecx, [ebp - 0xc]
push ecx
push edi
push edi
push eax
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x1026925
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x10268e6
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call fcn.01019242
pop ecx
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x10267ee
mov dword [ebp - 4], 0xe
jmp 0x1026924
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x102681d
call ebx
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x1026812
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x10142c0
jmp 0x10268df
mov esi, 0x102c3b8
cmp dword [ebp + 8], edi
je 0x1026849
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 4
jne 0x1026849
push 0x1014228
push esi
call fcn.01018f8f
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x18], 1
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x1026891
push 0x10141d8
push esi
call fcn.01018f8f
mov eax, dword [ebp - 8]
push dword [eax + 0x18]
call fcn.01024600
push 0x10141a0
push esi
call fcn.01018f8f
push ebx
call fcn.01024600
mov eax, dword [ebp - 8]
push ebx
push dword [eax + 0x18]
call fcn.01024549
test eax, eax
jne 0x1026891
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], edi
je 0x1026924
push 0x1014148
push esi
call fcn.01018f8f
push edi
push edi
push edi
push dword [ebp - 0x1c]
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x20]
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x10268ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 4], eax
jle 0x10268d9
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x10140f0
call fcn.0101872f
jmp 0x1026924
mov dword [ebp - 4], 0x139f
jmp 0x1026924
push 0x1002440
push dword [ebp - 0x1c]
push 0x10140cc
push 0x1014088
push 0x1014020
push esi
call fcn.01018f8f
push eax
call fcn.01018f8f
push eax
call fcn.01018f8f
push eax
call fcn.01018f8f
push eax
call fcn.01018f8f
pop ebx
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
cmp dword [ebp - 0x10], edi
je 0x102693a
push dword [ebp - 0x10]
call esi
pop esi
cmp dword [ebp - 8], edi
je 0x1026949
push dword [ebp - 8]
call fcn.01017ef4
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], edi
pop edi
sete al
leave
ret 0xc