Function at 0x10068f0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
push edi
push 1
xor edi, edi
cmp dword [ebp + 0x14], edi
pop eax
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], edi
jbe 0x1006d3f
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edi, eax
push 4
mov dword [ebp + 0x10], edi
lea esi, [eax + 4]
pop ebx
push 0x100152c
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006a33
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1006a33
cmp dword [ebp - 0xc], 0xffffffff
jne 0x100696d
and dword [ebp - 0xc], 0
push 0x10014a0
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006988
or dword [ebp - 0xc], 0x10
jmp 0x1006a1d
push 0x1001494
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10069a0
or dword [ebp - 0xc], 0x20
jmp 0x1006a1d
push 0x10014f0
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10069b8
or byte [ebp - 0xb], 1
jmp 0x1006a1d
push 0x10014c8
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10069d0
or dword [ebp - 0xc], 1
jmp 0x1006a1d
push 0x10014b8
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x10069e8
or dword [ebp - 0xc], 2
jmp 0x1006a1d
push 0x1002498
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006a00
or dword [ebp - 0xc], 8
jmp 0x1006a1d
push 0x10014e4
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006dbb
or dword [ebp - 0xc], 0x2f309a20
cmp dword [ebp - 0xc], 0
jne 0x1006d1a
mov dword [ebp - 0xc], 0x10
jmp 0x1006d1a
push 0x100247c
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006b05
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1006b05
push 0x10019f8
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006a6f
and dword [ebp - 0x10], eax
jmp 0x1006d1a
push 0x100246c
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006a8d
mov dword [ebp - 0x10], 1
jmp 0x1006d1a
push 0x1002460
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006aab
mov dword [ebp - 0x10], 2
jmp 0x1006d1a
push 0x1002450
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006ac9
mov dword [ebp - 0x10], 3
jmp 0x1006d1a
push 0x100243c
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006ae3
mov dword [ebp - 0x10], ebx
jmp 0x1006d1a
push 0x10014e4
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006dc2
mov dword [ebp - 0x10], 0xd0034911
jmp 0x1006d1a
push 0x100242c
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006bbd
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1006bbd
push 0x100241c
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006b45
mov dword [ebp - 0x14], 1
jmp 0x1006d1a
push 0x100240c
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006b63
mov dword [ebp - 0x14], 2
jmp 0x1006d1a
push 0x10023e8
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006b81
mov dword [ebp - 0x14], 3
jmp 0x1006d1a
push 0x10023fc
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006b9b
and dword [ebp - 0x14], eax
jmp 0x1006d1a
push 0x10014e4
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006dc9
mov dword [ebp - 0x14], 0xd74550
jmp 0x1006d1a
push 0x10023d4
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006be1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1006be1
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
jmp 0x1006d1a
push 0x1001460
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006c05
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1006c05
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
jmp 0x1006d1a
push 0x10023c8
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006c40
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1006c40
push 0x10023c0
push dword [esi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006d1a
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], eax
jmp 0x1006d1a
push 0x1002374
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006c64
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1006c64
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
jmp 0x1006d1a
push 0x10023b0
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006cd2
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1006cd2
mov edi, dword [esi]
push edi
call fcn.01007ed0
lea eax, [eax + eax + 2]
pop ecx
add eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x1006ddb
push edi
push eax
call fcn.01007ea0
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
xor ecx, ecx
cmp word [eax], cx
je 0x1006cc2
cmp word [eax], 0x2f
jne 0x1006cbe
mov word [eax], cx
inc eax
inc eax
jmp 0x1006cb0
add dword [ebp + 0x10], ebx
inc dword [ebp - 8]
mov edi, dword [ebp + 0x10]
add esi, ebx
inc dword [ebp - 4]
jmp 0x1006d24
push 0x10023a4
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006cf3
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1006cf3
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
jmp 0x1006d1a
push 0x1002390
push dword [edi]
call fcn.01007db0
pop ecx
test eax, eax
pop ecx
jne 0x1006dfa
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1006dfa
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
inc dword [ebp - 8]
add edi, ebx
add esi, ebx
inc dword [ebp - 4]
inc dword [ebp - 8]
add edi, ebx
mov eax, dword [ebp - 8]
add esi, ebx
inc dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], edi
jb 0x1006941
xor edi, edi
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1006d4c
mov dword [ebp - 0xc], 0x10
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0xf01ff
push dword [ebp - 0x30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
cmp esi, edi
jne 0x1006da0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.010072bf
push eax
push edi
push 0x1002668
call fcn.01007d70
add esp, 0xc
jmp 0x1006dab
push 0x100264c
call fcn.01007d70
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x14
push 0x10022fc
jmp 0x1006dce
push 0x10022e4
jmp 0x1006dce
push 0x10022cc
call fcn.01007d70
pop ecx
call fcn.01007a99
jmp 0x1006db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.010072bf
push eax
push esi
push 0x1002294
call fcn.01007d70
add esp, 0xc
jmp 0x1006db2
call fcn.01007ac6
jmp 0x1006db2