Function at 0x4052a0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455bb0
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x4a2040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x284], 0
xor esi, esi
movq qword [ebp - 0x28c], xmm0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 4], esi
cmp byte [0x4a29e5], 0
je 0x4053f4
lea eax, [ebp - 0x290]
mov dword [ebp - 0x290], str.C:Program_Files__x86_Steam_steamappscommonTeam_Fortress_2hl2.exe
push eax
push esi
lea ecx, [ebp - 0x28c]
call fcn.0040db10
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x290], str.D:SteamLibrary_steamappscommonTeam_Fortress_2hl2.exe
cmp eax, dword [ebp - 0x284]
je 0x405357
mov dword [eax], str.D:SteamLibrary_steamappscommonTeam_Fortress_2hl2.exe
mov eax, dword [ebp - 0x288]
add eax, 4
mov dword [ebp - 0x288], eax
jmp 0x405370
lea ecx, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.0040db10
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x290], 0x474d58
cmp eax, dword [ebp - 0x284]
je 0x405399
mov dword [eax], 0x474d58
mov eax, dword [ebp - 0x288]
add eax, 4
mov dword [ebp - 0x288], eax
jmp 0x4053b2
lea ecx, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.0040db10
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x290], str.D:Program_Files__x86_Steam_steamappscommonTeam_Fortress_2hl2.exe
cmp eax, dword [ebp - 0x284]
je 0x4053db
mov dword [eax], str.D:Program_Files__x86_Steam_steamappscommonTeam_Fortress_2hl2.exe
mov esi, dword [ebp - 0x288]
add esi, 4
mov dword [ebp - 0x288], esi
jmp 0x4053f4
lea ecx, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.0040db10
mov esi, dword [ebp - 0x288]
cmp byte [0x4a29db], 0
je 0x405509
mov dword [ebp - 0x290], str.C:Program_Files__x86_Steam_steamappscommonTeam_Fortress_2_tf.exe
cmp esi, dword [ebp - 0x284]
je 0x40542a
mov dword [esi], str.C:Program_Files__x86_Steam_steamappscommonTeam_Fortress_2_tf.exe
mov eax, dword [ebp - 0x288]
add eax, 4
mov dword [ebp - 0x288], eax
jmp 0x405443
lea eax, [ebp - 0x290]
push eax
push esi
lea ecx, [ebp - 0x28c]
call fcn.0040db10
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x290], str.D:SteamLibrary_steamappscommonTeam_Fortress_2_tf.exe
cmp eax, dword [ebp - 0x284]
je 0x40546c
mov dword [eax], str.D:SteamLibrary_steamappscommonTeam_Fortress_2_tf.exe
mov eax, dword [ebp - 0x288]
add eax, 4
mov dword [ebp - 0x288], eax
jmp 0x405485
lea ecx, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.0040db10
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x290], str.E:SteamLibrary_steamappscommonTeam_Fortress_2_tf.exe
cmp eax, dword [ebp - 0x284]
je 0x4054ae
mov dword [eax], str.E:SteamLibrary_steamappscommonTeam_Fortress_2_tf.exe
mov eax, dword [ebp - 0x288]
add eax, 4
mov dword [ebp - 0x288], eax
jmp 0x4054c7
lea ecx, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.0040db10
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x290], str.D:Program_Files__x86_Steam_steamappscommonTeam_Fortress_2_tf.exe
cmp eax, dword [ebp - 0x284]
je 0x4054f0
mov dword [eax], str.D:Program_Files__x86_Steam_steamappscommonTeam_Fortress_2_tf.exe
mov esi, dword [ebp - 0x288]
add esi, 4
mov dword [ebp - 0x288], esi
jmp 0x405509
lea ecx, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.0040db10
mov esi, dword [ebp - 0x288]
cmp byte [0x4a20ad], 0
je 0x40561e
mov dword [ebp - 0x290], str.C:Program_Files__x86_Steam_steamappscommonTeam_Fortress_2_tf_win64.exe
cmp esi, dword [ebp - 0x284]
je 0x40553f
mov dword [esi], str.C:Program_Files__x86_Steam_steamappscommonTeam_Fortress_2_tf_win64.exe
mov eax, dword [ebp - 0x288]
add eax, 4
mov dword [ebp - 0x288], eax
jmp 0x405558
lea eax, [ebp - 0x290]
push eax
push esi
lea ecx, [ebp - 0x28c]
call fcn.0040db10
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x290], str.D:SteamLibrary_steamappscommonTeam_Fortress_2_tf_win64.exe
cmp eax, dword [ebp - 0x284]
je 0x405581
mov dword [eax], str.D:SteamLibrary_steamappscommonTeam_Fortress_2_tf_win64.exe
mov eax, dword [ebp - 0x288]
add eax, 4
mov dword [ebp - 0x288], eax
jmp 0x40559a
lea ecx, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.0040db10
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x290], str.E:SteamLibrary_steamappscommonTeam_Fortress_2_tf_win64.exe
cmp eax, dword [ebp - 0x284]
je 0x4055c3
mov dword [eax], str.E:SteamLibrary_steamappscommonTeam_Fortress_2_tf_win64.exe
mov eax, dword [ebp - 0x288]
add eax, 4
mov dword [ebp - 0x288], eax
jmp 0x4055dc
lea ecx, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.0040db10
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x290], str.D:Program_Files__x86_Steam_steamappscommonTeam_Fortress_2_tf_win64.exe
cmp eax, dword [ebp - 0x284]
je 0x405605
mov dword [eax], str.D:Program_Files__x86_Steam_steamappscommonTeam_Fortress_2_tf_win64.exe
mov esi, dword [ebp - 0x288]
add esi, 4
mov dword [ebp - 0x288], esi
jmp 0x40561e
lea ecx, [ebp - 0x290]
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.0040db10
mov esi, dword [ebp - 0x288]
mov edi, dword [ebp - 0x28c]
cmp edi, esi
je 0x405674
nop dword [eax + eax]
mov ebx, dword [edi]
lea eax, [ebp - 0x280]
push 0x4a29e8
push ebx
push str.__s___s
push eax
call fcn.0040c680
add esp, 0x10
push 0
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
mov dword [ebp - 0x290], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405686
add edi, 4
cmp edi, esi
jne 0x405630
cmp byte [0x4a2c70], 0
jne 0x4056bc
mov byte [0x4a29da], 1
jmp 0x4056c1
push 1
push 0
lea eax, [ebp - 0x280]
push eax
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x4056c1
mov esi, dword [ebp - 0x290]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4056c1
call fcn.00404ce0
mov edx, dword [ebp - 0x28c]
test edx, edx
je 0x405700
mov ecx, dword [ebp - 0x284]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4056f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4056f6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045476e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00454557
mov esp, ebp
pop ebp
ret