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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590ddc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], 1
push 0x5b139c
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push 1
push 0x45e260
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x45a0d9
push str.SteamService:_failed_to_set_SetConsoleCtrlHandler_n
lea eax, [ebp - 0xd8]
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.0045e4c0
add esp, 0x20
cmp byte [0x62d3f8], 0
je 0x45a692
cmp byte [0x62d708], 0
je 0x45a692
push 0x62d3f8
call fcn.00482a80
add esp, 4
lea eax, [ebp - 0x398]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x45a128
push 0x100
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
push 0x5b1540
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.0046b5e0
push str.SteamService.dll
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.0046b5e0
sub esp, 0x10
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
mov ecx, esp
lea edx, [ebp - 0x20]
push eax
push edx
call fcn.0045a7f0
mov ecx, edi
call fcn.0045cc70
push 0x4465d0
push 2
mov bl, al
mov dword [ebp - 4], 0xffffffff
push 4
lea eax, [ebp - 0x20]
push eax
call fcn.0056c035
test bl, bl
jne 0x45a1ab
lea ecx, [ebp - 0xd8]
call fcn.0045aa50
push str.Could_not_load_version_info_n
jmp 0x45a69d
push 0x62d3f8
lea eax, [ebp - 0xa8]
push str._s_bin_secure_desktop_capture.exe
push eax
call fcn.0046aaa0
push 0x62d708
lea eax, [ebp - 0x98]
mov dword [ebp - 4], 2
push str._s_secure_desktop_capture.exe
push eax
call fcn.0046aaa0
add esp, 0x18
cmp byte [ebp - 0x89], 0
mov byte [ebp - 4], 3
jge 0x45a1ff
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x45a205
mov eax, 0x593544
jmp 0x45a205
lea eax, [ebp - 0x98]
cmp byte [ebp - 0x99], 0
jge 0x45a21f
mov ecx, dword [ebp - 0xa8]
test ecx, ecx
jne 0x45a225
mov ecx, 0x593544
jmp 0x45a225
lea ecx, [ebp - 0xa8]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b640
call fcn.00476d00
test al, al
mov esi, 0x5b15cc
mov ecx, esi
lea eax, [ebp - 0x88]
mov ebx, 0x593544
cmove ecx, ebx
push ecx
push 0x62d3f8
push str._s_bin_steamxboxutil_s.exe
push eax
call fcn.0046aaa0
mov byte [ebp - 4], 4
call fcn.00476d00
test al, al
lea eax, [ebp - 0x78]
cmove esi, ebx
push esi
push 0x62d708
push str._s_steamxboxutil_s.exe
push eax
call fcn.0046aaa0
add esp, 0x20
cmp byte [ebp - 0x69], 0
mov byte [ebp - 4], 5
jge 0x45a299
mov eax, dword [ebp - 0x78]
test eax, eax
jne 0x45a29c
mov eax, ebx
jmp 0x45a29c
lea eax, [ebp - 0x78]
cmp byte [ebp - 0x79], 0
jge 0x45a2b3
mov ecx, dword [ebp - 0x88]
test ecx, ecx
jne 0x45a2b9
mov ecx, 0x593544
jmp 0x45a2b9
lea ecx, [ebp - 0x88]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b640
push 0x62d3f8
lea eax, [ebp - 0x68]
push str._s_bindrivers.exe
push eax
call fcn.0046aaa0
push 0x62d708
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push str._sdrivers.exe
push eax
call fcn.0046aaa0
add esp, 0x18
cmp byte [ebp - 0x49], 0
mov byte [ebp - 4], 7
jge 0x45a30b
mov esi, dword [ebp - 0x58]
test esi, esi
jne 0x45a30e
mov esi, 0x593544
jmp 0x45a30e
lea esi, [ebp - 0x58]
cmp byte [ebp - 0x59], 0
jge 0x45a322
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x45a325
mov eax, 0x593544
jmp 0x45a325
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push ecx
push 0
push esi
push eax
mov ecx, edi
call fcn.0045b640
test al, al
je 0x45a411
cmp byte [ebp - 0xd], 0
je 0x45a411
push 0
push 0
push 0
lea ecx, [ebp - 0xcc]
call fcn.0046b940
push 0
push 0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 8
push eax
push ecx
mov eax, esp
mov dword [eax], esi
call fcn.00472550
add esp, 0x10
test al, al
je 0x45a3e1
mov esi, dword [ebp - 0xbc]
test esi, esi
js 0x45a3e1
mov edi, dword [ebp - 0xcc]
mov dword [ebp - 0x14], 0x4034b50
cmp esi, 4
jb 0x45a3de
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
cmp eax, dword [ecx]
je 0x45a3a9
dec esi
inc edi
cmp esi, 4
jae 0x45a397
jmp 0x45a3de
lea ecx, [ebp - 0x24]
call fcn.00467010
push 0
push esi
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.00467be0
test al, al
je 0x45a3d6
push 0
push 0
push 0x62d708
lea ecx, [ebp - 0x24]
call fcn.00467150
lea ecx, [ebp - 0x24]
call fcn.00467080
mov edi, dword [ebp - 0x18]
cmp dword [ebp - 0xc4], 0
mov byte [ebp - 4], 0xa
jl 0x45a40d
cmp dword [ebp - 0xcc], 0
je 0x45a40d
call fcn.00480220
push 0
push dword [ebp - 0xcc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov byte [ebp - 4], 7
push 0x62d3f8
lea eax, [ebp - 0x38]
push str._s_binSteamService.dll
push eax
call fcn.0046aaa0
push 0x62d708
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xb
push str._sSteamService.dll
push eax
call fcn.0046aaa0
add esp, 0x18
cmp byte [ebp - 0x39], 0
mov byte [ebp - 4], 0xc
jge 0x45a456
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x45a459
mov eax, 0x593544
jmp 0x45a459
lea eax, [ebp - 0x48]
cmp byte [ebp - 0x29], 0
jge 0x45a46d
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x45a470
mov ecx, 0x593544
jmp 0x45a470
lea ecx, [ebp - 0x38]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b640
test al, al
jne 0x45a48b
mov ebx, 1
jmp 0x45a587
cmp byte [ebp - 0x39], 0
jge 0x45a49f
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x45a4a2
mov eax, 0x593544
jmp 0x45a4a2
lea eax, [ebp - 0x48]
push eax
call fcn.00482980
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45a547
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 0x45a4f7
test eax, eax
je 0x45a4f7
cmp byte [edi + 0x214], 0
jne 0x45a534
call ecx
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x45a534
cmp byte [ebp - 0x29], 0
jge 0x45a50b
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x45a50e
mov esi, 0x593544
jmp 0x45a50e
lea esi, [ebp - 0x38]
lea ecx, [ebp - 0xd8]
call fcn.0045aa50
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.0045e4c0
add esp, 0x24
push ebx
mov dword [edi + 0x210], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x45a584
cmp byte [ebp - 0x29], 0
jge 0x45a55b
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x45a55e
mov esi, 0x593544
jmp 0x45a55e
lea esi, [ebp - 0x38]
lea ecx, [ebp - 0x108]
call fcn.0045aa50
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.0045e4c0
add esp, 0x24
mov ebx, dword [ebp - 0x28]
cmp byte [ebp - 0x39], 0
mov byte [ebp - 4], 0xd
jge 0x45a5a4
call fcn.00480220
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], 0xe
jge 0x45a5c1
call fcn.00480220
push 0
push dword [ebp - 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x49], 0
mov byte [ebp - 4], 0xf
jge 0x45a5de
call fcn.00480220
push 0
push dword [ebp - 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x59], 0
mov byte [ebp - 4], 0x10
jge 0x45a5fb
call fcn.00480220
push 0
push dword [ebp - 0x68]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x69], 0
mov byte [ebp - 4], 0x11
jge 0x45a618
call fcn.00480220
push 0
push dword [ebp - 0x78]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x79], 0
mov byte [ebp - 4], 0x12
jge 0x45a638
call fcn.00480220
push 0
push dword [ebp - 0x88]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x89], 0
mov byte [ebp - 4], 0x13
jge 0x45a65b
call fcn.00480220
push 0
push dword [ebp - 0x98]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x99], 0
mov dword [ebp - 4], 0x14
jge 0x45a67f
call fcn.00480220
push 0
push dword [ebp - 0xa8]
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
lea eax, [ebp - 0xd8]
push str.Could_not_get_path_to_current_executable_n
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.0045e4c0
mov ecx, dword [ebp - 0xc]
add esp, 0x20
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret