Function at 0x45fa30
Capabilities:
Hide graphical window
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x591eb5
push eax
mov eax, 0x1078
mov dword fs:[0], esp
call fcn.0056b490
lea eax, [ebp + 8]
push esi
push eax
call fcn.004768c0
add esp, 4
mov esi, eax
cmp dword [ebp + 8], 2
mov dword [ebp - 0x20], esi
jge 0x45fa8b
push str.Usage____:_steamservice.exe__command_nCommands_:__install___Installs_Steam_Client_Service_n____________uninstall___Uninstalls_Steam_Client_Service_n____________repair___Repairs_Steam_install_n____________repairlibrary__folder____Repairs_a_library_folder_n____________installscript__file___appid____Runs_a_Steam_game_install_script_n____________setupsteam__command_line____Runs_SteamSetup.exe
call fcn.004601b0
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x5ccb34
mov bl, 1
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [ebp + 8]
mov edi, 1
mov dword [ebp - 0x24], eax
cmp eax, edi
jle 0x45fae5
lea esp, [esp]
push dword [esi + edi*4]
push str._hide
call fcn.00579c97
add esp, 8
test eax, eax
je 0x45facc
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x45fab0
jmp 0x45fae5
test edi, edi
je 0x45fae5
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [0x6523d8], bl
mov eax, dword [ebp + 8]
mov edi, 1
mov dword [ebp - 0x24], eax
cmp eax, edi
jle 0x45fb7b
jmp 0x45fb00
push dword [esi + edi*4]
push str._installscript
call fcn.00579c97
add esp, 8
test eax, eax
je 0x45fb1c
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x45fb00
jmp 0x45fb7b
test edi, edi
jle 0x45fb7b
mov ecx, dword [ebp + 8]
cmp ecx, edi
jle 0x45fb7b
lea eax, [edi + 1]
xor ebx, ebx
cmp ecx, eax
jle 0x45fb3e
push dword [esi + edi*4 + 8]
call fcn.00575dca
add esp, 4
mov ebx, eax
push 0
push 0
lea edi, [esi + edi*4]
push ebx
push dword [edi + 4]
call fcn.00459680
add esp, 0x10
test al, al
jne 0x45fb6c
push 0
push 0
lea ecx, [ebp - 0x5c]
call fcn.0045ae70
push ebx
push dword [edi + 4]
push str._installscript_failed_on:__s:__d_n
jmp 0x45fbe4
push str.Install_script_executed.
call fcn.004601b0
add esp, 4
xor bl, bl
push esi
push dword [ebp + 8]
push str._setupscript
call fcn.0045ede0
mov edx, dword [ebp + 8]
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x45fc29
cmp edx, edi
jle 0x45fc29
lea ecx, [edi + 1]
xor ebx, ebx
cmp edx, ecx
jle 0x45fbb8
push dword [esi + edi*4 + 8]
call fcn.00575dca
add esp, 4
mov ebx, eax
push 0
push 1
lea edi, [esi + edi*4]
push ebx
push dword [edi + 4]
call fcn.00459680
add esp, 0x10
test al, al
jne 0x45fc17
push 0
push 0
lea ecx, [ebp - 0x5c]
call fcn.0045ae70
push ebx
push dword [edi + 4]
push str._setupscript_failed_on:__s:__d_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, 0x30
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.Setup_script_executed.
call fcn.004601b0
mov edx, dword [ebp + 8]
add esp, 4
xor bl, bl
push esi
push edx
push str._setupsteam
call fcn.0045ede0
add esp, 0xc
test eax, eax
jle 0x45fdc3
cmp dword [ebp + 8], eax
jle 0x45fdc3
mov eax, 0x22
push 0xffe
mov word [ebp - 0x1084], ax
lea eax, [ebp - 0x1082]
push 0
push eax
call fcn.0056cde0
lea eax, [ebp - 0x1083]
push 0xfff
push eax
call fcn.00476860
add esp, 0x14
test al, al
jne 0x45fc96
push 0
push 0
lea ecx, [ebp - 0x5c]
call fcn.0045ae70
push str._setupsteam_to_get_current_executable_path_n
jmp 0x46012d
lea eax, [ebp - 0x1084]
push eax
call fcn.00469d70
push 0xffffffffffffffff
push 0x1000
lea eax, [ebp - 0x1084]
push str.SteamSetup.exe_
push eax
call fcn.0046a3a0
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edx, edx
mov dword [ebp - 0x10], 0x4000000
test eax, eax
mov dword [ebp - 0x14], edx
mov ecx, 0x59934c
mov dword [ebp - 0x18], eax
cmovne ecx, edx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edx
call fcn.0045f6a0
test eax, eax
je 0x45fd1a
push str._setupsteam
push eax
call fcn.004692b0
add esp, 8
test eax, eax
je 0x45fd1a
push 0xffffffffffffffff
add eax, 0xb
push 0x1000
push eax
lea eax, [ebp - 0x1084]
push eax
call fcn.0046a3a0
add esp, 0x10
lea eax, [ebp - 0x1084]
mov ecx, 0x652a08
push eax
call fcn.0045e0c0
test al, al
jne 0x45fd7b
cmp byte [ebp - 0x10], al
je 0x45fd3f
push dword [ebp - 0x1c]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0xf], 0
je 0x45fd50
push dword [ebp - 0x18]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0xe], 0
je 0x46018c
push dword [ebp - 0x14]
call fcn.0056b4c4
add esp, 4
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.SteamSetup.exe_executed.
call fcn.004601b0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
add esp, 4
cmp byte [ebp - 0x10], bl
je 0x45fda1
push dword [ebp - 0x1c]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0xf], 0
je 0x45fdb2
push dword [ebp - 0x18]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0xe], 0
je 0x45fdc3
push dword [ebp - 0x14]
call fcn.0056b4c4
add esp, 4
push dword [esi + 4]
push str._runfunc
call fcn.00579c97
add esp, 8
test eax, eax
jne 0x45fe28
cmp dword [ebp + 8], 6
jl 0x46018c
push dword [esi + 8]
call fcn.00575da7
push dword [esi + 0xc]
mov ebx, eax
call fcn.00575da7
push dword [esi + 0x10]
mov edi, eax
call fcn.00575da7
mov esi, eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x14]
call fcn.00575da7
add esp, 0x10
mov ecx, 0x652a08
push eax
push esi
push edi
push ebx
call fcn.0045b5e0
test al, al
je 0x46018c
mov esi, dword [ebp - 0x20]
xor bl, bl
push dword [esi + 4]
push str._extractguids
call fcn.00579c97
add esp, 8
test eax, eax
jne 0x45fed9
cmp dword [ebp + 8], 3
jl 0x46018c
push eax
push eax
push eax
lea ecx, [ebp - 0x5c]
call fcn.0046b8e0
mov edi, dword [esi + 8]
push str.wine_get_dos_file_name
push 0x5ccc00
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45ff35
test edi, edi
je 0x45ff35
push edi
call eax
push 0
push 0
mov edi, eax
push 0
push edi
call fcn.0046d7a0
add esp, 0x14
lea ecx, [ebp - 0x5c]
mov esi, eax
push esi
call fcn.0046bd30
push 0
push esi
push dword [ebp - 0x58]
push edi
call fcn.0046d7a0
add esp, 0x10
mov ecx, 0x652a08
push dword [ebp - 0x58]
call fcn.0045cb70
test al, al
je 0x45ff44
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
xor bl, bl
call fcn.0046a920
push dword [esi + 4]
push str._repair
call fcn.00579c97
add esp, 8
test eax, eax
jne 0x45ff82
cmp byte [0x6523e0], al
je 0x45ff62
push eax
mov ecx, 0x652a08
call fcn.0045e590
push 1
mov ecx, 0x652a08
call fcn.0045cff0
push 0x6523e0
push str.Steam_Client_Service___s__repair_completed._n
call fcn.004601b0
add esp, 8
xor eax, eax
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push edi
mov ecx, 0x652a08
call fcn.0045cb70
test al, al
jne 0x45fec8
lea ecx, [ebp - 0x5c]
call fcn.0046a920
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.Steam_Client_Service_Steam_folder_not_found._n
call fcn.004601b0
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
push str._repairlibrary
call fcn.00579c97
add esp, 8
test eax, eax
jne 0x45ffbc
cmp dword [ebp + 8], 2
jle 0x45ffbc
push dword [esi + 8]
mov ecx, 0x652a08
call fcn.0045df20
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
push str._clearcompatflags
call fcn.00579c97
add esp, 8
test eax, eax
jne 0x460099
push dword [0x64d158]
lea eax, [ebp - 0x34]
push 0x6523e0
push 0x5ccabc
push eax
call fcn.0046ac70
add esp, 0x10
cmp byte [ebp - 0x25], 0
mov dword [ebp - 4], 2
jge 0x46000b
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x46000e
mov eax, 0x59934c
jmp 0x46000e
lea eax, [ebp - 0x34]
push 0
push 1
push eax
call fcn.00462a00
push 0x6523e0
lea eax, [ebp - 0x1c]
push str._s_bin_steamwebhelper.exe
push eax
call fcn.0046ac70
add esp, 0x18
cmp byte [ebp - 0xd], 0
mov byte [ebp - 4], 3
jge 0x460046
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x460049
mov eax, 0x59934c
jmp 0x460049
lea eax, [ebp - 0x1c]
push 0
push 1
push eax
call fcn.00462a00
add esp, 0xc
cmp byte [ebp - 0xd], 0
mov byte [ebp - 4], 4
jge 0x460071
call fcn.0047f570
push 0
push dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp byte [ebp - 0x25], 0
mov dword [ebp - 4], 5
jge 0x46008f
call fcn.0047f570
push 0
push dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push str.Steam_Client_Service_Windows_compatibility_flags_cleared._n
jmp 0x45ff67
push dword [esi + 4]
push str._install
call fcn.00579c97
add esp, 8
test eax, eax
jne 0x460108
push eax
mov ecx, 0x652a08
call fcn.0045e590
test al, al
je 0x46018c
call fcn.00464080
test al, al
je 0x4600ea
mov ecx, 0x652a08
call fcn.0045cce0
test al, al
jne 0x4600ea
push 0
push 0
lea ecx, [ebp - 0x5c]
call fcn.0045ae70
push str._install_service_install_failed_n
jmp 0x46012d
push 1
mov ecx, 0x652a08
call fcn.0045cff0
test al, al
je 0x46018c
push str.Steam_Client_Service_install_completed.
jmp 0x45ff67
test bl, bl
je 0x45ff6f
cmp byte [0x6523e0], 0
jne 0x460160
push 0
push 0
lea ecx, [ebp - 0x84]
call fcn.0045ae70
push str.Steam_folder_not_found_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, 0x28
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 8]
mov ecx, 0x652a08
call fcn.0045d7c0
test al, al
jne 0x45ff6f
push esi
push dword [ebp + 8]
mov ecx, 0x652a08
call fcn.00460910
test al, al
jne 0x45ff6f
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop ebx
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret