Function at 0x405734
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4ec
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], edx
mov dword [esp + 0xa0], ecx
test ecx, ecx
jne 0x40579a
call sub.avformat_52.dll_av_gettime
mov ebx, eax
mov esi, edx
mov edx, dword [0x419068]
mov ecx, dword [0x41906c]
mov eax, edx
and eax, ecx
inc eax
je 0x40626d
mov edi, ebx
mov ebp, esi
sub edi, edx
sbb ebp, ecx
cmp ebp, 0
jl 0x405b88
jle 0x406358
mov dword [0x419068], ebx
mov dword [0x41906c], esi
mov edi, dword [0x41f040]
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call sub.avformat_52.dll_url_fsize
mov ebx, eax
mov esi, edx
test edx, edx
js 0x40632c
mov byte [esp + 0xdc], 0
mov edi, dword [esp + 0x98]
test edi, edi
jle 0x406369
fld dword [0x41c644]
fstp qword [esp + 0x90]
xor ebp, ebp
mov dword [esp + 0x8c], 0
lea eax, [esp + 0xdc]
mov dword [esp + 0x3c], eax
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], esi
mov ebx, ebp
nop
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x9c]
mov esi, dword [edi + edx*4]
mov edx, dword [esi + 0xc]
mov eax, edx
mov ebp, dword [edx + 8]
test ebx, ebx
je 0x405b94
mov ecx, dword [ebp + 0xdc]
test ecx, ecx
jne 0x4058a2
mov eax, dword [edx + 0x44]
test eax, eax
jne 0x405ddc
mov eax, dword [ebp + 0x190]
fild dword [eax + 0x48]
fstp dword [esp + 0xcc]
fld dword [esp + 0xcc]
fdiv dword [0x41c61c]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
xor eax, eax
mov ecx, 0xffffffff
mov edi, dword [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
fstp qword [esp + 0xc]
mov dword [esp + 8], str.q_2.1f
mov eax, 0x400
sub eax, ecx
mov dword [esp + 4], eax
lea ebp, [esp + 0xdc]
lea ecx, [ebp + ecx]
mov dword [esp], ecx
call fcn.00410500
mov edx, dword [esi + 0xc]
mov eax, edx
fild qword [eax + 0x20]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fild dword [eax + 0x3c]
fidivr dword [eax + 0x38]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fmulp st(1)
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fld qword [esp + 0x90]
fucomp st(1)
fnstsw ax
test ah, 0x45
jne 0x405904
fldz
fxch st(1)
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x45
jne 0x405908
fstp qword [esp + 0x90]
jmp 0x40590a
fstp st(0)
jmp 0x40590a
fstp st(0)
inc dword [esp + 0x8c]
mov eax, dword [esp + 0x98]
cmp dword [esp + 0x8c], eax
jl 0x405804
mov ebx, dword [esp + 0xa8]
mov esi, dword [esp + 0xac]
fld qword [esp + 0x90]
fld xword [0x41c630]
fucompp
fnstsw ax
test ah, 0x45
jne 0x405956
fld qword [0x41c5d0]
fstp qword [esp + 0x90]
mov eax, dword [0x41904c]
test eax, eax
jne 0x40596e
mov ebp, dword [esp + 0xa0]
test ebp, ebp
je 0x405b88
lea ebp, [esp + 0xdc]
xor eax, eax
mov ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ebx
mov edx, esi
shld edx, eax, 3
shl eax, 3
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], edx
fild qword [esp + 0xb8]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fdiv qword [esp + 0x90]
fdiv dword [0x41c63c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x90]
fstp qword [esp + 0x14]
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], esi
fild qword [esp + 0xb8]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fld dword [0x41c640]
fmulp st(1)
fstp qword [esp + 0xc]
mov dword [esp + 8], str.size_8.0fkB_time_0.2f_bitrate_6.1fkbits_s
mov eax, 0x400
sub eax, ecx
mov dword [esp + 4], eax
lea ecx, [ebp + ecx]
mov dword [esp], ecx
call fcn.00410500
mov edx, dword [0x41fe94]
test edx, edx
jne 0x405e0c
mov edi, dword [0x41fe90]
mov dword [esp + 0x8c], edi
test edi, edi
jne 0x405e18
mov edi, dword [0x41904c]
test edi, edi
jns 0x405e62
mov edi, dword [sym.imp.msvcrt.dll__iob]
add edi, 0x40
mov dword [esp], edi
call sub.msvcrt.dll_fflush
mov ecx, dword [esp + 0xa0]
test ecx, ecx
je 0x405b88
mov edx, dword [0x41904c]
test edx, edx
js 0x405b88
mov edx, dword [0x41fe70]
mov ecx, dword [0x41fe74]
add edx, dword [0x41fe68]
adc ecx, dword [0x41fe6c]
add edx, dword [0x41fe48]
adc ecx, dword [0x41fe4c]
mov dword [esp + 4], 0x419959
mov dword [esp], edi
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], ecx
call fcn.00401728
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
sub ebx, edx
sbb esi, ecx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], esi
fild qword [esp + 0xb8]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fld dword [0x41c650]
fmulp st(1)
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ecx
fild qword [esp + 0xb8]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fdivp st(1)
fstp qword [esp + 0x20]
fild qword [0x41fe48]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fld dword [0x41c640]
fmul st(1), st(0)
fxch st(1)
fstp qword [esp + 0x18]
fild qword [0x41fe68]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fmul st(1)
fstp qword [esp + 0x10]
fild qword [0x41fe70]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fmulp st(1)
fstp qword [esp + 8]
mov dword [esp + 4], str.video:_1.0fkB_audio:_1.0fkB_global_headers:_1.0fkB_muxing_overhead__f___n
mov dword [esp], edi
call fcn.00401728
add esp, 0x4ec
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp + 0xdc]
test edi, edi
jne 0x4058a4
call sub.avformat_52.dll_av_gettime
sub eax, dword [0x41fe50]
sbb edx, dword [0x41fe54]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], edx
fild qword [esp + 0xb8]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fld dword [0x41c5d8]
fdivp st(1)
fstp dword [esp + 0xcc]
fld dword [esp + 0xcc]
mov eax, dword [esi + 0x14]
mov dword [esp + 0xa4], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x44]
test ecx, ecx
jne 0x405df4
mov eax, dword [ebp + 0x190]
fild dword [eax + 0x48]
fstp dword [esp + 0xcc]
fld dword [esp + 0xcc]
fdiv dword [0x41c61c]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fld1
fxch st(2)
fucom st(2)
fnstsw ax
fstp st(2)
test ah, 0x45
jne 0x405de8
fild dword [esp + 0xa4]
fstp dword [esp + 0xcc]
fld dword [esp + 0xcc]
fdivrp st(2)
fxch st(1)
fadd dword [0x41c648]
fnstcw word [esp + 0xb2]
mov ax, word [esp + 0xb2]
mov ah, 0xc
mov word [esp + 0xb0], ax
fldcw word [esp + 0xb0]
fistp dword [esp + 0xb4]
fldcw word [esp + 0xb2]
mov edx, dword [esp + 0xb4]
mov ecx, 0xffffffff
mov edi, dword [esp + 0x3c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
fstp qword [esp + 0x14]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.frame_5d_fps_3d_q_3.1f
mov ebx, 0x400
mov eax, ebx
sub eax, ecx
mov dword [esp + 4], eax
lea edi, [esp + 0xdc]
lea ecx, [edi + ecx]
mov dword [esp], ecx
call fcn.00410500
mov edx, dword [esp + 0xa0]
test edx, edx
jne 0x4061e4
mov eax, dword [0x41f3d4]
test eax, eax
je 0x405dc5
mov eax, dword [ebp + 0x190]
fild dword [eax + 0x48]
fstp dword [esp + 0xcc]
fld dword [esp + 0xcc]
fdiv dword [0x41c61c]
fstp dword [esp + 0xcc]
fld dword [esp + 0xcc]
fistp dword [esp + 0x4dc]
mov eax, dword [esp + 0x4dc]
cmp eax, 0x33
jbe 0x405e00
xor ebx, ebx
mov eax, dword [ebx*4 + 0x41fea0]
inc eax
mov dword [esp + 0xb4], eax
fild dword [esp + 0xb4]
fstp qword [esp]
call sub.msvcrt.dll_log
fld xword [0x41c660]
fdivp st(1)
fstp dword [esp + 0xcc]
fld dword [esp + 0xcc]
fistp dword [esp + 0x4dc]
mov ecx, 0xffffffff
mov edi, dword [esp + 0x3c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [esp + 0x4dc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4198f6
mov eax, 0x400
sub eax, ecx
mov dword [esp + 4], eax
lea edx, [esp + 0xdc]
lea ecx, [edx + ecx]
mov dword [esp], ecx
call fcn.00410500
inc ebx
cmp ebx, 0x20
jne 0x405d40
test byte [ebp + 0xd], 0x80
jne 0x405e84
mov eax, dword [esi + 0xc]
mov ebx, 1
jmp 0x4058a4
fld1
fchs
jmp 0x405865
fstp st(1)
xor edx, edx
jmp 0x405c96
fld1
fchs
jmp 0x405c2f
inc dword [eax*4 + 0x41fea0]
jmp 0x405d3e
mov eax, dword [0x41fe90]
mov dword [esp + 0x8c], eax
xor eax, eax
mov ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], str._dup_d_drop_d
mov eax, 0x400
sub eax, ecx
mov dword [esp + 4], eax
lea ecx, [ebp + ecx]
mov dword [esp], ecx
call fcn.00410500
mov edi, dword [0x41904c]
test edi, edi
js 0x405a4c
mov dword [esp + 8], ebp
mov dword [esp + 4], str._s_____r
mov edi, dword [sym.imp.msvcrt.dll__iob]
lea eax, [edi + 0x40]
mov dword [esp], eax
call fcn.00401728
jmp 0x405a52
xor eax, eax
mov ecx, 0xffffffff
mov edi, dword [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], str.PSNR
mov eax, 0x400
sub eax, ecx
mov dword [esp + 4], eax
lea edi, [esp + 0xdc]
lea ecx, [edi + ecx]
mov dword [esp], ecx
call fcn.00410500
mov edi, dword [esp + 0xa0]
test edi, edi
jne 0x406219
mov eax, dword [ebp + 0x190]
fild qword [eax + 0x78]
mov ebx, dword [eax + 0x7c]
test ebx, ebx
js 0x40637b
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
mov eax, dword [ebp + 0x2c]
imul eax, dword [ebp + 0x28]
fld dword [0x41c5c8]
fld st(0)
push eax
fimul dword [esp]
add esp, 4
fmulp st(1)
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fld st(1)
fdiv st(1)
fstp qword [esp]
fstp xword [esp + 0x60]
fstp xword [esp + 0x70]
call sub.msvcrt.dll_log
xor eax, eax
mov ecx, 0xffffffff
mov edi, dword [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
fld dword [0x41c5c4]
fmulp st(1)
fdiv qword [0x41c628]
fstp qword [esp + 0x10]
mov dword [esp + 0xc], 0x59
mov dword [esp + 8], str._c:_2.2f
mov eax, 0x400
sub eax, ecx
mov dword [esp + 4], eax
lea eax, [esp + 0xdc]
lea ecx, [eax + ecx]
mov dword [esp], ecx
call fcn.00410500
mov edx, dword [esp + 0xa0]
test edx, edx
fld xword [esp + 0x60]
fld xword [esp + 0x70]
jne 0x4062d8
mov eax, dword [ebp + 0x190]
fild qword [eax + 0x80]
mov eax, dword [eax + 0x84]
test eax, eax
js 0x4063b2
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
mov eax, dword [ebp + 0x2c]
imul eax, dword [ebp + 0x28]
fld dword [0x41c5c8]
fld st(0)
push eax
fimul dword [esp]
add esp, 4
fmulp st(1)
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fld dword [0x41c64c]
fmulp st(1)
fxch st(2)
fadd st(1)
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fxch st(2)
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fadd st(3), st(0)
fxch st(3)
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fxch st(3)
fdivp st(1)
fstp qword [esp]
fxch st(1)
fstp qword [esp + 0x40]
fstp qword [esp + 0x50]
call sub.msvcrt.dll_log
xor eax, eax
mov ecx, 0xffffffff
mov edi, dword [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
fld dword [0x41c5c4]
fmulp st(1)
fdiv qword [0x41c628]
fstp qword [esp + 0x10]
mov dword [esp + 0xc], 0x55
mov dword [esp + 8], str._c:_2.2f
mov eax, 0x400
sub eax, ecx
mov dword [esp + 4], eax
lea edx, [esp + 0xdc]
lea ecx, [edx + ecx]
mov dword [esp], ecx
call fcn.00410500
mov ebx, dword [esp + 0xa0]
test ebx, ebx
fld qword [esp + 0x40]
fld qword [esp + 0x50]
jne 0x406284
mov eax, dword [ebp + 0x190]
fild qword [eax + 0x88]
mov ecx, dword [eax + 0x8c]
test ecx, ecx
js 0x4063a7
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
mov eax, dword [ebp + 0x2c]
imul eax, dword [ebp + 0x28]
fld dword [0x41c5c8]
fld st(0)
push eax
fimul dword [esp]
add esp, 4
fmulp st(1)
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fld dword [0x41c64c]
fmulp st(1)
fxch st(2)
fadd st(1)
fxch st(2)
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fadd st(3), st(0)
fdivp st(1)
fstp qword [esp]
fxch st(1)
fstp xword [esp + 0x40]
fstp xword [esp + 0x50]
call sub.msvcrt.dll_log
xor ebp, ebp
mov ecx, 0xffffffff
mov edi, dword [esp + 0x3c]
mov eax, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
fld dword [0x41c5c4]
fmul st(1), st(0)
fld qword [0x41c628]
fdiv st(2), st(0)
fxch st(2)
fstp qword [esp + 0x10]
fxch st(1)
mov dword [esp + 0xc], 0x56
mov dword [esp + 8], str._c:_2.2f
mov ebx, 0x400
mov eax, ebx
sub eax, ecx
mov dword [esp + 4], eax
lea edx, [esp + 0xdc]
lea ecx, [edx + ecx]
mov dword [esp], ecx
fstp xword [esp + 0x60]
fstp xword [esp + 0x70]
call fcn.00410500
fld xword [esp + 0x50]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fld xword [esp + 0x40]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
fdivp st(1)
fstp qword [esp]
call sub.msvcrt.dll_log
mov ecx, 0xffffffff
mov edi, dword [esp + 0x3c]
mov eax, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
fld xword [esp + 0x70]
fmulp st(1)
fld xword [esp + 0x60]
fdivp st(1)
fstp qword [esp + 0xc]
mov dword [esp + 8], str.:_2.2f
sub ebx, ecx
mov dword [esp + 4], ebx
lea edx, [esp + 0xdc]
lea ecx, [edx + ecx]
mov dword [esp], ecx
call fcn.00410500
jmp 0x405dcf
mov ecx, 0xffffffff
mov edi, dword [esp + 0x3c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], 0x4198f4
sub ebx, ecx
mov dword [esp + 4], ebx
lea edx, [esp + 0xdc]
lea ecx, [edx + ecx]
mov dword [esp], ecx
call fcn.00410500
jmp 0x405cef
fild qword [ebp + 0x1a0]
mov ecx, dword [ebp + 0x1a4]
test ecx, ecx
js 0x40639c
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
mov eax, dword [ebp + 0x2c]
imul eax, dword [ebp + 0x28]
fld dword [0x41c5c8]
fld st(0)
push eax
fimul dword [esp]
add esp, 4
fmulp st(1)
fimul dword [esp + 0xa4]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
jmp 0x405f10
mov dword [0x419068], ebx
mov dword [0x41906c], esi
add esp, 0x4ec
pop ebx
pop esi
pop edi
pop ebp
ret
fild qword [ebp + 0x1b0]
mov edx, dword [ebp + 0x1b4]
test edx, edx
js 0x406391
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
mov eax, dword [ebp + 0x2c]
imul eax, dword [ebp + 0x28]
fld dword [0x41c5c8]
fld st(0)
push eax
fimul dword [esp]
add esp, 4
fmulp st(1)
fimul dword [esp + 0xa4]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
jmp 0x4060de
fild qword [ebp + 0x1a8]
mov edi, dword [ebp + 0x1ac]
test edi, edi
js 0x406386
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
mov eax, dword [ebp + 0x2c]
imul eax, dword [ebp + 0x28]
fld dword [0x41c5c8]
fld st(0)
push eax
fimul dword [esp]
add esp, 4
fmulp st(1)
fimul dword [esp + 0xa4]
fstp qword [esp + 0xc0]
fld qword [esp + 0xc0]
jmp 0x405fd8
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call sub.avformat_52.dll_avio_seek
mov ebx, eax
mov esi, edx
jmp 0x4057b7
cmp edi, 0x7a11f
jbe 0x405b88
jmp 0x40578e
fld dword [0x41c644]
fstp qword [esp + 0x90]
jmp 0x405956
fadd dword [0x41c620]
jmp 0x405edc
fadd dword [0x41c620]
jmp 0x4062ec
fadd dword [0x41c620]
jmp 0x406298
fadd dword [0x41c620]
jmp 0x40622d
fadd dword [0x41c620]
jmp 0x4060aa
fadd dword [0x41c620]
jmp 0x405fa4