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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591aaf
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 0x5b211c
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push 1
push 0x45e330
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x459fbe
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.0045e580
add esp, 0x28
cmp byte [0x62e4f8], 0
je 0x45a58f
cmp byte [0x62e808], 0
je 0x45a58f
push 0x62e4f8
call fcn.00482200
add esp, 4
lea eax, [ebp - 0x388]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x45a00d
push 0x100
lea eax, [ebp - 0x1f8]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
push 0x5b22c0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.0046b280
push str.SteamService.dll
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.0046b280
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.0045a880
mov ecx, edi
call fcn.0045cc80
push 0x446670
push 2
mov bl, al
mov dword [ebp - 4], 0xffffffff
push 4
lea eax, [ebp - 0x20]
push eax
call fcn.0056b6a3
test bl, bl
jne 0x45a099
push 0
push 0
lea ecx, [ebp - 0x70]
call fcn.0045a9c0
push str.Could_not_load_version_info_n
lea ecx, [eax + 0x20]
push ecx
lea ecx, [eax + 8]
push ecx
jmp 0x45a59f
push 0x62e4f8
lea eax, [ebp - 0xd0]
push str._s_bin_secure_desktop_capture.exe
push eax
call fcn.0046a960
push 0x62e808
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 2
push str._s_secure_desktop_capture.exe
push eax
call fcn.0046a960
add esp, 0x18
cmp byte [ebp - 0xb1], 0
mov byte [ebp - 4], 3
jge 0x45a0ed
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x45a0f3
mov eax, 0x594544
jmp 0x45a0f3
lea eax, [ebp - 0xc0]
cmp byte [ebp - 0xc1], 0
jge 0x45a10d
mov ecx, dword [ebp - 0xd0]
test ecx, ecx
jne 0x45a113
mov ecx, 0x594544
jmp 0x45a113
lea ecx, [ebp - 0xd0]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b560
call fcn.00476550
test al, al
mov esi, 0x5b234c
mov ecx, esi
lea eax, [ebp - 0xb0]
mov ebx, 0x594544
cmove ecx, ebx
push ecx
push 0x62e4f8
push str._s_bin_steamxboxutil_s.exe
push eax
call fcn.0046a960
mov byte [ebp - 4], 4
call fcn.00476550
test al, al
lea eax, [ebp - 0xa0]
cmove esi, ebx
push esi
push 0x62e808
push str._s_steamxboxutil_s.exe
push eax
call fcn.0046a960
add esp, 0x20
cmp byte [ebp - 0x91], 0
mov byte [ebp - 4], 5
jge 0x45a190
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x45a196
mov eax, ebx
jmp 0x45a196
lea eax, [ebp - 0xa0]
cmp byte [ebp - 0xa1], 0
jge 0x45a1b0
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
jne 0x45a1b6
mov ecx, 0x594544
jmp 0x45a1b6
lea ecx, [ebp - 0xb0]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b560
push 0x62e4f8
lea eax, [ebp - 0x90]
push str._s_bindrivers.exe
push eax
call fcn.0046a960
push 0x62e808
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 6
push str._sdrivers.exe
push eax
call fcn.0046a960
add esp, 0x18
cmp byte [ebp - 0x71], 0
mov byte [ebp - 4], 7
jge 0x45a20b
mov esi, dword [ebp - 0x80]
test esi, esi
jne 0x45a20e
mov esi, 0x594544
jmp 0x45a20e
lea esi, [ebp - 0x80]
cmp byte [ebp - 0x81], 0
jge 0x45a228
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x45a22e
mov eax, 0x594544
jmp 0x45a22e
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.0045b560
test al, al
je 0x45a2ea
cmp byte [ebp - 0xd], 0
je 0x45a2ea
push 0
push 0
push 0
lea ecx, [ebp - 0x70]
call fcn.0046b5d0
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.00471c70
add esp, 0x10
test al, al
je 0x45a2de
mov esi, dword [ebp - 0x5c]
test esi, esi
js 0x45a2de
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x14], 0x4034b50
cmp esi, 4
jb 0x45a2db
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
cmp eax, dword [ecx]
je 0x45a2a6
dec esi
inc edi
cmp esi, 4
jae 0x45a294
jmp 0x45a2db
lea ecx, [ebp - 0x24]
call fcn.00466c30
push 0
push esi
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.004677a0
test al, al
je 0x45a2d3
push 0
push 0
push 0x62e808
lea ecx, [ebp - 0x24]
call fcn.00466d70
lea ecx, [ebp - 0x24]
call fcn.00466ca0
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.0046a600
push 0x62e4f8
lea eax, [ebp - 0x38]
push str._s_binSteamService.dll
push eax
call fcn.0046a960
push 0x62e808
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xa
push str._sSteamService.dll
push eax
call fcn.0046a960
add esp, 0x18
cmp byte [ebp - 0x39], 0
mov byte [ebp - 4], 0xb
jge 0x45a32f
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x45a332
mov eax, 0x594544
jmp 0x45a332
lea eax, [ebp - 0x48]
cmp byte [ebp - 0x29], 0
jge 0x45a346
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x45a349
mov ecx, 0x594544
jmp 0x45a349
lea ecx, [ebp - 0x38]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b560
test al, al
jne 0x45a364
mov ebx, 1
jmp 0x45a475
cmp byte [ebp - 0x39], 0
jge 0x45a378
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x45a37b
mov eax, 0x594544
jmp 0x45a37b
lea eax, [ebp - 0x48]
push eax
call fcn.00482100
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45a429
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 0x45a3d0
test eax, eax
je 0x45a3d0
cmp byte [edi + 0x214], 0
jne 0x45a416
call ecx
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x45a416
cmp byte [ebp - 0x29], 0
jge 0x45a3e4
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x45a3e7
mov esi, 0x594544
jmp 0x45a3e7
lea esi, [ebp - 0x38]
push 0
push 0
lea ecx, [ebp - 0x70]
call fcn.0045a9c0
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.0045e580
add esp, 0x2c
push ebx
mov dword [edi + 0x210], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x45a472
cmp byte [ebp - 0x29], 0
jge 0x45a43d
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x45a440
mov esi, 0x594544
jmp 0x45a440
lea esi, [ebp - 0x38]
push 0
push 0
lea ecx, [ebp - 0xf8]
call fcn.0045a9c0
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.0045e580
add esp, 0x2c
mov ebx, dword [ebp - 0x28]
cmp byte [ebp - 0x39], 0
mov byte [ebp - 4], 0xc
jge 0x45a492
call fcn.0047f9f0
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 0x45a4af
call fcn.0047f9f0
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 0x45a4cc
call fcn.0047f9f0
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 0x45a4ef
call fcn.0047f9f0
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 0x45a512
call fcn.0047f9f0
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 0x45a535
call fcn.0047f9f0
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 0x45a558
call fcn.0047f9f0
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 0x45a57c
call fcn.0047f9f0
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.0045e580
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