Function at 0x45a080
Capabilities:
Get hostname
Initialize winsock library
Set console window title

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591ebf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x37c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], 1
push 0x5b1d44
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push 1
push 0x45e660
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x45a0ee
push str.SteamService:_failed_to_set_SetConsoleCtrlHandler_n
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.0045e970
add esp, 0x28
cmp byte [0x62e4c0], 0
je 0x45a6bf
cmp byte [0x62e7d0], 0
je 0x45a6bf
push 0x62e4c0
call fcn.00481b50
add esp, 4
lea eax, [ebp - 0x388]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x45a13d
push 0x100
lea eax, [ebp - 0x1f8]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
push 0x5b1ee8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.0046b2a0
push str.SteamService.dll
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.0046b2a0
sub esp, 0x14
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
mov ecx, esp
lea edx, [ebp - 0x20]
push eax
push edx
call fcn.0045a9b0
mov ecx, edi
call fcn.0045cdb0
push 0x4466b0
push 2
mov bl, al
mov dword [ebp - 4], 0xffffffff
push 4
lea eax, [ebp - 0x20]
push eax
call fcn.0056b983
test bl, bl
jne 0x45a1c9
push 0
push 0
lea ecx, [ebp - 0x70]
call fcn.0045aaf0
push str.Could_not_load_version_info_n
lea ecx, [eax + 0x20]
push ecx
lea ecx, [eax + 8]
push ecx
jmp 0x45a6cf
push 0x62e4c0
lea eax, [ebp - 0xd0]
push str._s_bin_secure_desktop_capture.exe
push eax
call fcn.0046a980
push 0x62e7d0
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 2
push str._s_secure_desktop_capture.exe
push eax
call fcn.0046a980
add esp, 0x18
cmp byte [ebp - 0xb1], 0
mov byte [ebp - 4], 3
jge 0x45a21d
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x45a223
mov eax, 0x594544
jmp 0x45a223
lea eax, [ebp - 0xc0]
cmp byte [ebp - 0xc1], 0
jge 0x45a23d
mov ecx, dword [ebp - 0xd0]
test ecx, ecx
jne 0x45a243
mov ecx, 0x594544
jmp 0x45a243
lea ecx, [ebp - 0xd0]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b690
call fcn.004764c0
test al, al
mov esi, 0x5b1f74
mov ecx, esi
lea eax, [ebp - 0xb0]
mov ebx, 0x594544
cmove ecx, ebx
push ecx
push 0x62e4c0
push str._s_bin_steamxboxutil_s.exe
push eax
call fcn.0046a980
mov byte [ebp - 4], 4
call fcn.004764c0
test al, al
lea eax, [ebp - 0xa0]
cmove esi, ebx
push esi
push 0x62e7d0
push str._s_steamxboxutil_s.exe
push eax
call fcn.0046a980
add esp, 0x20
cmp byte [ebp - 0x91], 0
mov byte [ebp - 4], 5
jge 0x45a2c0
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x45a2c6
mov eax, ebx
jmp 0x45a2c6
lea eax, [ebp - 0xa0]
cmp byte [ebp - 0xa1], 0
jge 0x45a2e0
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
jne 0x45a2e6
mov ecx, 0x594544
jmp 0x45a2e6
lea ecx, [ebp - 0xb0]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b690
push 0x62e4c0
lea eax, [ebp - 0x90]
push str._s_bindrivers.exe
push eax
call fcn.0046a980
push 0x62e7d0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 6
push str._sdrivers.exe
push eax
call fcn.0046a980
add esp, 0x18
cmp byte [ebp - 0x71], 0
mov byte [ebp - 4], 7
jge 0x45a33b
mov esi, dword [ebp - 0x80]
test esi, esi
jne 0x45a33e
mov esi, 0x594544
jmp 0x45a33e
lea esi, [ebp - 0x80]
cmp byte [ebp - 0x81], 0
jge 0x45a358
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x45a35e
mov eax, 0x594544
jmp 0x45a35e
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push ecx
push 0
push esi
push eax
mov ecx, edi
call fcn.0045b690
test al, al
je 0x45a41a
cmp byte [ebp - 0xd], 0
je 0x45a41a
push 0
push 0
push 0
lea ecx, [ebp - 0x70]
call fcn.0046b5f0
push 0
push 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
push ecx
mov eax, esp
mov dword [eax], esi
call fcn.00471bd0
add esp, 0x10
test al, al
je 0x45a40e
mov esi, dword [ebp - 0x5c]
test esi, esi
js 0x45a40e
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x14], 0x4034b50
cmp esi, 4
jb 0x45a40b
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
cmp eax, dword [ecx]
je 0x45a3d6
dec esi
inc edi
cmp esi, 4
jae 0x45a3c4
jmp 0x45a40b
lea ecx, [ebp - 0x24]
call fcn.00466d60
push 0
push esi
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.004678d0
test al, al
je 0x45a403
push 0
push 0
push 0x62e7d0
lea ecx, [ebp - 0x24]
call fcn.00466ea0
lea ecx, [ebp - 0x24]
call fcn.00466dd0
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.0046a620
push 0x62e4c0
lea eax, [ebp - 0x38]
push str._s_binSteamService.dll
push eax
call fcn.0046a980
push 0x62e7d0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xa
push str._sSteamService.dll
push eax
call fcn.0046a980
add esp, 0x18
cmp byte [ebp - 0x39], 0
mov byte [ebp - 4], 0xb
jge 0x45a45f
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x45a462
mov eax, 0x594544
jmp 0x45a462
lea eax, [ebp - 0x48]
cmp byte [ebp - 0x29], 0
jge 0x45a476
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x45a479
mov ecx, 0x594544
jmp 0x45a479
lea ecx, [ebp - 0x38]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b690
test al, al
jne 0x45a494
mov ebx, 1
jmp 0x45a5a5
cmp byte [ebp - 0x39], 0
jge 0x45a4a8
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x45a4ab
mov eax, 0x594544
jmp 0x45a4ab
lea eax, [ebp - 0x48]
push eax
call fcn.00481a50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45a559
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SteamService_RunMainLoop
push ebx
call esi
push str.SteamService_Stop
push ebx
mov dword [edi + 0x20c], eax
call esi
mov ecx, dword [edi + 0x20c]
mov dword [edi + 0x210], eax
test ecx, ecx
je 0x45a500
test eax, eax
je 0x45a500
cmp byte [edi + 0x214], 0
jne 0x45a546
call ecx
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x45a546
cmp byte [ebp - 0x29], 0
jge 0x45a514
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x45a517
mov esi, 0x594544
jmp 0x45a517
lea esi, [ebp - 0x38]
push 0
push 0
lea ecx, [ebp - 0x70]
call fcn.0045aaf0
push esi
push str.SteamService:_Failed_to_init__s_n
lea ecx, [eax + 0x20]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.0045e970
add esp, 0x2c
push ebx
mov dword [edi + 0x210], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x45a5a2
cmp byte [ebp - 0x29], 0
jge 0x45a56d
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x45a570
mov esi, 0x594544
jmp 0x45a570
lea esi, [ebp - 0x38]
push 0
push 0
lea ecx, [ebp - 0xf8]
call fcn.0045aaf0
push esi
push str.SteamService:_Failed_to_load__s._n
lea ecx, [eax + 0x20]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.0045e970
add esp, 0x2c
mov ebx, dword [ebp - 0x28]
cmp byte [ebp - 0x39], 0
mov byte [ebp - 4], 0xc
jge 0x45a5c2
call fcn.0047f4e0
push 0
push dword [ebp - 0x48]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x29], 0
mov byte [ebp - 4], 0xd
jge 0x45a5df
call fcn.0047f4e0
push 0
push dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x71], 0
mov byte [ebp - 4], 0xe
jge 0x45a5fc
call fcn.0047f4e0
push 0
push dword [ebp - 0x80]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x81], 0
mov byte [ebp - 4], 0xf
jge 0x45a61f
call fcn.0047f4e0
push 0
push dword [ebp - 0x90]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x91], 0
mov byte [ebp - 4], 0x10
jge 0x45a642
call fcn.0047f4e0
push 0
push dword [ebp - 0xa0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0xa1], 0
mov byte [ebp - 4], 0x11
jge 0x45a665
call fcn.0047f4e0
push 0
push dword [ebp - 0xb0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0xb1], 0
mov byte [ebp - 4], 0x12
jge 0x45a688
call fcn.0047f4e0
push 0
push dword [ebp - 0xc0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0xc1], 0
mov dword [ebp - 4], 0x13
jge 0x45a6ac
call fcn.0047f4e0
push 0
push dword [ebp - 0xd0]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Could_not_get_path_to_current_executable_n
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.0045e970
mov ecx, dword [ebp - 0xc]
add esp, 0x28
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret