Function at 0x10063a9
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
xor eax, eax
push edi
xor edi, edi
inc eax
cmp dword [ebp + 0x14], edi
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 - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edi
jbe 0x10067d1
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
mov dword [ebp - 4], eax
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 0x10064e1
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x10064e1
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1006429
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 0x1006448
or dword [ebp - 0xc], 0x10
jmp 0x10064cb
push 0x1002b3c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100645d
or dword [ebp - 0xc], 0x20
jmp 0x10064cb
push 0x1002b28
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1006472
or byte [ebp - 0xb], 1
jmp 0x10064cb
push 0x1002b18
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1006487
or dword [ebp - 0xc], 1
jmp 0x10064cb
push 0x1002b08
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100649c
or dword [ebp - 0xc], 2
jmp 0x10064cb
push 0x1002b00
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10064b1
or dword [ebp - 0xc], 8
jmp 0x10064cb
push 0x1002ae8
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100682d
or dword [ebp - 0xc], 0x2f309a20
cmp dword [ebp - 0xc], 0
jne 0x10067b1
mov dword [ebp - 0xc], 0x10
jmp 0x10067b1
push 0x1002ad8
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10065a9
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x10065a9
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 0x100651e
and dword [ebp - 0x10], eax
jmp 0x10067b1
push 0x1002abc
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1006539
mov dword [ebp - 0x10], 1
jmp 0x10067b1
push 0x1002ab0
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1006554
mov dword [ebp - 0x10], 2
jmp 0x10067b1
push 0x1002aa0
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100656f
mov dword [ebp - 0x10], 3
jmp 0x10067b1
push 0x1002a8c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100658a
mov dword [ebp - 0x10], 4
jmp 0x10067b1
push 0x1002ae8
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1006834
mov dword [ebp - 0x10], 0xd0034911
jmp 0x10067b1
push 0x1002a7c
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1006656
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1006656
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 0x10065ea
mov dword [ebp - 0x14], 1
jmp 0x10067b1
push 0x1002a5c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1006605
mov dword [ebp - 0x14], 2
jmp 0x10067b1
push 0x1002a38
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1006620
mov dword [ebp - 0x14], 3
jmp 0x10067b1
push 0x1002a4c
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1006637
and dword [ebp - 0x14], eax
jmp 0x10067b1
push 0x1002ae8
push dword [edi]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100683b
mov dword [ebp - 0x14], 0xd74550
jmp 0x10067b1
push 0x1002a24
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100667c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x100667c
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x2c], eax
jmp 0x10067b1
push 0x1002a14
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10066a2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x10066a2
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x28], eax
jmp 0x10067b1
push 0x1002a08
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10066dc
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x10066dc
mov eax, dword [ebp + 0x10]
push 0x1002a00
push dword [edi + eax + 4]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10067b1
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], eax
jmp 0x10067b1
push 0x10029b4
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1006702
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1006702
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x30], eax
jmp 0x10067b1
push 0x10029f0
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1006765
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jae 0x1006765
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 - 0x20], ebx
je 0x100684e
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
xor eax, eax
jmp 0x100675e
cmp word [ebx], 0x2f
jne 0x100675c
mov word [ebx], ax
inc ebx
inc ebx
cmp word [ebx], ax
jne 0x1006753
jmp 0x10067b1
push 0x10029e4
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1006788
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x1006788
mov eax, dword [ebp + 0x10]
mov eax, dword [edi + eax + 4]
mov dword [ebp - 0x1c], eax
jmp 0x10067b1
push 0x10029d0
push dword [ebx]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100686e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x100686e
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 0x10063f4
xor edi, edi
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10067d8
mov dword [ebp - 0xc], 0x10
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
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 0x1006875
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.01004fd9
push eax
push edi
push 0x1002cd8
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
jmp 0x1006881
push 0x100299c
jmp 0x1006840
push 0x1002984
jmp 0x1006840
push 0x100296c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
call fcn.010056c6
jmp 0x1006888
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.01004fd9
push eax
push esi
push 0x1002934
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
jmp 0x1006888
call fcn.010056f9
jmp 0x1006888
push 0x1002cbc
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10