Function at 0x401470
Capabilities:
Create service
Modify service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428380
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x430090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401502
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00406900
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.00406900
mov eax, dword [ebp - 0x20]
jmp 0x4017d6
push 0xf01ff
lea ecx, [ebp + 8]
call fcn.004071c0
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40158a
lea ecx, [ebp + 0x18]
call fcn.004072e0
movzx ecx, al
test ecx, ecx
je 0x40153b
mov dword [ebp - 0x38], 0
jmp 0x401546
lea ecx, [ebp + 0x18]
call fcn.00407260
mov dword [ebp - 0x38], eax
push 0
push 0
push 0x429868
push 0
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp + 0x10]
call fcn.004071c0
push eax
push 1
mov eax, dword [ebp + 0x14]
push eax
push 0x10
push 0xf01ff
lea ecx, [ebp + 0xc]
call fcn.004071c0
push eax
lea ecx, [ebp + 8]
call fcn.004071c0
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4015e8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00406900
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.00406900
mov eax, dword [ebp - 0x24]
jmp 0x4017d6
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 0x14]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x40166e
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00406900
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.00406900
mov eax, dword [ebp - 0x28]
jmp 0x4017d6
mov dword [ebp - 0x18], 0
lea ecx, [ebp + 0x1c]
call fcn.00407260
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
push ecx
push 1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x4016f6
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00406900
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.00406900
mov eax, dword [ebp - 0x2c]
jmp 0x4017d6
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x401779
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x420
je 0x401779
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00406900
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.00406900
mov eax, dword [ebp - 0x30]
jmp 0x4017d6
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x34], 1
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00406900
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00406900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x1c]
call fcn.00406900
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret