Function at 0x45a820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d83bc
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1088
call fcn.004c4260
mov eax, dword [0x513330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
lea esi, [edi + 0x70]
push str.____________________Entrance____________________
lea ecx, [ebp - 0x1024]
mov eax, esi
push ecx
push eax
mov dword [ebp - 0x1048], edi
mov dword [ebp - 0x102c], esi
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x1024], str.ReadProgress
call fcn.00471a00
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.Start_WaitForSingleObject_on_ffmpeg.exe_process_handle.
lea edx, [ebp - 0x1024]
push edx
push esi
mov dword [ebp - 0x1068], eax
mov dword [ebp - 0x1064], ebx
mov dword [ebp - 0x1060], ebx
mov dword [ebp - 0x1058], ebx
mov dword [ebp - 0x1054], ebx
call fcn.004719c0
fldz
fstp qword [ebp - 0x1050]
add esp, 0xc
mov dword [ebp - 0x1044], ebx
mov dword [ebp - 0x103c], 0xffffffff
jmp 0x45a8f0
mov eax, dword [edi + 0x148]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x45ae0d
cmp byte [edi + 0x68], 0
je 0x45a939
push str.______________________Exit______________________
lea ecx, [ebp - 0x1024]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1020]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov al, 1
jmp 0x45aec6
push str.Start_looping_on_ffmpeg.exe_process_console_output.
lea eax, [ebp - 0x1024]
push eax
push esi
call fcn.004719c0
add esp, 0xc
push 0x3e8
mov dword [ebp - 0x1038], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x1025], 0
jmp 0x45a972
xor ebx, ebx
push 0xfff
lea ecx, [ebp - 0x1017]
push ebx
push ecx
mov byte [ebp - 0x1018], 0
call fcn.004ab3f0
add esp, 0xc
mov dword [ebp - 0x1040], ebx
cmp dword [edi + 0xd0], ebx
je 0x45adbb
cmp byte [edi + 0x68], 0
jne 0x45adbb
cmp byte [edi + 0xb0], 0
jne 0x45adbb
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [edi + 0xd0]
push ebx
lea edx, [ebp - 0x1040]
push edx
push 0xfff
lea eax, [ebp - 0x1018]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45aa08
mov edx, dword [edi + 0xd0]
push edx
push str.Failed_to_ReadFile_m_hStdOutRead_d_.
lea eax, [ebp - 0x1024]
push eax
push esi
call fcn.00471980
add esp, 0x10
jmp 0x45a8f0
mov eax, dword [ebp - 0x1040]
cmp eax, ebx
jne 0x45aa33
mov ecx, dword [edi + 0xd0]
push ecx
push str.ReadFile_m_hStdOutRead_d__returned_zero_bytes.
lea edx, [ebp - 0x1024]
push edx
push esi
call fcn.00471980
add esp, 0x10
jmp 0x45a8f0
mov byte [ebp + eax - 0x1018], 0
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x1018]
call fcn.0045b6f0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x101c]
push ecx
push str.Output_of_::ReadFile_from_std_out__is:__s
lea edx, [ebp - 0x1024]
push edx
push esi
call fcn.00471a00
add esp, 0x10
cmp byte [ebp - 0x1025], 0
jne 0x45abb4
mov ecx, dword [ebp - 0x101c]
cmp dword [ecx - 0xc], ebx
jge 0x45aa8a
or esi, 0xffffffff
jmp 0x45aaad
push str.Duration:
push ecx
call fcn.004a59da
mov ecx, dword [ebp - 0x101c]
add esp, 8
cmp eax, ebx
jne 0x45aaa7
or esi, 0xffffffff
jmp 0x45aaad
sub eax, ecx
sar eax, 1
mov esi, eax
mov edx, dword [ecx - 0xc]
xor eax, eax
cmp esi, ebx
setle al
dec eax
and eax, esi
jl 0x45aae3
cmp eax, edx
jg 0x45aae3
lea eax, [ecx + eax*2]
push 0x4f1174
push eax
call fcn.004a59da
mov ecx, dword [ebp - 0x101c]
add esp, 8
cmp eax, ebx
je 0x45aae3
sub eax, ecx
sar eax, 1
mov ebx, eax
jmp 0x45aae6
or ebx, 0xffffffff
mov edx, dword [ebp - 0x102c]
push ecx
push str.Try_to_set_max_progress_using:__s
lea ecx, [ebp - 0x1024]
push ecx
push edx
call fcn.00471a00
add esp, 0x10
cmp esi, 0xffffffff
je 0x45abae
cmp ebx, 0xffffffff
je 0x45abae
mov eax, ebx
lea edx, [ebp - 0x101c]
sub eax, esi
push edx
sub eax, 0xa
lea ecx, [esi + 0xa]
lea edx, [ebp - 0x1034]
call fcn.0040b870
mov byte [ebp - 4], 3
cmp byte [edi + 0x68], 0
je 0x45ab79
lea ecx, [ebp - 0x1034]
call fcn.00405f50
lea ecx, [ebp - 0x101c]
call fcn.00405f50
push str.______________________Exit______________________
lea eax, [ebp - 0x1024]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1020]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
mov al, 1
jmp 0x45aec6
lea eax, [ebp - 0x1034]
call fcn.0045aef0
mov esi, dword [edi + 0xe8]
cdq
lea ecx, [edi + 0xe8]
push edx
mov edx, dword [esi + 4]
push eax
call edx
lea ecx, [ebp - 0x1034]
mov byte [ebp - 0x1025], 1
mov byte [ebp - 4], 2
call fcn.00405f50
mov esi, dword [ebp - 0x102c]
lea eax, [ebp - 0x101c]
push eax
call fcn.0045b020
push 0x4f200c
push 0x4f2010
lea ecx, [ebp - 0x101c]
push ecx
call fcn.00451ab0
mov edx, dword [ebp - 0x101c]
push 0x7e
push edx
call fcn.004a651b
add esp, 8
test eax, eax
je 0x45ada4
sub eax, dword [ebp - 0x101c]
sar eax, 1
cmp eax, 0xffffffff
je 0x45ada4
push 0x4e9034
push 0x4f200c
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x1030]
push ecx
mov bl, 1
call fcn.00478330
add esp, 0x10
lea eax, [ebp - 0x1030]
mov byte [ebp - 4], 4
call fcn.0045aef0
mov edx, dword [ebp - 0x1030]
mov ecx, dword [ebp - 0x102c]
push edx
mov esi, eax
push str.Current_time_s
lea eax, [ebp - 0x1024]
push eax
push ecx
call fcn.00471a00
xor ebx, ebx
add esp, 0x10
cmp esi, ebx
je 0x45ad0c
mov eax, dword [ebp - 0x1038]
cmp esi, eax
je 0x45ad0c
cmp byte [edi + 0x68], bl
je 0x45acb1
lea ecx, [ebp - 0x1030]
call fcn.00405f50
lea ecx, [ebp - 0x101c]
call fcn.00405f50
push str.______________________Exit______________________
lea edx, [ebp - 0x1024]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1020]
push edx
push eax
call fcn.00471a00
add esp, 0xc
mov al, 1
jmp 0x45aec6
fldz
lea ecx, [edi + 0xe8]
mov dword [ebp - 0x1098], ecx
fst qword [ebp - 0x1080]
lea ecx, [ebp - 0x1068]
fstp qword [ebp - 0x1078]
lea edx, [ebp - 0x1038]
mov dword [ebp - 0x108c], ecx
lea ecx, [ebp - 0x1098]
mov dword [ebp - 0x1094], edx
mov dword [ebp - 0x1090], ebx
mov dword [ebp - 0x1088], eax
mov dword [ebp - 0x1084], ebx
mov dword [ebp - 0x1070], ebx
mov dword [ebp - 0x1038], esi
call fcn.004769e0
mov edx, dword [edi + 0x30]
cmp edx, 1
je 0x45ad24
mov eax, dword [edi + 0x30]
cmp eax, 3
jne 0x45ad2b
cmp byte [edi + 0xb0], bl
jne 0x45ad2b
mov dword [edi + 0x30], 2
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1030]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45ad51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x102c]
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x103c]
push eax
lea ecx, [ebp - 0x1050]
push ecx
lea eax, [ebp - 0x1044]
push eax
mov ecx, edi
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x101c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a970
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45a970
push str.Started_to_check_progress_too_quick.
lea ecx, [ebp - 0x1024]
push ecx
push esi
call fcn.004719c0
add esp, 0xc
jmp 0x45ad57
movzx ecx, byte [edi + 0xb0]
movzx edx, byte [edi + 0x68]
mov eax, dword [edi + 0xd0]
push ecx
push edx
push eax
push str.Stop_detected._m_hStdOutRead_d_m_bAppClosing_d_m_bStop_d.
lea ecx, [ebp - 0x1024]
push ecx
push esi
call fcn.004719c0
add esp, 0x18
push str.______________________Exit______________________
lea edx, [ebp - 0x1024]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1020]
push edx
push eax
call fcn.00471a00
add esp, 0xc
mov al, 1
jmp 0x45aec6
cmp byte [edi + 0xb0], 0
jne 0x45ae2d
cmp byte [edi + 0x68], 0
jne 0x45ae2d
mov edx, dword [edi + 0xe8]
mov eax, dword [edx + 0xc]
lea ecx, [edi + 0xe8]
call eax
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x103c]
push eax
lea ecx, [ebp - 0x1050]
push ecx
lea eax, [ebp - 0x1044]
push eax
mov ecx, edi
call edx
movzx eax, byte [edi + 0xb0]
push eax
push str.Success_m_bStop_d.
lea ecx, [ebp - 0x1024]
push ecx
push esi
call fcn.004719c0
add esp, 0x10
push str.______________________Exit______________________
lea edx, [ebp - 0x1024]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1020]
push edx
push eax
call fcn.00471a00
add esp, 0xc
mov al, 1
jmp 0x45aec6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a52a5
mov esp, ebp
pop ebp
ret