Function at 0x460410
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x591efd
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x460451
push str.m_hServiceControlManager
push 0x11e
push str.c:_buildslave_steam_rel_client_win32_build_srccommonwin32service.cpp
call fcn.00476e80
add esp, 0xc
test al, al
jne 0x460451
int3
movzx esi, byte [ebp + 0x14]
mov ebx, 0x59934c
mov ecx, dword [ebp + 0xc]
xor esi, 1
add esi, 2
mov dword [ebp - 0x3c], 0
cmp dword [edi + 4], 0
mov eax, ebx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x4000000
jne 0x460578
test ecx, ecx
cmovne eax, ecx
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
mov eax, ebx
test ecx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
cmovne eax, ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x4000000
mov dword [ebp - 0x30], eax
mov eax, ebx
mov dword [ebp - 0x1c], 0
cmovne eax, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x4000000
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00459d10
push eax
push 1
push esi
push 0x10
push 0xf01ff
lea ecx, [ebp - 0x30]
call fcn.00459d10
push eax
lea ecx, [ebp - 0x20]
call fcn.00459d10
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp byte [ebp - 0x14], 0
mov dword [edi + 4], eax
je 0x460521
push dword [ebp - 0x20]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0x13], 0
je 0x460532
push dword [ebp - 0x1c]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0x12], 0
je 0x460543
push dword [ebp - 0x18]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0x24], 0
je 0x460554
push dword [ebp - 0x30]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0x23], 0
je 0x460565
push dword [ebp - 0x2c]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0x22], 0
je 0x4605aa
push dword [ebp - 0x28]
call fcn.0056b4c4
add esp, 4
jmp 0x4605aa
test ecx, ecx
cmovne eax, ecx
mov dword [ebp - 0x40], eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 3
call fcn.00459d10
push eax
push 1
push esi
push 0x10
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
cmp byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
je 0x4605c2
push dword [ebp - 0x40]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0x33], 0
je 0x4605d3
push dword [ebp - 0x3c]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0x32], 0
je 0x4605e4
push dword [ebp - 0x38]
call fcn.0056b4c4
add esp, 4
cmp dword [edi + 4], 0
jne 0x4605ff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [ebp - 0x3c], 0
cmovne ebx, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x4000100
mov dword [ebp - 0x40], ebx
push 4
push 0
push 0
push ebx
mov dword [ebp - 4], 4
call fcn.0046d960
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b4bb
push 0
push esi
push eax
push ebx
mov dword [ebp + 0xc], eax
call fcn.0046d960
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
add esp, 0x24
mov dword [ebp - 0x10], esi
push eax
push 1
push dword [edi + 4]
call ebx
cmp byte [ebp + 0x14], 0
je 0x4606b2
lea eax, [ebp - 0x18]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push eax
push 2
push dword [edi + 4]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0xea60
mov dword [ebp - 0x38], 1
call ebx
push esi
call fcn.0056b4c4
mov ecx, dword [ebp - 0xc]
add esp, 4
mov al, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10