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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59002d
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 0x45f9b4
push str.m_hServiceControlManager
push 0x11e
push str.c:_buildslave_steam_rel_client_win32_build_srccommonwin32service.cpp
call fcn.004767e0
add esp, 0xc
test al, al
jne 0x45f9b4
int3
movzx esi, byte [ebp + 0x14]
mov edi, 0x592544
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 0x45fb4c
test ecx, ecx
cmovne eax, ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0
call fcn.00459840
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.00459840
test esi, esi
mov dword [ebp - 0x28], 0
mov ecx, 0x592544
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.00459840
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 0x45fa99
push dword [ebp - 0x2c]
call fcn.0056acf4
add esp, 4
cmp byte [ebp - 0x1f], 0
je 0x45faaa
push dword [ebp - 0x28]
call fcn.0056acf4
add esp, 4
cmp byte [ebp - 0x1e], 0
je 0x45fabb
push dword [ebp - 0x24]
call fcn.0056acf4
add esp, 4
cmp byte [ebp - 0x30], 0
je 0x45facc
push dword [ebp - 0x3c]
call fcn.0056acf4
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x45fadd
push dword [ebp - 0x38]
call fcn.0056acf4
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x45faee
push dword [ebp - 0x34]
call fcn.0056acf4
add esp, 4
cmp byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
je 0x45fb06
push dword [ebp - 0x4c]
call fcn.0056acf4
add esp, 4
cmp byte [ebp - 0x3f], 0
je 0x45fb17
push dword [ebp - 0x48]
call fcn.0056acf4
add esp, 4
cmp byte [ebp - 0x3e], 0
je 0x45fb28
push dword [ebp - 0x44]
call fcn.0056acf4
add esp, 4
mov edi, 0x592544
cmp dword [ebx + 4], 0
jne 0x45fbbd
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.00459840
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 0x45fb96
push dword [ebp - 0x4c]
call fcn.0056acf4
add esp, 4
cmp byte [ebp - 0x3f], 0
je 0x45fba7
push dword [ebp - 0x48]
call fcn.0056acf4
add esp, 4
cmp byte [ebp - 0x3e], 0
je 0x45fb2d
push dword [ebp - 0x44]
call fcn.0056acf4
add esp, 4
jmp 0x45fb2d
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.0046d410
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056aceb
push 0
push esi
push eax
push edi
mov dword [ebp + 0xc], eax
call fcn.0046d410
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 0x45fc70
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.0056acf4
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