Function at 0x402500
Capabilities:
Copy file
Create process on windows
Set current directory
Set file attributes

Disassembly:
sub esp, 0x694
lea eax, [esp + 0x48c]
push ebx
mov ebx, dword [esp + 0x69c]
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
push edi
push 0x104
push eax
push 0x3e8
push ebx
call esi
lea ecx, [esp + 0x48]
push 0x104
push ecx
push 0x3f3
push ebx
call esi
lea edx, [esp + 0x294]
push 0x104
push edx
push 0x3f5
push ebx
call esi
lea eax, [esp + 0x34]
push 0x14
push eax
push 0x402
push ebx
call esi
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x190]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x4c]
push ecx
push edx
call fcn.00404070
lea edi, [esp + 0x19c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x4025b2
mov al, 0x5c
cmp byte [esp + ecx + 0x190], al
je 0x4025aa
dec ecx
jns 0x40259c
jmp 0x4025b2
mov byte [esp + ecx + 0x190], 0
lea edi, [esp + 0x49c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jae 0x4025e8
push 0x40
push str.SKPlayer
push str.No_demo_file_loaded.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x694
ret
lea edi, [esp + 0x49c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jae 0x40261e
push 0x40
push str.SKPlayer
push str.You_have_not_located_your_hl.exe_cstrike.exe.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x694
ret
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x190]
push 0x40a378
push eax
lea ecx, [esp + 0x5a8]
push str._s_s_skplayer.dem
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0x5a0]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x5a0]
push 0
lea ecx, [esp + 0x4a0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40268c
push str.Could_not_copy_demo_file
call fcn.00401090
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x694
ret
mov edi, str._fullscreen
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x411
mov eax, ecx
mov esi, edi
mov edi, edx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
call esi
cmp eax, 1
jne 0x4026f3
lea ecx, [esp + 0x20]
lea edx, [esp + 0x294]
push ecx
push 0x40a378
lea eax, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x3a8]
push str._s__s__game__s__s__console__toconsole_exec_config.cfg_viewdemo_skplayer.dem
push ecx
call ebp
add esp, 0x18
jmp 0x402791
push 0x412
push ebx
call esi
cmp eax, 1
jne 0x40272b
lea edx, [esp + 0x20]
lea eax, [esp + 0x294]
push edx
push 0x40a378
lea ecx, [esp + 0x50]
push eax
push ecx
lea edx, [esp + 0x3a8]
push str._s__s__game__s__s__console__toconsole_exec_config.cfg_timedemo_skplayer.dem
push edx
call ebp
add esp, 0x18
jmp 0x402791
push 0x416
push ebx
call esi
cmp eax, 1
jne 0x402763
lea eax, [esp + 0x20]
lea ecx, [esp + 0x294]
push eax
push 0x40a378
lea edx, [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0x3a8]
push str._s__s__game__s__s__console__toconsole_exec_config.cfg_playdemo_skplayer.dem_3_startmovie_geekmovie_90
push eax
call ebp
add esp, 0x18
jmp 0x402791
lea ecx, [esp + 0x34]
lea edx, [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x29c]
push 0x40a378
lea ecx, [esp + 0x54]
push eax
push ecx
lea edx, [esp + 0x3ac]
push str._s__s__game__s__s__console__toconsole_exec_config.cfg_playdemo_skplayer.dem__s
push edx
call ebp
add esp, 0x1c
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14c]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0x14c]
mov dword [esp + 0x10], ecx
push edx
mov dword [esp + 0x18], ecx
push eax
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x50]
push ecx
push ecx
push ecx
push 0x8000000
push ecx
mov dword [esp + 0x38], ecx
push ecx
lea ecx, [esp + 0x3b8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402809
push str.Could_not_start_HL.EXE_CSTRIKE.EXE
call fcn.00401090
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x694
ret
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x694
ret