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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ff7c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x390
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], 1
push 0x5b0284
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push 1
push 0x45e0f0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x45a039
push str.SteamService:_failed_to_set_SetConsoleCtrlHandler_n
lea eax, [ebp - 0xdc]
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.0045e350
add esp, 0x20
cmp byte [0x62c3d8], 0
sete al
test al, al
je 0x45a07d
push str.Could_not_get_path_to_current_executable_n
lea eax, [ebp - 0xdc]
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.0045e350
add esp, 0x20
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x62c6e8], 0
sete al
test al, al
jne 0x45a047
push 0x62c3d8
call fcn.00481be0
add esp, 4
lea eax, [ebp - 0x39c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x45a0c0
push 0x100
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
push 0x5b0428
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.0046ad50
push str.SteamService.dll
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.0046ad50
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.0045a8d0
mov ecx, edi
call fcn.0045cb90
push 0x446660
push 2
mov bl, al
mov dword [ebp - 4], 0xffffffff
push 4
lea eax, [ebp - 0x20]
push eax
call fcn.0056b154
test bl, bl
jne 0x45a143
lea ecx, [ebp - 0xdc]
call fcn.0045aa00
push str.Could_not_load_version_info_n
jmp 0x45a052
push 0x62c3d8
lea eax, [ebp - 0xac]
push str._s_bin_secure_desktop_capture.exe
push eax
call fcn.0046a380
push 0x62c6e8
lea eax, [ebp - 0x9c]
mov dword [ebp - 4], 2
push str._s_secure_desktop_capture.exe
push eax
call fcn.0046a380
add esp, 0x18
cmp byte [ebp - 0x8d], 0
mov byte [ebp - 4], 3
jge 0x45a197
mov eax, dword [ebp - 0x9c]
test eax, eax
jne 0x45a19d
mov eax, 0x592544
jmp 0x45a19d
lea eax, [ebp - 0x9c]
cmp byte [ebp - 0x9d], 0
jge 0x45a1b7
mov ecx, dword [ebp - 0xac]
test ecx, ecx
jne 0x45a1bd
mov ecx, 0x592544
jmp 0x45a1bd
lea ecx, [ebp - 0xac]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b560
call fcn.00475f40
test al, al
mov esi, 0x5b04b4
mov ecx, esi
lea eax, [ebp - 0x8c]
mov ebx, 0x592544
cmove ecx, ebx
push ecx
push 0x62c3d8
push str._s_bin_steamxboxutil_s.exe
push eax
call fcn.0046a380
mov byte [ebp - 4], 4
call fcn.00475f40
test al, al
lea eax, [ebp - 0x7c]
cmove esi, ebx
push esi
push 0x62c6e8
push str._s_steamxboxutil_s.exe
push eax
call fcn.0046a380
add esp, 0x20
cmp byte [ebp - 0x6d], 0
mov byte [ebp - 4], 5
jge 0x45a231
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x45a234
mov eax, ebx
jmp 0x45a234
lea eax, [ebp - 0x7c]
cmp byte [ebp - 0x7d], 0
jge 0x45a24b
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
jne 0x45a251
mov ecx, 0x592544
jmp 0x45a251
lea ecx, [ebp - 0x8c]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b560
push 0x62c3d8
lea eax, [ebp - 0x6c]
push str._s_bindrivers.exe
push eax
call fcn.0046a380
push 0x62c6e8
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 6
push str._sdrivers.exe
push eax
call fcn.0046a380
add esp, 0x18
cmp byte [ebp - 0x4d], 0
mov byte [ebp - 4], 7
jge 0x45a2a3
mov esi, dword [ebp - 0x5c]
test esi, esi
jne 0x45a2a6
mov esi, 0x592544
jmp 0x45a2a6
lea esi, [ebp - 0x5c]
cmp byte [ebp - 0x5d], 0
jge 0x45a2ba
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x45a2bd
mov eax, 0x592544
jmp 0x45a2bd
lea eax, [ebp - 0x6c]
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 0x45a389
cmp byte [ebp - 0xd], 0
je 0x45a389
push 0
push 0
push 0
lea ecx, [ebp - 0xd4]
call fcn.0046b0a0
push 0
push 0
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 8
push eax
push ecx
mov eax, esp
mov dword [eax], esi
call fcn.004715c0
add esp, 0x10
test al, al
je 0x45a37a
mov esi, dword [ebp - 0xc0]
test esi, esi
js 0x45a37a
mov edi, dword [ebp - 0xd0]
mov dword [ebp - 0x14], 0x4034b50
cmp esi, 4
jb 0x45a377
nop
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
cmp eax, dword [ecx]
je 0x45a342
dec esi
inc edi
cmp esi, 4
jae 0x45a330
jmp 0x45a377
lea ecx, [ebp - 0x24]
call fcn.004666d0
push 0
push esi
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.00467230
test al, al
je 0x45a36f
push 0
push 0
push 0x62c6e8
lea ecx, [ebp - 0x24]
call fcn.004667f0
lea ecx, [ebp - 0x24]
call fcn.00466740
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 7
call fcn.0046a080
push 0x62c3d8
lea eax, [ebp - 0x38]
push str._s_binSteamService.dll
push eax
call fcn.0046a380
push 0x62c6e8
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xa
push str._sSteamService.dll
push eax
call fcn.0046a380
add esp, 0x18
cmp byte [ebp - 0x39], 0
mov byte [ebp - 4], 0xb
jge 0x45a3ce
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x45a3d1
mov eax, 0x592544
jmp 0x45a3d1
lea eax, [ebp - 0x48]
cmp byte [ebp - 0x29], 0
jge 0x45a3e5
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x45a3e8
mov ecx, 0x592544
jmp 0x45a3e8
lea ecx, [ebp - 0x38]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b560
test al, al
jne 0x45a403
mov ebx, 1
jmp 0x45a4ff
cmp byte [ebp - 0x39], 0
jge 0x45a417
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x45a41a
mov eax, 0x592544
jmp 0x45a41a
lea eax, [ebp - 0x48]
push eax
call fcn.00481ae0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45a4bf
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 0x45a46f
test eax, eax
je 0x45a46f
cmp byte [edi + 0x214], 0
jne 0x45a4ac
call ecx
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x45a4ac
cmp byte [ebp - 0x29], 0
jge 0x45a483
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x45a486
mov esi, 0x592544
jmp 0x45a486
lea esi, [ebp - 0x38]
lea ecx, [ebp - 0xdc]
call fcn.0045aa00
push esi
push str.SteamService:_Failed_to_init__s_n
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.0045e350
add esp, 0x24
push ebx
mov dword [edi + 0x210], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x45a4fc
cmp byte [ebp - 0x29], 0
jge 0x45a4d3
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x45a4d6
mov esi, 0x592544
jmp 0x45a4d6
lea esi, [ebp - 0x38]
lea ecx, [ebp - 0x10c]
call fcn.0045aa00
push esi
push str.SteamService:_Failed_to_load__s._n
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.0045e350
add esp, 0x24
mov ebx, dword [ebp - 0x28]
cmp byte [ebp - 0x39], 0
mov byte [ebp - 4], 0xc
jge 0x45a51c
call fcn.0047f350
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 0x45a539
call fcn.0047f350
push 0
push dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x4d], 0
mov byte [ebp - 4], 0xe
jge 0x45a556
call fcn.0047f350
push 0
push dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x5d], 0
mov byte [ebp - 4], 0xf
jge 0x45a573
call fcn.0047f350
push 0
push dword [ebp - 0x6c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x6d], 0
mov byte [ebp - 4], 0x10
jge 0x45a590
call fcn.0047f350
push 0
push dword [ebp - 0x7c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x7d], 0
mov byte [ebp - 4], 0x11
jge 0x45a5b0
call fcn.0047f350
push 0
push dword [ebp - 0x8c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x8d], 0
mov byte [ebp - 4], 0x12
jge 0x45a5d3
call fcn.0047f350
push 0
push dword [ebp - 0x9c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x9d], 0
mov dword [ebp - 4], 0x13
jge 0x45a5f7
call fcn.0047f350
push 0
push dword [ebp - 0xac]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret