Function at 0x57c280
Capabilities:
Check if file exists
Create process on windows
Delete file
Get file attributes
Get file size
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a26e
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x5ed130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x7f0]
call fcn.00401550
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401550
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x7f0]
call fcn.00401640
mov ecx, dword [0x5e0430]
push ecx
push 0x5de6f4
lea ecx, [ebp - 0x7f0]
call fcn.004148e0
push eax
push 0
lea edx, [ebp - 0x838]
push edx
lea ecx, [ebp - 0x7f0]
call fcn.00408c50
mov dword [ebp - 0x868], eax
mov eax, dword [ebp - 0x868]
mov dword [ebp - 0x86c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x86c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x838]
call fcn.00401600
push str._tmp.wav
lea ecx, [ebp - 0x2c]
call fcn.00401660
mov byte [ebp - 0x634], 0
push 0x1ff
push 0
lea edx, [ebp - 0x633]
push edx
call fcn.0043fa10
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00401700
push eax
push str.save_rc___s__wait
lea eax, [ebp - 0x634]
push eax
call fcn.0043fe06
add esp, 0xc
push 0
push 0
push 0
lea ecx, [ebp - 0x634]
push ecx
call dword [sym.imp.WINMM.dll_mciSendStringA]
test eax, eax
je 0x57c3e9
lea ecx, [ebp - 0x2c]
call fcn.00401700
push eax
push str.save_rc__s_error_
mov edx, dword [0x5f9338]
push edx
call fcn.00567c70
push eax
call fcn.005679e0
add esp, 0x10
mov byte [ebp - 0x839], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7f0]
call fcn.00401600
mov al, byte [ebp - 0x839]
jmp 0x57c969
push 0
push 0
push 0
push str.close_rc
call dword [sym.imp.WINMM.dll_mciSendStringA]
test eax, eax
je 0x57c447
push str.close_rc_error_
mov eax, dword [0x5f9338]
push eax
call fcn.00567c70
push eax
call fcn.005679e0
add esp, 0xc
mov byte [ebp - 0x83a], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7f0]
call fcn.00401600
mov al, byte [ebp - 0x83a]
jmp 0x57c969
mov byte [ebp - 0x76c], 0
push 0x103
push 0
lea ecx, [ebp - 0x76b]
push ecx
call fcn.0043fa10
add esp, 0xc
lea ecx, [ebp - 0x660]
call fcn.00401550
mov byte [ebp - 4], 3
push 0x104
lea edx, [ebp - 0x76c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x76c]
push eax
lea ecx, [ebp - 0x660]
call fcn.00402240
mov ecx, dword [0x5e0430]
push ecx
push 0x5de748
lea ecx, [ebp - 0x660]
call fcn.004148e0
push eax
push 0
lea edx, [ebp - 0x858]
push edx
lea ecx, [ebp - 0x660]
call fcn.00408c50
mov dword [ebp - 0x870], eax
mov eax, dword [ebp - 0x870]
mov dword [ebp - 0x874], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x874]
push ecx
lea ecx, [ebp - 0x660]
call fcn.00401620
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x858]
call fcn.00401600
push str.ffmpeg.exe
call fcn.00580000
add esp, 4
push eax
lea ecx, [ebp - 0x788]
call fcn.00401580
mov byte [ebp - 4], 5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x85c], esp
lea edx, [ebp - 0x788]
push edx
call fcn.004015c0
mov dword [ebp - 0x878], eax
call fcn.0057e3a0
add esp, 0x1c
mov byte [ebp - 0x879], al
movzx eax, byte [ebp - 0x879]
test eax, eax
je 0x57c56b
lea ecx, [ebp - 0x788]
call fcn.00401700
push eax
call fcn.0057dc60
add esp, 4
test eax, eax
jne 0x57c672
call fcn.00401fe0
mov dword [ebp - 0x7f4], eax
push str._ffmpeg.exe
mov ecx, dword [ebp - 0x7f4]
add ecx, 0x88
push ecx
lea edx, [ebp - 0x810]
push edx
call fcn.00405830
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x788]
call fcn.00401700
push eax
lea ecx, [ebp - 0x810]
call fcn.00401700
mov ecx, eax
mov eax, 0x10
call fcn.0042ba70
add esp, 4
test eax, eax
je 0x57c63e
push str._ftp_ffmpeg.exe
mov edx, dword [0x5f9338]
push edx
call fcn.00567c70
push eax
call fcn.005679e0
add esp, 0xc
mov byte [ebp - 0x85d], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x810]
call fcn.00401600
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x788]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x660]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7f0]
call fcn.00401600
mov al, byte [ebp - 0x85d]
jmp 0x57c969
lea ecx, [ebp - 0x788]
call fcn.00401700
push eax
push str._ftp_ffmpeg
mov eax, dword [0x5f9338]
push eax
call fcn.00567c70
push eax
call fcn.005679e0
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x810]
call fcn.00401600
mov byte [ebp - 0x434], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x433]
push ecx
call fcn.0043fa10
add esp, 0xc
lea ecx, [ebp - 0x7f0]
call fcn.00401700
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401700
push eax
lea ecx, [ebp - 0x660]
call fcn.00401700
push eax
push str.__s_ffmpeg.exe___i___s___ab_8000___s_
lea edx, [ebp - 0x434]
push edx
call fcn.0043fe06
add esp, 0x14
push 0x44
push 0
lea eax, [ebp - 0x7d4]
push eax
call fcn.0043fa10
add esp, 0xc
mov dword [ebp - 0x7d4], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x644]
push ecx
call fcn.0043fa10
add esp, 0xc
lea edx, [ebp - 0x644]
push edx
lea eax, [ebp - 0x7d4]
push eax
lea ecx, [ebp - 0x660]
call fcn.00401700
push eax
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [ebp - 0x434]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x57c77c
mov byte [ebp - 0x85e], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x788]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x660]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7f0]
call fcn.00401600
mov al, byte [ebp - 0x85e]
jmp 0x57c969
mov dword [ebp - 0x30], 0
push 0xea60
mov edx, dword [ebp - 0x644]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x57c7ed
mov dword [ebp - 0x814], 0
lea eax, [ebp - 0x814]
push eax
mov ecx, dword [ebp - 0x644]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x814]
push edx
mov eax, dword [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x7f0]
call fcn.00401700
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x2c]
call fcn.00401700
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x7f0]
call fcn.00401700
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x57c920
push 0
push 0x80
push 3
push 0
push 1
push accept
lea ecx, [ebp - 0x7f0]
call fcn.00401700
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0xffffffff
jne 0x57c898
mov byte [ebp - 0x85f], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x788]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x660]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7f0]
call fcn.00401600
mov al, byte [ebp - 0x85f]
jmp 0x57c969
push 0
mov ecx, dword [ebp - 0x81c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x818], eax
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x818], 0
jne 0x57c920
lea ecx, [ebp - 0x7f0]
call fcn.00401700
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x860], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x788]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x660]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7f0]
call fcn.00401600
mov al, byte [ebp - 0x860]
jmp 0x57c969
mov byte [ebp - 0x861], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x788]
call fcn.00401600
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x660]
call fcn.00401600
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401600
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7f0]
call fcn.00401600
mov al, byte [ebp - 0x861]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dd0c
mov esp, ebp
pop ebp
ret 4