Function at 0x57b920
Capabilities:
Check if file exists
Get file attributes
Get file size
Get socket status
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x63a2d8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp + 0x24], esi
xor edi, edi
mov dword [ebp - 4], edi
wait
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x310]
cmp ecx, 0x80
jne 0x57b977
mov dword [esi + 0x28], edi
jmp 0x57bc69
mov edx, dword [eax + 0x308]
cmp edx, 4
je 0x57bb58
cmp ecx, 0x40
jne 0x57b998
cmp byte [eax + 0x177], 0
jne 0x57bb58
cmp edx, 8
je 0x57bb58
cmp edx, 0x40
jne 0x57b9b3
cmp byte [eax + 0x177], 0
jne 0x57bb58
lea ecx, [ebp + 0x74]
call fcn.004024e0
mov ebx, 1
mov byte [ebp - 4], bl
lea eax, [ebp + 0x74]
push eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push edx
call fcn.00467330
push str.googleusercontent.com
mov eax, dword [ebp + 0x74]
push eax
call fcn.005fa111
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esi + 0x1b8]
or ecx, dword [esi + 0x1bc]
jne 0x57bb47
cmp byte [esi + 0x870], cl
jne 0x57bb47
cmp dword [esi + 0x1a4], ebx
jle 0x57bb47
mov ecx, dword [esi + 0xc]
cmp byte [ecx + 0x15f], 0
je 0x57bb47
cmp dword [ecx + 0x310], edi
jne 0x57bb47
mov ecx, dword [esi + 0x25c]
cmp byte [ecx + 0xc8], 0
je 0x57ba45
cmp eax, edi
je 0x57bb47
mov dword [ecx + 0x34dc], ebx
mov eax, dword [esi + 0x25c]
mov dword [eax + 0x34c0], edi
mov dword [eax + 0x34c4], edi
mov eax, dword [esi + 0x25c]
mov dword [eax + 0x34a8], edi
mov dword [eax + 0x34ac], edi
mov ecx, dword [esi + 0x25c]
mov byte [ecx + 0x6647], bl
mov eax, dword [esi + 0x25c]
lea ecx, [eax + 0x3458]
mov edx, dword [ecx]
add eax, 0x6638
push eax
mov eax, dword [edx + 0x18]
call eax
xor eax, eax
mov dword [ebp], eax
cmp eax, dword [esi + 0x464]
jae 0x57baba
mov ecx, dword [esi + 0x25c]
mov edx, dword [esi + eax*4 + 0x468]
cmp edx, dword [ecx + 0x6638]
je 0x57baba
add eax, ebx
jmp 0x57ba96
mov ecx, dword [esi + 0x464]
cmp eax, ecx
jne 0x57bae5
cmp ecx, 0x80
jae 0x57bae5
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x6638]
mov dword [esi + eax*4 + 0x468], edx
add dword [esi + 0x464], ebx
xor eax, eax
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 0x668]
jae 0x57bb0b
mov ecx, dword [esi + 0x25c]
mov edx, dword [esi + eax*4 + 0x66c]
cmp edx, dword [ecx + 0x6638]
je 0x57bb0b
add eax, ebx
jmp 0x57bae7
mov ecx, dword [esi + 0x668]
cmp eax, ecx
jne 0x57bb36
cmp ecx, 0x80
jae 0x57bb36
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x6638]
mov dword [esi + eax*4 + 0x66c], edx
add dword [esi + 0x668], ebx
mov eax, 2
mov dword [esi + 0x1b0], eax
mov dword [esi + 0x1a8], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x74]
call fcn.00402550
jmp 0x57bc69
mov dword [esi + 0x28], edi
cmp dword [eax + 0x300], edi
je 0x57bc69
cmp dword [esi + 0x238], edi
je 0x57bc69
mov eax, dword [eax + 0x300]
or dword [eax + 0x16c], 0x100
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x300]
cmp dword [eax + 0x91c], 3
jne 0x57bbb7
mov eax, dword [eax + 0x50]
cmp eax, edi
je 0x57bba8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x57bbb7
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x300]
mov dword [edx + 0x91c], edi
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x300]
mov eax, dword [ecx + 0x91c]
cmp eax, edi
je 0x57bbd8
cmp eax, 2
je 0x57bbd8
cmp eax, 4
jne 0x57bc69
cmp dword [ecx + 0x920], edi
jne 0x57bc69
push 0x686ef8
mov ecx, esi
call fcn.00597fd0
mov eax, dword [esi + 0x258]
cmp eax, edi
je 0x57bc24
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x300]
mov al, byte [eax + 0xac6]
mov byte [edx + 0xac6], al
mov ecx, dword [esi + 0x258]
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0x300]
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x300]
mov ecx, dword [edx + 0x20]
cmp ecx, edi
je 0x57bc59
push ecx
mov eax, dword [eax]
push eax
call fcn.005fa111
add esp, 8
test eax, eax
jne 0x57bc59
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x300]
mov dl, byte [eax + 0x338]
mov byte [ecx + 0x358], dl
push 1
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x300]
call fcn.005aac70
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x310], edi
je 0x57bc87
cmp byte [eax + 0x314], 0
je 0x57bc87
mov dword [eax + 0xb0], 1
push 1
mov ecx, dword [0x7104c0]
push ecx
mov ecx, esi
call fcn.00599180
mov ecx, dword [esi + 0x258]
cmp ecx, edi
je 0x57bca6
call fcn.0059c0e0
mov ecx, esi
call fcn.00598180
mov dword [ebp + 0x58], 0xbb8
mov ecx, esi
call fcn.00598780
add dword [esi + 0x1b4], 0xfffffffb
lea ecx, [ebp + 0x70]
call fcn.004024e0
mov byte [ebp - 4], 2
xor edi, edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
mov edx, dword [esi + 0x1c0]
mov dword [ebp + 0x34], edx
mov eax, dword [esi + 0x1c4]
mov dword [ebp + 0x38], eax
mov ecx, esi
call fcn.005988c0
mov dword [ebp + 4], 3
mov dword [ebp + 8], edi
lea ecx, [ebp - 0xa0]
push ecx
call fcn.005fbfd3
lea edx, [ebp - 0x20]
push edx
call fcn.005fbfd3
add esp, 8
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x58], 0
mov byte [ebp + 0x6e], 1
mov dword [ebp + 0x54], edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
lea ecx, [ecx]
cmp edi, dword [esi + 0x1a8]
jge 0x57bd61
mov eax, edi
imul eax, eax, 0x3458
mov ecx, dword [esi + 0x25c]
add ecx, eax
cmp dword [ecx + 0x84], 0
je 0x57bd5e
inc ebx
call fcn.00577f20
test al, al
je 0x57bd5e
inc dword [ebp + 0x54]
inc edi
jmp 0x57bd30
mov eax, 1
cmp dword [ebp + 0x54], eax
jne 0x57bd76
cmp ebx, eax
jne 0x57bd76
mov byte [ebp + 0x6e], 0
mov dword [ebp + 4], eax
cmp dword [esi + 0x1c], 0
je 0x57bdfa
lea ecx, [esi + 0x28]
call fcn.00545640
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x310], 0x20
jne 0x57bd9e
mov eax, dword [ecx + 0xf0]
mov ecx, dword [ecx + 0xf4]
jmp 0x57bdaa
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], 0
lea edx, [ebp - 0x64]
push edx
push 0x1471
push 0x111
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402550
mov eax, 0x7540
wait
jmp 0x57d076
mov ecx, esi
call fcn.00597d70
mov byte [ebp + 0x68], al
test al, al
je 0x57be26
lea edx, [ebp - 0x4c]
push edx
call fcn.005fbfd3
add esp, 4
mov eax, dword [esi + 0x1c0]
mov dword [ebp + 0x2c], eax
mov ecx, dword [esi + 0x1c4]
mov dword [ebp + 0x30], ecx
xor ebx, ebx
xor edi, edi
lea ebx, [ebx]
cmp edi, dword [esi + 0x1a8]
jge 0x57be60
mov edx, edi
imul edx, edx, 0x3458
mov eax, dword [esi + 0x25c]
lea ecx, [edx + eax]
cmp dword [ecx + 0x84], 0
je 0x57be96
call fcn.00563f80
test al, al
je 0x57be96
mov ebx, 1
mov byte [ebp + 0x6f], 0
cmp byte [ebp + 0x6e], 0
je 0x57be99
test ebx, ebx
jne 0x57bea8
lea ecx, [ebp + 4]
push ecx
lea edx, [esi + 0x668]
push edx
lea eax, [esi + 0x464]
push eax
lea ecx, [esi + 0x260]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
mov byte [ebp + 0x6f], 1
jmp 0x57bea8
inc edi
jmp 0x57be30
mov ebx, 1
mov dword [ebp + 4], 3
mov byte [ebp + 0x6e], bl
cmp dword [esi + 0x1c], 0
je 0x57bebb
lea ecx, [esi + 0x28]
call fcn.00545640
jmp 0x57bde3
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
jne 0x57befc
lea edx, [ebp - 0x20]
push edx
call fcn.005fbfd3
add esp, 4
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0xa0]
cmp eax, 0x12c
jle 0x57befc
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402550
mov eax, 0x7533
wait
jmp 0x57d076
mov ecx, dword [esi + 0x1c0]
mov dword [ebp + 0x44], ecx
mov edx, dword [esi + 0x1c4]
mov dword [ebp + 0x48], edx
cmp ebx, 0xffffffff
je 0x57bf67
test ebx, ebx
je 0x57bf67
xor ebx, ebx
lea esp, [esp]
cmp ebx, dword [esi + 0x1a8]
jge 0x57bf6e
mov eax, ebx
imul eax, eax, 0x3458
mov ecx, dword [esi + 0x25c]
lea edi, [eax + ecx]
cmp dword [edi + 0x84], 0
je 0x57bf64
cmp dword [esi + 0x1c], 0
jne 0x57beae
mov ecx, edi
cmp byte [ebp + 0x6f], 0
jne 0x57bf5f
call fcn.00563f80
test al, al
je 0x57bf64
mov ecx, edi
call fcn.00572a70
inc ebx
jmp 0x57bf20
mov ecx, esi
call fcn.00578800
mov edx, dword [ebp + 0x68]
push edx
xor ebx, ebx
push ebx
mov ecx, esi
call fcn.00598960
lea eax, [ebp - 0x2c]
push eax
call fcn.005fbfd3
add esp, 4
mov eax, dword [ebp - 0x2c]
mov ecx, eax
sub ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x3e8
movzx edx, word [ebp - 0x1c]
sub ecx, edx
mov di, word [ebp - 0x28]
movzx edx, di
add ecx, edx
cmp ecx, 0xfa
jl 0x57bfef
lea eax, [ebp - 0x20]
push eax
call fcn.005fbfd3
add esp, 4
xor edi, edi
jmp 0x57bfc0
cmp edi, dword [esi + 0x1a8]
jge 0x57bfe8
mov ecx, edi
imul ecx, ecx, 0x3458
mov edx, dword [esi + 0x25c]
add ecx, edx
cmp dword [ecx + 0x84], ebx
je 0x57bfe5
call fcn.00560c40
inc edi
jmp 0x57bfc0
mov di, word [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
cmp dword [esi + 0x24], ebx
jne 0x57c147
mov ecx, dword [esi + 0x1c0]
mov edx, dword [esi + 0x1c4]
cmp dword [ebp + 0x38], edx
jg 0x57c147
jl 0x57c018
cmp dword [ebp + 0x34], ecx
jae 0x57c147
cmp dword [ebp + 0x44], ecx
jne 0x57c147
cmp dword [ebp + 0x48], edx
jne 0x57c147
mov ecx, dword [ebp + 0x60]
imul eax, eax, 0x3e8
or ecx, dword [ebp + 0x64]
jne 0x57c049
movzx edx, di
add eax, edx
cdq
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], edx
jmp 0x57c14d
movzx ecx, di
add eax, ecx
cdq
mov edi, eax
mov ebx, edx
mov ecx, dword [esi + 0xc]
call fcn.00560c00
fstp qword [ebp + 0x14]
mov ecx, dword [esi + 0xc]
call fcn.00560bc0
fld qword [ebp + 0x14]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x57c076
fstp st(1)
jmp 0x57c078
fstp st(0)
fmul qword [0x686ef0]
fadd qword [0x686ee8]
call fcn.005fa886
sub edi, dword [ebp + 0x60]
sbb ebx, dword [ebp + 0x64]
cmp ebx, edx
jl 0x57c14d
jg 0x57c0a1
cmp edi, eax
jbe 0x57c14d
xor ebx, ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov ecx, esi
call fcn.005ac0e0
test eax, eax
je 0x57c14d
cmp dword [esi + 0x1c], ebx
jne 0x57bde3
push str.Restart_type_s018_n
mov ecx, esi
call fcn.00597fd0
mov ecx, dword [esi + 0x25c]
call fcn.00566f90
mov ecx, dword [esi + 0x25c]
call fcn.00565550
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx]
lea eax, [ecx + 0x31e0]
push eax
mov edx, dword [edx + 0x18]
call edx
mov edi, eax
cmp edi, ebx
jne 0x57c10f
push ebx
mov ecx, dword [esi + 0x25c]
call fcn.00574ef0
mov edi, eax
cmp edi, ebx
je 0x57c123
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402550
mov eax, edi
wait
jmp 0x57d076
mov eax, dword [esi + 0x1c0]
mov dword [ebp + 0x34], eax
mov ecx, dword [esi + 0x1c4]
mov dword [ebp + 0x38], ecx
push 1
mov edx, dword [0x7104c0]
push edx
mov ecx, esi
call fcn.00599180
jmp 0x57c14d
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xb0], 2
jne 0x57c554
mov bl, 1
mov ecx, dword [esi + 0x1b8]
mov edx, dword [esi + 0x1bc]
mov eax, edx
test eax, eax
jl 0x57c18c
jg 0x57c178
cmp ecx, 0x32
jbe 0x57c18c
mov eax, dword [esi + 0x25c]
cmp dword [eax + 0x74], 0
jl 0x57c1ad
jg 0x57c18c
cmp dword [eax + 0x70], 0x32
jb 0x57c1ad
test edx, edx
jg 0x57c1c9
jl 0x57c197
cmp ecx, 0x32
ja 0x57c1c9
mov eax, dword [esi + 0x25c]
mov edi, dword [eax + 0x74]
cmp edi, edx
jg 0x57c1c9
jl 0x57c1ad
mov edx, dword [eax + 0x70]
cmp edx, ecx
jae 0x57c1c9
xor bl, bl
cmp byte [eax + 0xc8], bl
je 0x57c1c9
mov ecx, dword [eax + 0x48]
or ecx, dword [eax + 0x4c]
jne 0x57c1c9
cmp byte [eax + 0xc9], cl
je 0x57c1c9
mov bl, 1
mov ecx, dword [esi + 0xc]
xor edi, edi
test dword [ecx + 0x14c], 0x100
je 0x57c245
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], edi
jg 0x57c245
jl 0x57c1f1
cmp eax, 0x7d1
jae 0x57c245
mov eax, dword [ecx]
push str.youtube.com
push eax
call fcn.005f9c10
add esp, 8
test eax, eax
jne 0x57c21c
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push str.googlevideo.com
push eax
call fcn.005f9c10
add esp, 8
test eax, eax
je 0x57c245
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
cmp ecx, edi
jl 0x57c554
jg 0x57c23d
cmp eax, 0x7d1
jb 0x57c554
or eax, ecx
je 0x57c554
test bl, bl
je 0x57c554
movzx eax, byte [esi + 0x253]
push eax
mov ecx, dword [esi + 0xc]
call fcn.005b5be0
mov dword [ebp + 0x5c], eax
cmp byte [0x70fc04], 0
jne 0x57c275
mov ecx, dword [esi + 0xc]
cmp byte [ecx + 0x332], 0
jne 0x57c27e
cmp byte [esi + 0x870], 0
je 0x57c2e7
mov edx, dword [esi + 0xc]
cmp dword [edx + 0xb0], 2
jne 0x57c28e
cmp eax, edi
je 0x57c2e7
mov ecx, dword [esi + 0x25c]
call fcn.00566f90
lea ecx, [esi + 0x28]
call fcn.005464d0
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
cmp byte [0x70fc04], 0
jne 0x57c870
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x332], 0
je 0x57c870
jmp 0x57bde3
cmp dword [esi + 0xb8], edi
jle 0x57c37a
mov edi, dword [esi + 0xc]
mov edx, dword [edi + 0xcc]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57c301
sub eax, ebx
je 0x57c37a
mov edi, dword [edi + 0xbc]
test edi, edi
je 0x57c338
mov eax, edx
lea ebx, [eax + 1]
jmp 0x57c320
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57c320
sub eax, ebx
push eax
push edi
push edx
call fcn.005fd020
add esp, 0xc
test eax, eax
je 0x57c37a
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x57c359
mov ecx, dword [esi + 0xb8]
push ecx
mov edx, dword [ebp]
push edx
push 0x111
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x18]
cmp dword [eax], 0
je 0x57c37a
mov ecx, dword [esi + 0xb8]
push ecx
mov edx, dword [ebp]
push edx
push 0x111
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 0x5c], 0
je 0x57c554
cmp dword [esi + 0x13c], 0
jne 0x57c4f6
cmp byte [0x70fc04], 0
jne 0x57c485
mov byte [ebp + 0x6f], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x57c3fd
mov edi, dword [eax + 0xe4]
mov eax, edi
lea ebx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x57c3c0
sub eax, ebx
je 0x57c3fd
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x57c3f0
test dl, dl
je 0x57c3ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x57c3f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x57c3d0
xor eax, eax
jmp 0x57c3f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x57c3fd
mov byte [ebp + 0x6f], 1
mov edx, dword [esi + 0x1b8]
mov edi, dword [esi + 0x1bc]
test edi, edi
jl 0x57c434
jg 0x57c413
test edx, edx
jbe 0x57c434
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xe8]
mov ecx, dword [ecx + 0xec]
test ecx, ecx
jl 0x57c434
jg 0x57c42c
test eax, eax
jbe 0x57c434
cmp eax, edx
jne 0x57c43a
cmp ecx, edi
jne 0x57c43a
cmp byte [ebp + 0x6f], 0
je 0x57c485
push 0x64f8bc
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0xe4]
call fcn.00402fc0
mov eax, dword [esi + 0xc]
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
push 0x50040
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [0x710cc0]
push eax
push 0
call fcn.00469b60
add esp, 0x10
jmp 0x57bde3
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x57c4f6
cmp dword [eax + 0x34], 0
je 0x57c499
mov eax, dword [eax + 0x34]
jmp 0x57c49c
add eax, 0x38
push 0x2e
push eax
call fcn.005f80fb
add esp, 8
mov edi, eax
test edi, edi
je 0x57c4f6
push 0x66092c
push edi
call fcn.005fdd2a
add esp, 8
test eax, eax
je 0x57c4f6
push 0x65b258
push edi
call fcn.005fdd2a
add esp, 8
test eax, eax
je 0x57c4f6
push 0x50004
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [0x710534]
push eax
push 0
call fcn.00469b60
add esp, 0x10
cmp eax, 7
je 0x57bde3
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x57c554
cmp dword [eax + 0x34], 0
je 0x57c50a
mov eax, dword [eax + 0x34]
jmp 0x57c50d
add eax, 0x38
push 0x2e
push eax
call fcn.005f80fb
add esp, 8
mov edi, eax
test edi, edi
je 0x57c554
push 0x66092c
push edi
call fcn.005fdd2a
add esp, 8
test eax, eax
je 0x57c554
push 0x65b258
push edi
call fcn.005fdd2a
add esp, 8
test eax, eax
je 0x57c554
mov ecx, dword [esi + 0xc]
call fcn.005b1ba0
mov edi, eax
test edi, edi
jne 0x57c10f
cmp byte [ebp + 0x68], 0
je 0x57c78c
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jl 0x57c78c
jg 0x57c57e
cmp eax, 0x400
jbe 0x57c78c
mov ecx, esi
call fcn.00597d40
mov ebx, eax
mov edi, edx
lea ecx, [ebp - 0x38]
push ecx
call fcn.005fbfd3
add esp, 4
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
sub eax, dword [ebp + 0x2c]
sbb ecx, dword [ebp + 0x30]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
js 0x57c78c
jg 0x57c5bd
test eax, eax
jbe 0x57c78c
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x4c]
imul eax, eax, 0x3e8
movzx edx, word [ebp - 0x48]
sub eax, edx
movzx ecx, word [ebp - 0x34]
add eax, ecx
mov dword [ebp + 0x74], eax
jne 0x57c5e1
mov dword [ebp + 0x74], 1
fild qword [ebp + 0xc]
fmul qword [0x65d2f8]
fidiv dword [ebp + 0x74]
call fcn.005fa886
mov ecx, eax
cmp edx, edi
jl 0x57c78c
jg 0x57c606
cmp ecx, ebx
jbe 0x57c78c
sub ecx, ebx
sbb edx, edi
mov dword [ebp + 0x50], edx
mov eax, dword [ebp + 0x74]
cdq
push edx
push eax
mov edx, dword [ebp + 0x50]
push edx
push ecx
call fcn.005fd4d0
push edi
push ebx
push edx
push eax
call fcn.005fc580
mov dword [ebp + 0x74], eax
mov eax, dword [esi + 0x1c8]
cdq
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], edx
push 0
push 2
push edi
push ebx
call fcn.005fc580
cmp dword [ebp + 0x40], edx
jg 0x57c676
jl 0x57c64d
cmp dword [ebp + 0x3c], eax
jae 0x57c676
mov eax, 0x66666667
imul dword [ebp + 0x74]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp + 0x74], eax
mov ecx, dword [ebp + 0x74]
xor ebx, ebx
cmp ecx, 0x2ee0
jle 0x57c6a7
mov ecx, 0x2ee0
jmp 0x57c6af
push 0
push 9
push edi
push ebx
call fcn.005fd4d0
push 0
push 0xa
push edx
push eax
call fcn.005fc580
cmp dword [ebp + 0x40], edx
jg 0x57c662
jl 0x57c698
cmp dword [ebp + 0x3c], eax
jae 0x57c662
mov eax, dword [ebp + 0x74]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [ebp + 0x74], ecx
jmp 0x57c665
cmp ecx, ebx
jle 0x57c78c
mov edi, dword [esi + 0x86c]
cmp edi, 0xffffffff
je 0x57c785
mov dword [esi + 0x260], ebx
mov dword [esi + 0x464], ebx
mov dword [esi + 0x668], ebx
xor eax, eax
cmp eax, dword [esi + 0x260]
jae 0x57c6e6
cmp dword [esi + eax*4 + 0x264], edi
je 0x57c6e6
inc eax
jmp 0x57c6d2
mov edx, dword [esi + 0x260]
cmp eax, edx
jne 0x57c705
cmp edx, 0x80
jae 0x57c705
mov dword [esi + eax*4 + 0x264], edi
inc dword [esi + 0x260]
xor eax, eax
cmp eax, dword [esi + 0x668]
jae 0x57c721
mov edx, dword [esi + eax*4 + 0x66c]
cmp edx, dword [esi + 0x86c]
je 0x57c721
inc eax
jmp 0x57c707
lea edi, [esi + 0x668]
mov edx, dword [edi]
cmp eax, edx
jne 0x57c744
cmp edx, 0x80
jae 0x57c744
mov edx, dword [esi + 0x86c]
mov dword [esi + eax*4 + 0x66c], edx
inc dword [edi]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp + 0x1c], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [ebp + 0x20], ecx
lea eax, [ebp + 0x1c]
push eax
push edi
lea ecx, [esi + 0x464]
push ecx
lea edx, [esi + 0x260]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_select]
jmp 0x57c78c
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00578470
mov dword [ebp + 0x5c], eax
test eax, eax
je 0x57d046
cmp eax, 1
jne 0x57c8ac
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x310], 0
je 0x57c8ac
cmp byte [eax + 0x314], 0
je 0x57c8ac
cmp dword [esi + 0x40], 0
jne 0x57c8ac
mov ecx, dword [esi + 0x25c]
add ecx, 0x10
call fcn.00554f50
mov ecx, esi
call fcn.0057b0c0
test eax, eax
je 0x57c887
mov eax, dword [esi + 0xc]
mov byte [eax + 0x32b], 0
mov ecx, dword [esi + 0xc]
mov byte [ecx + 0x32c], 1
mov edx, dword [esi + 0xc]
mov byte [edx + 0x31a], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0xc]
fld qword [eax + 0x18]
fstp qword [ecx + 0x390]
mov ecx, esi
call fcn.00598350
mov al, byte [0x70fc04]
test al, al
jne 0x57c833
mov edx, dword [esi + 0xc]
cmp byte [edx + 0x332], al
jne 0x57c844
cmp byte [esi + 0x870], 0
je 0x57d046
test al, al
jne 0x57c854
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x332], 0
jne 0x57bde3
lea ecx, [esi + 0x28]
call fcn.005464d0
mov dword [esi + 0x1c0], 0
mov dword [esi + 0x1c4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402550
mov eax, 0x756a
wait
jmp 0x57d076
mov ecx, dword [esi + 0xc]
mov byte [ecx + 0x32b], 0
mov edx, dword [esi + 0xc]
mov byte [edx + 0x32c], 1
mov eax, dword [esi + 0xc]
mov byte [eax + 0x31a], 0
mov dword [ebp + 0x5c], 0x753c
cmp dword [esi + 0x1c], 0
jne 0x57beae
push str.http:rcd__dwnl_finished__s1_t7__r_n
mov ecx, esi
call fcn.00597fd0
mov ecx, dword [esi + 0xc]
test dword [ecx + 0x14c], 0x100
je 0x57cd27
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jg 0x57cd27
jl 0x57c8f5
cmp eax, 0x7d1
jae 0x57cd27
mov eax, dword [ecx]
push str.youtube.com
push eax
call fcn.005f9c10
add esp, 8
test eax, eax
jne 0x57c924
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push str.googlevideo.com
push eax
call fcn.005f9c10
add esp, 8
test eax, eax
je 0x57cd27
push str.http:rcd__Check_for_redirect__s1_r_n
mov ecx, esi
call fcn.00597fd0
mov dword [ebp + 0x68], 0
mov edx, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
cmp edx, eax
jne 0x57c955
cmp dword [esi + 0x1c4], ecx
je 0x57c95d
or eax, ecx
jne 0x57cd27
mov ecx, dword [esi + 0x25c]
add ecx, 0x10
call fcn.00554f50
mov edx, dword [esi + 0xc]
cmp byte [edx + 0x32b], 0
je 0x57c97e
mov ecx, esi
call fcn.00579d20
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 0x10]
push ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
call ebx
mov edi, eax
mov dword [ebp + 0x28], edi
cmp edi, 0xffffffff
jne 0x57ca36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x140], eax
cmp eax, 0x20
je 0x57c9c7
cmp eax, 5
jne 0x57ccf6
lea ecx, [ebp + 0x74]
call fcn.004024e0
mov byte [ebp - 4], 3
mov edx, dword [esi + 0x140]
push edx
push str.Check_for_redirect__cf_failed__lastErr_ld_Sleep_1000_r_n
lea eax, [ebp + 0x74]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp + 0x74]
push ecx
mov ecx, esi
call fcn.00597fd0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x10]
push eax
call ebx
mov edi, eax
mov dword [ebp + 0x28], edi
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x74]
call fcn.00402550
cmp edi, 0xffffffff
je 0x57ccf6
mov ebx, dword [esi + 0x1c0]
mov dword [ebp + 0x4c], ebx
mov ecx, dword [esi + 0x1c4]
mov dword [ebp + 0x50], ecx
mov dword [ebp + 0x74], ebx
mov eax, dword [esi + 0x1b8]
or eax, dword [esi + 0x1bc]
je 0x57ca65
mov edx, dword [esi + 0xc]
cmp byte [edx + 0x32b], 0
je 0x57ca8c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp + 0x74], ebx
test ebx, ebx
jne 0x57ca8c
mov ebx, dword [esi + 0x1c0]
mov dword [ebp + 0xc], ebx
mov eax, dword [esi + 0x1c4]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x74], ebx
mov ecx, dword [esi + 0x25c]
cmp dword [ecx + 0x31d8], 0
je 0x57cad5
mov byte [ebp - 4], 4
wait
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31d8]
push eax
call fcn.005cfa9b
add esp, 4
wait
mov dword [ebp - 4], 2
jmp 0x57cad5
lea eax, [ebx + 1]
push eax
call fcn.005cfaa6
add esp, 4
mov ecx, dword [esi + 0x25c]
mov dword [ecx + 0x31d8], eax
mov edx, dword [esi + 0x25c]
cmp dword [edx + 0x31d8], 0
je 0x57cbeb
push str.Check_for_redirect__s2_r_n
mov ecx, esi
call fcn.00597fd0
mov dword [ebp + 0x74], 0
push 0
lea eax, [ebp + 0x74]
push eax
push ebx
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x31d8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0x18], eax
test eax, eax
je 0x57cc96
cmp dword [ebp + 0x74], ebx
jne 0x57cc96
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x31d8]
mov byte [ebx + ecx], 0
push str.Check_for_redirect__s3__fc:_r_n
mov ecx, esi
call fcn.00597fd0
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31d8]
push eax
mov ecx, esi
call fcn.00597fd0
push 0x6511cc
mov ecx, esi
call fcn.00597fd0
push 7
push 0x64ef50
mov ecx, dword [esi + 0x25c]
mov edx, dword [ecx + 0x31d8]
push edx
call fcn.005fd020
add esp, 0xc
test eax, eax
je 0x57cc7f
push 8
push 0x64ef30
mov eax, dword [esi + 0x25c]
mov ecx, dword [eax + 0x31d8]
push ecx
call fcn.005fd020
add esp, 0xc
test eax, eax
je 0x57cc7f
mov edx, dword [esi + 0x25c]
mov eax, dword [edx + 0x31d8]
push eax
call fcn.005cfa9b
add esp, 4
mov eax, dword [esi + 0x25c]
mov dword [eax + 0x31d8], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [ebp + 0x68], edi
je 0x57cd27
push str.http:rcd__Redirect_found_r_n
mov ecx, esi
call fcn.00597fd0
mov dword [esi + 0x1c0], edi
mov dword [esi + 0x1c4], edi
fldz
fstp qword [esi + 0x188]
lea ebx, [esi + 0x28]
mov ecx, ebx
call fcn.00545640
mov ecx, ebx
call fcn.005464d0
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov eax, dword [esi + 0x25c]
mov dword [eax + 0x50], edi
mov dword [eax + 0x54], edi
mov ecx, dword [esi + 0x25c]
call fcn.00565550
push 1
push edi
push edi
mov ecx, esi
call fcn.00599560
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402550
mov eax, 0x7583
wait
jmp 0x57d076
mov ecx, dword [esi + 0x25c]
call fcn.0056be30
mov dword [ebp + 0x68], 1
jmp 0x57cbeb
lea ecx, [ebp + 0x68]
call fcn.004024e0
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0x74]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0x18]
push edx
push str.Check_for_redirect__rf_res_ld__lastErr_ld__buff_ld__read_ld_r_n
lea eax, [ebp + 0x68]
push eax
call fcn.00402f60
add esp, 0x18
mov ecx, dword [ebp + 0x68]
push ecx
mov ecx, esi
call fcn.00597fd0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x68]
call fcn.00402550
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402550
or eax, 0xffffffff
wait
jmp 0x57d076
lea ecx, [ebp + 0x68]
call fcn.004024e0
mov byte [ebp - 4], 7
mov edx, dword [esi + 0x140]
push edx
push str.Check_for_redirect__cf_failed__lastErr_ld_r_n
lea eax, [ebp + 0x68]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp + 0x68]
push ecx
mov ecx, esi
call fcn.00597fd0
jmp 0x57ccd5
mov edi, dword [ebp + 0x5c]
cmp edi, 0x753c
je 0x57cd3b
cmp edi, 0xffffffff
jne 0x57cdc8
mov eax, dword [esi + 0xc]
test dword [eax + 0x14c], 0x100
je 0x57cf5e
cmp dword [eax + 0x30], 0
je 0x57cf5e
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
je 0x57cf5e
mov eax, dword [esi + 0x1b8]
cmp dword [esi + 0x1bc], 0
jl 0x57cf5e
jg 0x57cd8a
cmp eax, 0x40000000
jbe 0x57cf5e
push str.Checking_flv_file_struct._n
mov ecx, esi
call fcn.00597fd0
mov ecx, esi
call fcn.0057a400
test eax, eax
je 0x57cf5e
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
push 1
push ecx
push eax
mov ecx, esi
call fcn.00599560
push str.DurationlastTimeStamp__seems_the_flv_file_is_comlete._n
mov ecx, esi
call fcn.00597fd0
mov edx, dword [esi + 0x1c0]
mov eax, dword [esi + 0x1c4]
mov dword [ebp + 0x50], eax
mov eax, dword [esi + 0x1b8]
mov ecx, dword [esi + 0x1bc]
cmp edx, eax
jne 0x57ce8c
mov edi, ecx
cmp dword [ebp + 0x50], edi
jne 0x57ce8c
mov edi, eax
or edi, ecx
je 0x57ce8c
mov edi, dword [esi + 0x10]
cmp dword [edi], 0
je 0x57ce3a
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [esi + 0x1c4]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x1c8]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x7c]
push ecx
push 0x1471
push 0x111
mov edx, dword [edi]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x14]
cmp dword [edx], 0
je 0x57ce8c
mov eax, dword [esi + 0x238]
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ecx
mov eax, dword [esi + 0x1c8]
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x94]
push ecx
push 0x1394
push 0x111
mov edx, dword [edx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x1c4]
push eax
mov ecx, dword [esi + 0x1c0]
push ecx
mov edx, dword [0x7104bc]
push edx
lea eax, [ebp + 0x70]
push eax
call fcn.00402f60
add esp, 0x10
push 1
mov ecx, dword [ebp + 0x70]
push ecx
mov ecx, esi
call fcn.00599180
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
mov dword [ebp + 0x50], ecx
mov edx, dword [esi + 0x1b8]
mov edi, dword [esi + 0x1bc]
cmp eax, edx
jne 0x57cee4
mov ecx, edi
cmp dword [ebp + 0x50], ecx
je 0x57cfc8
mov ecx, edx
or ecx, edi
je 0x57cfc8
mov dword [ebp + 0x44], eax
mov eax, dword [esi + 0x1c4]
mov dword [ebp + 0x48], eax
mov eax, edx
mov ecx, edi
mov ebx, dword [esi + 0xc]
mov ebx, dword [ebx + 0x34c]
mov dword [ebp + 0x1c], ebx
add eax, ebx
mov ebx, 0
adc ecx, ebx
cmp dword [ebp + 0x44], eax
jne 0x57cf21
cmp dword [ebp + 0x48], ecx
je 0x57cfc8
mov eax, edx
mov ecx, edi
add eax, dword [ebp + 0x1c]
adc ecx, ebx
cmp dword [esi + 0x1c4], ecx
jl 0x57cfb4
jg 0x57cf40
cmp dword [esi + 0x1c0], eax
jbe 0x57cfb4
lea ecx, [esi + 0x28]
call fcn.00545e60
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x70]
call fcn.00402550
mov eax, 0x7570
wait
jmp 0x57d076
mov edx, dword [esi + 0x1c4]
push edx
mov eax, dword [esi + 0x1c0]
push eax
mov ecx, dword [0x7104c8]
push ecx
lea edx, [ebp + 0x70]
push edx
call fcn.00402f60
add esp, 0x10
push 1
mov eax, dword [ebp + 0x70]
push eax
mov ecx, esi
call fcn.00599180
mov esi, dword [esi + 0x140]
test esi, esi
je 0x57cf9e
cmp edi, 0x753c
je 0x57cfa0
mov esi, edi
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402550
mov eax, esi
wait
jmp 0x57d076
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x70]
call fcn.00402550
or eax, 0xffffffff
wait
jmp 0x57d076
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x310], 0
je 0x57d002
mov eax, dword [esi + 0x40]
test eax, eax
je 0x57d002
mov eax, dword [eax + 0x28]
test eax, eax
je 0x57d002
mov eax, dword [eax + 0x48]
test eax, eax
je 0x57d002
cmp dword [ecx + 0x308], 8
jne 0x57d002
add ecx, 0x3dc
push ecx
push eax
call fcn.00463980
add esp, 8
xor edi, edi
cmp edi, dword [esi + 0x1a8]
jge 0x57d02e
mov edx, edi
imul edx, edx, 0x3458
mov eax, dword [esi + 0x25c]
lea ecx, [edx + eax]
cmp dword [ecx + 0x84], 0
je 0x57d02b
call fcn.00560c40
inc edi
jmp 0x57d004
mov ecx, esi
call fcn.0059a300
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402550
xor eax, eax
wait
jmp 0x57d076
mov ecx, esi
call fcn.00578ab0
mov ecx, esi
call fcn.0059a300
jmp 0x57bd76
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x78
mov esp, ebp
pop ebp
ret