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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591e4f
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 0x5ccb34
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push 1
push 0x45e990
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x45a47e
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.0045eca0
add esp, 0x28
cmp byte [0x6523e0], 0
je 0x45aa41
cmp byte [0x6526f0], 0
je 0x45aa41
push 0x6523e0
call fcn.00481be0
add esp, 4
lea eax, [ebp - 0x388]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x45a4cd
push 0x100
lea eax, [ebp - 0x1f8]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
push 0x5cccd8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
call fcn.0046b590
push str.SteamService.dll
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.0046b590
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.0045ad30
mov ecx, edi
call fcn.0045d0f0
push 0x4465f0
push 2
mov bl, al
mov dword [ebp - 4], 0xffffffff
push 4
lea eax, [ebp - 0x20]
push eax
call fcn.0056b923
test bl, bl
jne 0x45a559
push 0
push 0
lea ecx, [ebp - 0x70]
call fcn.0045ae70
push str.Could_not_load_version_info_n
lea ecx, [eax + 0x20]
push ecx
lea ecx, [eax + 8]
push ecx
jmp 0x45aa51
push 0x6523e0
lea eax, [ebp - 0xd0]
push str._s_bin_secure_desktop_capture.exe
push eax
call fcn.0046ac70
push 0x6526f0
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 2
push str._s_secure_desktop_capture.exe
push eax
call fcn.0046ac70
add esp, 0x18
cmp byte [ebp - 0xb1], 0
mov byte [ebp - 4], 3
jge 0x45a5ad
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x45a5b3
mov eax, 0x59934c
jmp 0x45a5b3
lea eax, [ebp - 0xc0]
cmp byte [ebp - 0xc1], 0
jge 0x45a5cd
mov ecx, dword [ebp - 0xd0]
test ecx, ecx
jne 0x45a5d3
mov ecx, 0x59934c
jmp 0x45a5d3
lea ecx, [ebp - 0xd0]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b9e0
call fcn.00476620
test al, al
mov esi, 0x5ccd64
mov ecx, esi
lea eax, [ebp - 0xb0]
mov ebx, 0x59934c
cmove ecx, ebx
push ecx
push 0x6523e0
push str._s_bin_steamxboxutil_s.exe
push eax
call fcn.0046ac70
mov byte [ebp - 4], 4
call fcn.00476620
test al, al
lea eax, [ebp - 0xa0]
cmove esi, ebx
push esi
push 0x6526f0
push str._s_steamxboxutil_s.exe
push eax
call fcn.0046ac70
add esp, 0x20
cmp byte [ebp - 0x91], 0
mov byte [ebp - 4], 5
jge 0x45a650
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x45a656
mov eax, ebx
jmp 0x45a656
lea eax, [ebp - 0xa0]
cmp byte [ebp - 0xa1], 0
jge 0x45a670
mov ecx, dword [ebp - 0xb0]
test ecx, ecx
jne 0x45a676
mov ecx, 0x59934c
jmp 0x45a676
lea ecx, [ebp - 0xb0]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b9e0
push 0x6523e0
lea eax, [ebp - 0x90]
push str._s_bindrivers.exe
push eax
call fcn.0046ac70
push 0x6526f0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 6
push str._sdrivers.exe
push eax
call fcn.0046ac70
add esp, 0x18
cmp byte [ebp - 0x71], 0
mov byte [ebp - 4], 7
jge 0x45a6cb
mov esi, dword [ebp - 0x80]
test esi, esi
jne 0x45a6ce
mov esi, 0x59934c
jmp 0x45a6ce
lea esi, [ebp - 0x80]
cmp byte [ebp - 0x81], 0
jge 0x45a6e8
mov eax, dword [ebp - 0x90]
test eax, eax
jne 0x45a6ee
mov eax, 0x59934c
jmp 0x45a6ee
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.0045b9e0
test al, al
je 0x45a7aa
cmp byte [ebp - 0xd], 0
je 0x45a7aa
push 0
push 0
push 0
lea ecx, [ebp - 0x70]
call fcn.0046b8e0
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.00471b10
add esp, 0x10
test al, al
je 0x45a79e
mov esi, dword [ebp - 0x5c]
test esi, esi
js 0x45a79e
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x14], 0x4034b50
cmp esi, 4
jb 0x45a79b
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
cmp eax, dword [ecx]
je 0x45a766
dec esi
inc edi
cmp esi, 4
jae 0x45a754
jmp 0x45a79b
lea ecx, [ebp - 0x24]
call fcn.00467040
push 0
push esi
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.00467ba0
test al, al
je 0x45a793
push 0
push 0
push 0x6526f0
lea ecx, [ebp - 0x24]
call fcn.00467180
lea ecx, [ebp - 0x24]
call fcn.004670b0
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.0046a920
push 0x6523e0
lea eax, [ebp - 0x38]
push str._s_binSteamService.dll
push eax
call fcn.0046ac70
push 0x6526f0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xa
push str._sSteamService.dll
push eax
call fcn.0046ac70
add esp, 0x18
cmp byte [ebp - 0x39], 0
mov byte [ebp - 4], 0xb
jge 0x45a7ef
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x45a7f2
mov eax, 0x59934c
jmp 0x45a7f2
lea eax, [ebp - 0x48]
cmp byte [ebp - 0x29], 0
jge 0x45a806
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x45a809
mov ecx, 0x59934c
jmp 0x45a809
lea ecx, [ebp - 0x38]
push 0
push 0
push eax
push ecx
mov ecx, edi
call fcn.0045b9e0
test al, al
jne 0x45a824
mov ebx, 1
jmp 0x45a935
cmp byte [ebp - 0x39], 0
jge 0x45a838
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x45a83b
mov eax, 0x59934c
jmp 0x45a83b
lea eax, [ebp - 0x48]
push eax
call fcn.00481ae0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45a8e9
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 0x45a890
test eax, eax
je 0x45a890
cmp byte [edi + 0x214], 0
jne 0x45a8d6
call ecx
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x45a8d6
cmp byte [ebp - 0x29], 0
jge 0x45a8a4
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x45a8a7
mov esi, 0x59934c
jmp 0x45a8a7
lea esi, [ebp - 0x38]
push 0
push 0
lea ecx, [ebp - 0x70]
call fcn.0045ae70
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.0045eca0
add esp, 0x2c
push ebx
mov dword [edi + 0x210], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x45a932
cmp byte [ebp - 0x29], 0
jge 0x45a8fd
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x45a900
mov esi, 0x59934c
jmp 0x45a900
lea esi, [ebp - 0x38]
push 0
push 0
lea ecx, [ebp - 0xf8]
call fcn.0045ae70
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.0045eca0
add esp, 0x2c
mov ebx, dword [ebp - 0x28]
cmp byte [ebp - 0x39], 0
mov byte [ebp - 4], 0xc
jge 0x45a950
call fcn.0047f570
push 0
push dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp byte [ebp - 0x29], 0
mov byte [ebp - 4], 0xd
jge 0x45a96b
call fcn.0047f570
push 0
push dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp byte [ebp - 0x71], 0
mov byte [ebp - 4], 0xe
jge 0x45a986
call fcn.0047f570
push 0
push dword [ebp - 0x80]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp byte [ebp - 0x81], 0
mov byte [ebp - 4], 0xf
jge 0x45a9a7
call fcn.0047f570
push 0
push dword [ebp - 0x90]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp byte [ebp - 0x91], 0
mov byte [ebp - 4], 0x10
jge 0x45a9c8
call fcn.0047f570
push 0
push dword [ebp - 0xa0]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp byte [ebp - 0xa1], 0
mov byte [ebp - 4], 0x11
jge 0x45a9e9
call fcn.0047f570
push 0
push dword [ebp - 0xb0]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp byte [ebp - 0xb1], 0
mov byte [ebp - 4], 0x12
jge 0x45aa0a
call fcn.0047f570
push 0
push dword [ebp - 0xc0]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp byte [ebp - 0xc1], 0
mov dword [ebp - 4], 0x13
jge 0x45aa2e
call fcn.0047f570
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.0045eca0
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