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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590eed
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 0x460214
push str.m_hServiceControlManager
push 0x11e
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommonwin32service.cpp
call fcn.004775a0
add esp, 0xc
test al, al
jne 0x460214
int3
movzx esi, byte [ebp + 0x14]
mov edi, 0x593544
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 0x4603ac
test ecx, ecx
cmovne eax, ecx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0
call fcn.004598f0
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.004598f0
test esi, esi
mov dword [ebp - 0x28], 0
mov ecx, 0x593544
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.004598f0
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 0x4602f9
push dword [ebp - 0x2c]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x1f], 0
je 0x46030a
push dword [ebp - 0x28]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x1e], 0
je 0x46031b
push dword [ebp - 0x24]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x30], 0
je 0x46032c
push dword [ebp - 0x3c]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x46033d
push dword [ebp - 0x38]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x46034e
push dword [ebp - 0x34]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
je 0x460366
push dword [ebp - 0x4c]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x3f], 0
je 0x460377
push dword [ebp - 0x48]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x3e], 0
je 0x460388
push dword [ebp - 0x44]
call fcn.0056bbd4
add esp, 4
mov edi, 0x593544
cmp dword [ebx + 4], 0
jne 0x46041d
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.004598f0
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 0x4603f6
push dword [ebp - 0x4c]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x3f], 0
je 0x460407
push dword [ebp - 0x48]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x3e], 0
je 0x46038d
push dword [ebp - 0x44]
call fcn.0056bbd4
add esp, 4
jmp 0x46038d
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.0046de50
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056bbcb
push 0
push esi
push eax
push edi
mov dword [ebp + 0xc], eax
call fcn.0046de50
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 0x4604d0
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.0056bbd4
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