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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59115c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x390
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x24], 1
push 0x5b178c
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push 1
push 0x45e400
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x45a179
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.0045e650
add esp, 0x20
cmp byte [0x62d438], 0
je 0x45a765
cmp byte [0x62d748], 0
je 0x45a765
push 0x62d438
call fcn.00482ce0
add esp, 4
lea eax, [ebp - 0x39c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x45a1c8
push 0x100
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
push 0x5b1930
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.0046b540
push str.SteamService.dll
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.0046b540
sub esp, 0x10
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
mov ecx, esp
lea edx, [ebp - 0x1c]
push eax
push edx
call fcn.0045aa30
mov ecx, esi
call fcn.0045ce30
push 0x446640
push 2
mov bl, al
mov dword [ebp - 4], 0xffffffff
push 4
lea eax, [ebp - 0x1c]
push eax
call fcn.0056c17a
test bl, bl
jne 0x45a24b
lea ecx, [ebp - 0xdc]
call fcn.0045ac90
push str.Could_not_load_version_info_n
jmp 0x45a770
push 0x62d438
lea eax, [ebp - 0xac]
push str._s_bin_secure_desktop_capture.exe
push eax
call fcn.0046a970
push 0x62d748
lea eax, [ebp - 0x9c]
mov dword [ebp - 4], 2
push str._s_secure_desktop_capture.exe
push eax
call fcn.0046a970
add esp, 0x18
cmp byte [ebp - 0x8d], 0
mov byte [ebp - 4], 3
jge 0x45a29f
mov eax, dword [ebp - 0x9c]
test eax, eax
jne 0x45a2a5
mov eax, 0x593554
jmp 0x45a2a5
lea eax, [ebp - 0x9c]
cmp byte [ebp - 0x9d], 0
jge 0x45a2bf
mov ecx, dword [ebp - 0xac]
test ecx, ecx
jne 0x45a2c5
mov ecx, 0x593554
jmp 0x45a2c5
lea ecx, [ebp - 0xac]
mov ebx, dword [ebp - 0x48]
push 0
push 0
push eax
push ecx
mov ecx, ebx
call fcn.0045b870
call fcn.00476de0
test al, al
mov esi, 0x5b19bc
mov ecx, esi
lea eax, [ebp - 0x8c]
mov edi, 0x593554
cmove ecx, edi
push ecx
push 0x62d438
push str._s_bin_steamxboxutil_s.exe
push eax
call fcn.0046a970
mov byte [ebp - 4], 4
call fcn.00476de0
test al, al
lea eax, [ebp - 0x7c]
cmove esi, edi
push esi
push 0x62d748
push str._s_steamxboxutil_s.exe
push eax
call fcn.0046a970
add esp, 0x20
cmp byte [ebp - 0x6d], 0
mov byte [ebp - 4], 5
jge 0x45a33c
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x45a33f
mov eax, edi
jmp 0x45a33f
lea eax, [ebp - 0x7c]
cmp byte [ebp - 0x7d], 0
jge 0x45a356
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
jne 0x45a35c
mov ecx, 0x593554
jmp 0x45a35c
lea ecx, [ebp - 0x8c]
push 0
push 0
push eax
push ecx
mov ecx, ebx
call fcn.0045b870
push 0x62d438
lea eax, [ebp - 0x6c]
push str._s_bindrivers.exe
push eax
call fcn.0046a970
push 0x62d748
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 6
push str._sdrivers.exe
push eax
call fcn.0046a970
add esp, 0x18
cmp byte [ebp - 0x4d], 0
mov byte [ebp - 4], 7
jge 0x45a3ae
mov esi, dword [ebp - 0x5c]
test esi, esi
jne 0x45a3b1
mov esi, 0x593554
jmp 0x45a3b1
lea esi, [ebp - 0x5c]
cmp byte [ebp - 0x5d], 0
jge 0x45a3c5
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x45a3c8
mov eax, 0x593554
jmp 0x45a3c8
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push ecx
push 0
push esi
push eax
mov ecx, ebx
call fcn.0045b870
test al, al
je 0x45a4e4
cmp byte [ebp - 0xd], 0
je 0x45a4e4
push 0
push 0
push 0
lea ecx, [ebp - 0xd0]
call fcn.0046b8a0
push 0
push 0
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 8
push eax
push ecx
mov eax, esp
mov dword [eax], esi
call fcn.00472500
add esp, 0x10
test al, al
je 0x45a4b4
mov esi, dword [ebp - 0xc0]
test esi, esi
js 0x45a4b4
mov edi, dword [ebp - 0xd0]
mov dword [ebp - 0x14], 0x4034b50
cmp esi, 4
jb 0x45a4b4
mov ecx, edi
lea edx, [ebp - 0x14]
mov eax, dword [ecx]
cmp eax, dword [edx]
je 0x45a469
cmp al, byte [edx]
jne 0x45a46d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x45a46d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x45a46d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x45a46d
xor eax, eax
jmp 0x45a472
sbb eax, eax
or eax, 1
test eax, eax
je 0x45a47f
dec esi
inc edi
cmp esi, 4
jae 0x45a442
jmp 0x45a4b4
lea ecx, [ebp - 0x20]
call fcn.00466eb0
push 0
push esi
push edi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 9
call fcn.00467a90
test al, al
je 0x45a4ac
push 0
push 0
push 0x62d748
lea ecx, [ebp - 0x20]
call fcn.00466ff0
lea ecx, [ebp - 0x20]
call fcn.00466f20
cmp dword [ebp - 0xc8], 0
mov byte [ebp - 4], 0xa
jl 0x45a4e0
cmp dword [ebp - 0xd0], 0
je 0x45a4e0
call fcn.004802a0
push 0
push dword [ebp - 0xd0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov byte [ebp - 4], 7
push 0x62d438
lea eax, [ebp - 0x34]
push str._s_binSteamService.dll
push eax
call fcn.0046a970
push 0x62d748
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xb
push str._sSteamService.dll
push eax
call fcn.0046a970
add esp, 0x18
cmp byte [ebp - 0x35], 0
mov byte [ebp - 4], 0xc
jge 0x45a529
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x45a52c
mov eax, 0x593554
jmp 0x45a52c
lea eax, [ebp - 0x44]
cmp byte [ebp - 0x25], 0
jge 0x45a540
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x45a543
mov ecx, 0x593554
jmp 0x45a543
lea ecx, [ebp - 0x34]
push 0
push 0
push eax
push ecx
mov ecx, ebx
call fcn.0045b870
test al, al
jne 0x45a55e
mov ebx, 1
jmp 0x45a65a
cmp byte [ebp - 0x35], 0
jge 0x45a572
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x45a575
mov eax, 0x593554
jmp 0x45a575
lea eax, [ebp - 0x44]
push eax
call fcn.00482be0
mov edi, eax
add esp, 4
test edi, edi
je 0x45a61a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SteamService_RunMainLoop
push edi
call esi
push str.SteamService_Stop
push edi
mov dword [ebx + 0x20c], eax
call esi
mov ecx, dword [ebx + 0x20c]
mov dword [ebx + 0x210], eax
test ecx, ecx
je 0x45a5ca
test eax, eax
je 0x45a5ca
cmp byte [ebx + 0x214], 0
jne 0x45a607
call ecx
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x45a607
cmp byte [ebp - 0x25], 0
jge 0x45a5de
mov esi, dword [ebp - 0x34]
test esi, esi
jne 0x45a5e1
mov esi, 0x593554
jmp 0x45a5e1
lea esi, [ebp - 0x34]
lea ecx, [ebp - 0xdc]
call fcn.0045ac90
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.0045e650
add esp, 0x24
push edi
mov dword [ebx + 0x210], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x45a657
cmp byte [ebp - 0x25], 0
jge 0x45a62e
mov esi, dword [ebp - 0x34]
test esi, esi
jne 0x45a631
mov esi, 0x593554
jmp 0x45a631
lea esi, [ebp - 0x34]
lea ecx, [ebp - 0x10c]
call fcn.0045ac90
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.0045e650
add esp, 0x24
mov ebx, dword [ebp - 0x24]
cmp byte [ebp - 0x35], 0
mov byte [ebp - 4], 0xd
jge 0x45a677
call fcn.004802a0
push 0
push dword [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x25], 0
mov byte [ebp - 4], 0xe
jge 0x45a694
call fcn.004802a0
push 0
push dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x4d], 0
mov byte [ebp - 4], 0xf
jge 0x45a6b1
call fcn.004802a0
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], 0x10
jge 0x45a6ce
call fcn.004802a0
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], 0x11
jge 0x45a6eb
call fcn.004802a0
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], 0x12
jge 0x45a70b
call fcn.004802a0
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], 0x13
jge 0x45a72e
call fcn.004802a0
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], 0x14
jge 0x45a752
call fcn.004802a0
push 0
push dword [ebp - 0xac]
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 - 0xdc]
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.0045e650
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