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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59128d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x14], ebx
cmp dword [ebx], 0
jne 0x460204
push str.m_hServiceControlManager
push 0x11e
push str.C:_buildworker_steam_rel_client_win32_build_srccommonwin32service.cpp
call fcn.00477620
add esp, 0xc
test al, al
jne 0x460204
int3
movzx esi, byte [ebp + 0x14]
mov edi, 0x593554
mov ecx, dword [ebp + 0xc]
xor esi, 1
add esi, 2
mov dword [ebp - 0x48], 0
cmp dword [ebx + 4], 0
mov eax, edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x4000000
jne 0x46039c
test ecx, ecx
cmovne eax, ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0
call fcn.004599c0
mov esi, dword [ebp + 8]
mov ecx, edi
test esi, esi
mov dword [ebp - 0x38], 0
mov ebx, eax
mov dword [ebp - 0x34], 0
cmovne ecx, esi
mov dword [ebp - 0x30], 0x4000000
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004599c0
test esi, esi
mov dword [ebp - 0x28], 0
mov ecx, 0x593554
mov dword [ebp - 0x24], 0
cmovne ecx, esi
mov dword [ebp - 0x20], 0x4000000
mov edi, eax
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004599c0
push 0
push 0
push 0
push 0
push 0
push ebx
mov ebx, dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push 0x10
push 0xf01ff
push edi
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp byte [ebp - 0x20], 0
mov dword [ebx + 4], eax
je 0x4602e9
push dword [ebp - 0x2c]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x1f], 0
je 0x4602fa
push dword [ebp - 0x28]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x1e], 0
je 0x46030b
push dword [ebp - 0x24]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x30], 0
je 0x46031c
push dword [ebp - 0x3c]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46032d
push dword [ebp - 0x38]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46033e
push dword [ebp - 0x34]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
je 0x460356
push dword [ebp - 0x4c]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x3f], 0
je 0x460367
push dword [ebp - 0x48]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x3e], 0
je 0x460378
push dword [ebp - 0x44]
call fcn.0056be44
add esp, 4
mov edi, 0x593554
cmp dword [ebx + 4], 0
jne 0x46040d
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
test ecx, ecx
cmovne eax, ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 3
call fcn.004599c0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push esi
push 0x10
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
cmp byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
je 0x4603e6
push dword [ebp - 0x4c]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x3f], 0
je 0x4603f7
push dword [ebp - 0x48]
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x3e], 0
je 0x46037d
push dword [ebp - 0x44]
call fcn.0056be44
add esp, 4
jmp 0x46037d
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [ebp - 0x48], 0
cmovne edi, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x4000100
mov dword [ebp - 0x4c], edi
push 4
push 0
push 0
push edi
mov dword [ebp - 4], 4
call fcn.0046ddc0
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0056be3b
push 0
push esi
push eax
push edi
mov dword [ebp + 0xc], eax
call fcn.0046ddc0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
add esp, 0x24
mov dword [ebp - 0x1c], esi
push eax
push 1
push dword [ebx + 4]
call edi
cmp byte [ebp + 0x14], 0
je 0x4604bf
lea eax, [ebp - 0x18]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
push 2
push dword [ebx + 4]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0xea60
mov dword [ebp - 0x44], 1
call edi
push esi
call fcn.0056be44
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