Function at 0x45f310
Capabilities:
Accept command line arguments
Hide graphical window
Set console window title

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x591595
push eax
mov eax, 0x1078
mov dword fs:[0], esp
call fcn.0056b420
lea eax, [ebp + 8]
push esi
push eax
call fcn.004767f0
add esp, 4
mov esi, eax
cmp dword [ebp + 8], 2
mov dword [ebp - 0x20], esi
jge 0x45f36b
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.0045fa90
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 0x5b11cc
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 0x45f3c5
lea esp, [esp]
push dword [esi + edi*4]
push str._hide
call fcn.00579371
add esp, 8
test eax, eax
je 0x45f3ac
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x45f390
jmp 0x45f3c5
test edi, edi
je 0x45f3c5
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [0x62d4f0], bl
mov eax, dword [ebp + 8]
mov edi, 1
mov dword [ebp - 0x24], eax
cmp eax, edi
jle 0x45f45b
jmp 0x45f3e0
push dword [esi + edi*4]
push str._installscript
call fcn.00579371
add esp, 8
test eax, eax
je 0x45f3fc
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x45f3e0
jmp 0x45f45b
test edi, edi
jle 0x45f45b
mov ecx, dword [ebp + 8]
cmp ecx, edi
jle 0x45f45b
lea eax, [edi + 1]
xor ebx, ebx
cmp ecx, eax
jle 0x45f41e
push dword [esi + edi*4 + 8]
call fcn.00575d4a
add esp, 4
mov ebx, eax
push 0
push 0
lea edi, [esi + edi*4]
push ebx
push dword [edi + 4]
call fcn.004595d0
add esp, 0x10
test al, al
jne 0x45f44c
push 0
push 0
lea ecx, [ebp - 0x5c]
call fcn.0045a9c0
push ebx
push dword [edi + 4]
push str._installscript_failed_on:__s:__d_n
jmp 0x45f4c4
push str.Install_script_executed.
call fcn.0045fa90
add esp, 4
xor bl, bl
push esi
push dword [ebp + 8]
push str._setupscript
call fcn.0045e6d0
mov edx, dword [ebp + 8]
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x45f509
cmp edx, edi
jle 0x45f509
lea ecx, [edi + 1]
xor ebx, ebx
cmp edx, ecx
jle 0x45f498
push dword [esi + edi*4 + 8]
call fcn.00575d4a
add esp, 4
mov ebx, eax
push 0
push 1
lea edi, [esi + edi*4]
push ebx
push dword [edi + 4]
call fcn.004595d0
add esp, 0x10
test al, al
jne 0x45f4f7
push 0
push 0
lea ecx, [ebp - 0x5c]
call fcn.0045a9c0
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.0045e590
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.0045fa90
mov edx, dword [ebp + 8]
add esp, 4
xor bl, bl
push esi
push edx
push str._setupsteam
call fcn.0045e6d0
add esp, 0xc
test eax, eax
jle 0x45f6a3
cmp dword [ebp + 8], eax
jle 0x45f6a3
mov eax, 0x22
push 0xffe
mov word [ebp - 0x1084], ax
lea eax, [ebp - 0x1082]
push 0
push eax
call fcn.0056cd70
lea eax, [ebp - 0x1083]
push 0xfff
push eax
call fcn.00476790
add esp, 0x14
test al, al
jne 0x45f576
push 0
push 0
lea ecx, [ebp - 0x5c]
call fcn.0045a9c0
push str._setupsteam_to_get_current_executable_path_n
jmp 0x45fa11
lea eax, [ebp - 0x1084]
push eax
call fcn.00469a00
push 0xffffffffffffffff
push 0x1000
lea eax, [ebp - 0x1084]
push str.SteamSetup.exe_
push eax
call fcn.0046a030
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, 0x593544
mov dword [ebp - 0x18], eax
cmovne ecx, edx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edx
call fcn.0045ef80
test eax, eax
je 0x45f5fa
push str._setupsteam
push eax
call fcn.00468d80
add esp, 8
test eax, eax
je 0x45f5fa
push 0xffffffffffffffff
add eax, 0xb
push 0x1000
push eax
lea eax, [ebp - 0x1084]
push eax
call fcn.0046a030
add esp, 0x10
lea eax, [ebp - 0x1084]
mov ecx, 0x62db20
push eax
call fcn.0045da60
test al, al
jne 0x45f65b
cmp byte [ebp - 0x10], al
je 0x45f61f
push dword [ebp - 0x1c]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0xf], 0
je 0x45f630
push dword [ebp - 0x18]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0xe], 0
je 0x45fa70
push dword [ebp - 0x14]
call fcn.0056b454
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.0045fa90
xor bl, bl
mov dword [ebp - 4], 0xffffffff
add esp, 4
cmp byte [ebp - 0x10], bl
je 0x45f681
push dword [ebp - 0x1c]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0xf], 0
je 0x45f692
push dword [ebp - 0x18]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0xe], 0
je 0x45f6a3
push dword [ebp - 0x14]
call fcn.0056b454
add esp, 4
push dword [esi + 4]
push str._runfunc
call fcn.00579371
add esp, 8
test eax, eax
jne 0x45f708
cmp dword [ebp + 8], 6
jl 0x45fa70
push dword [esi + 8]
call fcn.00575d27
push dword [esi + 0xc]
mov ebx, eax
call fcn.00575d27
push dword [esi + 0x10]
mov edi, eax
call fcn.00575d27
mov esi, eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x14]
call fcn.00575d27
add esp, 0x10
mov ecx, 0x62db20
push eax
push esi
push edi
push ebx
call fcn.0045b150
test al, al
je 0x45fa70
mov esi, dword [ebp - 0x20]
xor bl, bl
push dword [esi + 4]
push str._extractguids
call fcn.00579371
add esp, 8
test eax, eax
jne 0x45f7b9
cmp dword [ebp + 8], 3
jl 0x45fa70
push eax
push eax
push eax
lea ecx, [ebp - 0x5c]
call fcn.0046b5c0
mov edi, dword [esi + 8]
push str.wine_get_dos_file_name
push 0x5b1298
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 0x45f815
test edi, edi
je 0x45f815
push edi
call eax
push 0
push 0
mov edi, eax
push 0
push edi
call fcn.0046d760
add esp, 0x14
lea ecx, [ebp - 0x5c]
mov esi, eax
push esi
call fcn.0046ba10
push 0
push esi
push dword [ebp - 0x58]
push edi
call fcn.0046d760
add esp, 0x10
mov ecx, 0x62db20
push dword [ebp - 0x58]
call fcn.0045c700
test al, al
je 0x45f824
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
xor bl, bl
call fcn.0046a5f0
push dword [esi + 4]
push str._repair
call fcn.00579371
add esp, 8
test eax, eax
jne 0x45f862
cmp byte [0x62d4f8], al
je 0x45f842
push eax
mov ecx, 0x62db20
call fcn.0045df40
push 1
mov ecx, 0x62db20
call fcn.0045cb80
push 0x62d4f8
push str.Steam_Client_Service___s__repair_completed._n
call fcn.0045fa90
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, 0x62db20
call fcn.0045c700
test al, al
jne 0x45f7a8
lea ecx, [ebp - 0x5c]
call fcn.0046a5f0
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.0045fa90
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.00579371
add esp, 8
test eax, eax
jne 0x45f89c
cmp dword [ebp + 8], 2
jle 0x45f89c
push dword [esi + 8]
mov ecx, 0x62db20
call fcn.0045d8c0
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.00579371
add esp, 8
test eax, eax
jne 0x45f97d
push dword [0x6281f8]
lea eax, [ebp - 0x34]
push 0x62d4f8
push 0x5b14fc
push eax
call fcn.0046a950
add esp, 0x10
cmp byte [ebp - 0x25], 0
mov dword [ebp - 4], 2
jge 0x45f8eb
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x45f8ee
mov eax, 0x593544
jmp 0x45f8ee
lea eax, [ebp - 0x34]
push 0
push 1
push eax
call fcn.004625d0
push 0x62d4f8
lea eax, [ebp - 0x1c]
push str._s_bin_steamwebhelper.exe
push eax
call fcn.0046a950
add esp, 0x18
cmp byte [ebp - 0xd], 0
mov byte [ebp - 4], 3
jge 0x45f926
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x45f929
mov eax, 0x593544
jmp 0x45f929
lea eax, [ebp - 0x1c]
push 0
push 1
push eax
call fcn.004625d0
add esp, 0xc
cmp byte [ebp - 0xd], 0
mov byte [ebp - 4], 4
jge 0x45f953
call fcn.0047fa50
push 0
push dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x25], 0
mov dword [ebp - 4], 5
jge 0x45f973
call fcn.0047fa50
push 0
push dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
push str.Steam_Client_Service_Windows_compatibility_flags_cleared._n
jmp 0x45f847
push dword [esi + 4]
push str._install
call fcn.00579371
add esp, 8
test eax, eax
jne 0x45f9ec
push eax
mov ecx, 0x62db20
call fcn.0045df40
test al, al
je 0x45fa70
call fcn.00463c40
test al, al
je 0x45f9ce
mov ecx, 0x62db20
call fcn.0045c870
test al, al
jne 0x45f9ce
push 0
push 0
lea ecx, [ebp - 0x5c]
call fcn.0045a9c0
push str._install_service_install_failed_n
jmp 0x45fa11
push 1
mov ecx, 0x62db20
call fcn.0045cb80
test al, al
je 0x45fa70
push str.Steam_Client_Service_install_completed.
jmp 0x45f847
test bl, bl
je 0x45f84f
cmp byte [0x62d4f8], 0
jne 0x45fa44
push 0
push 0
lea ecx, [ebp - 0x84]
call fcn.0045a9c0
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.0045e590
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, 0x62db20
call fcn.0045d350
test al, al
jne 0x45f84f
push esi
push dword [ebp + 8]
mov ecx, 0x62db20
call fcn.00460220
test al, al
jne 0x45f84f
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