Function at 0x470194
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x47019c
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4706b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402a44
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004092d8
mov edx, dword [ebp - 0xc]
mov eax, 0x476254
mov ecx, 0x4706d0
call fcn.004048b8
lea edx, [ebp - 0x1c]
mov eax, dword [0x476254]
call fcn.00408758
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.0040930c
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
xor edx, edx
call fcn.00409244
mov eax, dword [ebp - 0x14]
call fcn.00404a6c
mov dword [0x476250], eax
mov eax, dword [0x476254]
call fcn.00404a6c
mov edi, eax
xor ebx, ebx
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov esi, eax
test esi, esi
jne 0x47029c
call fcn.0040a72c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x20]
mov eax, 0x4706e8
call fcn.0040b3a8
push dword [ebp - 0x20]
push 0x470700
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00408d38
push dword [ebp - 0x24]
push 0x470718
mov eax, 0x475fec
mov edx, 4
call fcn.0040492c
mov eax, dword [0x475fe8]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x220]
mov edx, dword [0x475fec]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 1], 0
test esi, esi
jbe 0x4704fb
call fcn.0040a72c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x28]
mov eax, 0x4706e8
call fcn.0040b3a8
mov edx, dword [ebp - 0x28]
mov eax, 0x475fec
mov ecx, 0x470724
call fcn.004048b8
mov eax, dword [0x475fe8]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x220]
mov edx, dword [0x475fec]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 3
push 1
push 0xf01ff
mov eax, dword [0x476250]
push eax
mov eax, dword [0x476250]
push eax
push esi
call sub.advapi32.dll_CreateServiceA
mov ebx, eax
test ebx, ebx
jne 0x4704b0
call sub.kernel32.dll_GetLastError_1
mov edi, eax
cmp edi, 0x3e5
je 0x47039c
cmp edi, 0x431
je 0x47039c
call fcn.0040a72c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x2c]
mov eax, 0x4706e8
call fcn.0040b3a8
push dword [ebp - 0x2c]
push 0x470740
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.00408d38
push dword [ebp - 0x30]
push 0x470718
mov eax, 0x475fec
mov edx, 4
call fcn.0040492c
mov eax, dword [0x475fe8]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x220]
mov edx, dword [0x475fec]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 1], 0
jmp 0x4703e3
call fcn.0040a72c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x34]
mov eax, 0x4706e8
call fcn.0040b3a8
mov edx, dword [ebp - 0x34]
mov eax, 0x475fec
mov ecx, 0x470758
call fcn.004048b8
mov eax, dword [0x475fe8]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x220]
mov edx, dword [0x475fec]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0xf01ff
mov eax, dword [0x476250]
push eax
push esi
call sub.advapi32.dll_OpenServiceA
mov ebx, eax
test ebx, ebx
jne 0x470469
call sub.kernel32.dll_GetLastError_1
mov edi, eax
call fcn.0040a72c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x38]
mov eax, 0x4706e8
call fcn.0040b3a8
push dword [ebp - 0x38]
push 0x470770
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x3c]
call fcn.00408d38
push dword [ebp - 0x3c]
push 0x470718
mov eax, 0x475fec
mov edx, 4
call fcn.0040492c
mov eax, dword [0x475fe8]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x220]
mov edx, dword [0x475fec]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov byte [ebp - 1], 0
jmp 0x4704b0
call fcn.0040a72c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x40]
mov eax, 0x4706e8
call fcn.0040b3a8
mov edx, dword [ebp - 0x40]
mov eax, 0x475fec
mov ecx, 0x470788
call fcn.004048b8
mov eax, dword [0x475fe8]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x220]
mov edx, dword [0x475fec]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test ebx, ebx
jbe 0x4704fb
call fcn.0040a72c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x44]
mov eax, 0x4706e8
call fcn.0040b3a8
mov edx, dword [ebp - 0x44]
mov eax, 0x475fec
mov ecx, 0x4707a0
call fcn.004048b8
mov eax, dword [0x475fe8]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x220]
mov edx, dword [0x475fec]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test ebx, ebx
jbe 0x470685
xor eax, eax
mov dword [ebp - 8], eax
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
push ebx
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x47063e
call sub.kernel32.dll_GetLastError_1
mov edi, eax
cmp edi, 0x3e5
je 0x4705a1
cmp edi, 0x420
je 0x4705a1
call fcn.0040a72c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x48]
mov eax, 0x4706e8
call fcn.0040b3a8
push dword [ebp - 0x48]
push 0x4707bc
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4c]
call fcn.00408d38
push dword [ebp - 0x4c]
push 0x470718
mov eax, 0x475fec
mov edx, 4
call fcn.0040492c
mov eax, dword [0x475fe8]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x220]
mov edx, dword [0x475fec]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x470685
cmp edi, 0x3e5
jne 0x4705f5
call fcn.0040a72c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x50]
mov eax, 0x4706e8
call fcn.0040b3a8
mov edx, dword [ebp - 0x50]
mov eax, 0x475fec
mov ecx, 0x4707d4
call fcn.004048b8
mov eax, dword [0x475fe8]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x220]
mov edx, dword [0x475fec]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x470685
call fcn.0040a72c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x54]
mov eax, 0x4706e8
call fcn.0040b3a8
mov edx, dword [ebp - 0x54]
mov eax, 0x475fec
mov ecx, 0x4707e8
call fcn.004048b8
mov eax, dword [0x475fe8]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x220]
mov edx, dword [0x475fec]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x470685
call fcn.0040a72c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x58]
mov eax, 0x4706e8
call fcn.0040b3a8
mov edx, dword [ebp - 0x58]
mov eax, 0x475fec
mov ecx, 0x470800
call fcn.004048b8
mov eax, dword [0x475fe8]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 0x220]
mov edx, dword [0x475fec]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test ebx, ebx
je 0x47068f
push ebx
call sub.advapi32.dll_CloseServiceHandle
test esi, esi
je 0x470699
push esi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4706bb
lea eax, [ebp - 0x58]
mov edx, 0x14
call fcn.004045d0
ret