Function at 0x1005ae6
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
push ebx
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
push esi
push edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
jbe 0x1005f0e
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
mov dword [ebp - 4], 1
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
shl edi, 2
lea ebx, [edi + eax]
push 0x1002b50
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005c2f
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1005c2f
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1005b62
and dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
lea edi, [edi + eax + 4]
push 0x1002b48
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005b81
or dword [ebp - 0xc], 0x10
jmp 0x1005c1c
push 0x1002b3c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005b99
or dword [ebp - 0xc], 0x20
jmp 0x1005c1c
push 0x1002b28
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005bae
or byte [ebp - 0xb], 1
jmp 0x1005c1c
push 0x1002b18
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005bc3
or dword [ebp - 0xc], 1
jmp 0x1005c1c
push 0x1002b08
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005bd8
or dword [ebp - 0xc], 2
jmp 0x1005c1c
push 0x1002b00
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005bed
or dword [ebp - 0xc], 8
jmp 0x1005c1c
push 0x1002af4
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005c02
or dword [ebp - 0xc], 4
jmp 0x1005c1c
push 0x1002ae8
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005f3f
or dword [ebp - 0xc], 0x2f309a20
cmp dword [ebp - 0xc], 0
jne 0x1005ef4
or dword [ebp - 0xc], 0xffffffff
jmp 0x1005ef4
push 0x1002ad8
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005cf7
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1005cf7
mov eax, dword [ebp + 0x10]
lea edi, [edi + eax + 4]
push 0x1002acc
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005c6c
and dword [ebp - 0x10], eax
jmp 0x1005ef4
push 0x1002abc
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005c87
mov dword [ebp - 0x10], 1
jmp 0x1005ef4
push 0x1002ab0
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005ca2
mov dword [ebp - 0x10], 2
jmp 0x1005ef4
push 0x1002aa0
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005cbd
mov dword [ebp - 0x10], 3
jmp 0x1005ef4
push 0x1002a8c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005cd8
mov dword [ebp - 0x10], 4
jmp 0x1005ef4
push 0x1002ae8
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005f55
mov dword [ebp - 0x10], 0xd0034911
jmp 0x1005ef4
push 0x1002a7c
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005da4
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1005da4
mov eax, dword [ebp + 0x10]
lea edi, [edi + eax + 4]
push 0x1002a6c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005d38
mov dword [ebp - 0x14], 1
jmp 0x1005ef4
push 0x1002a5c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005d53
mov dword [ebp - 0x14], 2
jmp 0x1005ef4
push 0x1002a4c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005d6a
and dword [ebp - 0x14], eax
jmp 0x1005ef4
push 0x1002a38
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005d85
mov dword [ebp - 0x14], 3
jmp 0x1005ef4
push 0x1002ae8
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005f5c
mov dword [ebp - 0x14], 0xd74550
jmp 0x1005ef4
push 0x1002a24
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005dca
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1005dca
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x30], eax
jmp 0x1005ef4
push 0x1002a14
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005df0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1005df0
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x2c], eax
jmp 0x1005ef4
push 0x1002a08
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005e2a
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1005e2a
mov eax, dword [ebp + 0x10]
push 0x1002a00
push dword [edi + eax + 4]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005ef4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], eax
jmp 0x1005ef4
push 0x10029f0
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005e8d
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1005e8d
mov eax, dword [ebp + 0x10]
mov edi, dword [edi + eax + 4]
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
pop ecx
add eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x1005f63
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
xor eax, eax
jmp 0x1005e86
cmp word [ebx], 0x2f
jne 0x1005e84
mov word [ebx], ax
inc ebx
inc ebx
cmp word [ebx], ax
jne 0x1005e7b
jmp 0x1005ef4
push 0x10029e4
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005eb0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1005eb0
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x20], eax
jmp 0x1005ef4
push 0x10029d0
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005ed3
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1005ed3
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x1c], eax
jmp 0x1005ef4
push 0x10029b4
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005f4b
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1005f4b
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x18], eax
inc dword [ebp - 8]
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
inc dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jb 0x1005b2d
xor ebx, ebx
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x1005f7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.01004fd9
push eax
push esi
push 0x10016b4
jmp 0x1005fdc
push 0x100299c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
call fcn.010056c6
jmp 0x1005fe5
push 0x1002984
jmp 0x1005f44
push 0x100296c
jmp 0x1005f44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.01004fd9
push eax
push esi
push 0x1002934
jmp 0x1005fdc
push dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x1005fb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x1005fcf
mov esi, dword [sym.imp.msvcrt.dll_printf]
push 0x1002910
call esi
cmp edi, ebx
pop ecx
je 0x1005fe5
push dword [edi]
push 0x1002900
call esi
pop ecx
pop ecx
jmp 0x1005fe5
push esi
call fcn.01004fd9
push eax
push esi
push 0x10028d4
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x14