Function at 0x593f30
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 - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x662f98
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x758898]
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 + 0x34], esi
xor edi, edi
mov dword [ebp - 4], edi
wait
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x334]
cmp ecx, 0x80
je 0x5942a1
cmp ecx, 8
jne 0x593f9d
cmp dword [eax + 0x32c], ecx
je 0x593f9d
cmp byte [eax + 0x18d], 0
jne 0x5942a1
mov edx, dword [eax + 0x32c]
cmp edx, 4
je 0x59418a
cmp ecx, 0x40
jne 0x593fbe
cmp byte [eax + 0x18f], 0
jne 0x59418a
cmp edx, 8
je 0x59418a
cmp ecx, 0x800
je 0x59418a
cmp edx, 0x40
jne 0x593fe5
cmp byte [eax + 0x18f], 0
jne 0x59418a
lea ecx, [ebp + 0x6c]
call fcn.00402510
mov ebx, 1
mov byte [ebp - 4], bl
lea eax, [ebp + 0x6c]
push eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push edx
call fcn.00466820
push str.googleusercontent.com
mov eax, dword [ebp + 0x6c]
push eax
call fcn.00621d5e
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esi + 0x1c0]
or ecx, dword [esi + 0x1c4]
jne 0x594179
cmp byte [esi + 0x888], cl
jne 0x594179
cmp dword [esi + 0x1ac], ebx
jle 0x594179
mov ecx, dword [esi + 0xc]
cmp byte [ecx + 0x173], 0
je 0x594179
cmp dword [ecx + 0x334], edi
jne 0x594179
mov ecx, dword [esi + 0x274]
cmp byte [ecx + 0xe0], 0
je 0x594077
cmp eax, edi
je 0x594179
mov dword [ecx + 0x3524], ebx
mov eax, dword [esi + 0x274]
mov dword [eax + 0x3508], edi
mov dword [eax + 0x350c], edi
mov eax, dword [esi + 0x274]
mov dword [eax + 0x34e8], edi
mov dword [eax + 0x34ec], edi
mov ecx, dword [esi + 0x274]
mov byte [ecx + 0x6697], bl
mov eax, dword [esi + 0x274]
lea ecx, [eax + 0x3488]
mov edx, dword [ecx]
add eax, 0x6688
push eax
mov eax, dword [edx + 0x18]
call eax
xor eax, eax
mov dword [ebp - 0x40], eax
cmp eax, dword [esi + 0x47c]
jae 0x5940ec
mov ecx, dword [esi + 0x274]
mov edx, dword [esi + eax*4 + 0x480]
cmp edx, dword [ecx + 0x6688]
je 0x5940ec
add eax, ebx
jmp 0x5940c8
mov ecx, dword [esi + 0x47c]
cmp eax, ecx
jne 0x594117
cmp ecx, 0x80
jae 0x594117
mov ecx, dword [esi + 0x274]
mov edx, dword [ecx + 0x6688]
mov dword [esi + eax*4 + 0x480], edx
add dword [esi + 0x47c], ebx
xor eax, eax
mov dword [ebp - 0x20], eax
cmp eax, dword [esi + 0x680]
jae 0x59413d
mov ecx, dword [esi + 0x274]
mov edx, dword [esi + eax*4 + 0x684]
cmp edx, dword [ecx + 0x6688]
je 0x59413d
add eax, ebx
jmp 0x594119
mov ecx, dword [esi + 0x680]
cmp eax, ecx
jne 0x594168
cmp ecx, 0x80
jae 0x594168
mov ecx, dword [esi + 0x274]
mov edx, dword [ecx + 0x6688]
mov dword [esi + eax*4 + 0x684], edx
add dword [esi + 0x680], ebx
mov eax, 2
mov dword [esi + 0x1b8], eax
mov dword [esi + 0x1b0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x6c]
call fcn.00402580
jmp 0x5942a9
mov dword [esi + 0x28], edi
cmp dword [eax + 0x320], edi
je 0x5942a4
cmp dword [esi + 0x240], edi
je 0x5942a4
mov eax, dword [eax + 0x320]
or dword [eax + 0x17c], 0x100
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x320]
cmp dword [eax + 0x954], 3
jne 0x5941e9
mov eax, dword [eax + 0x50]
cmp eax, edi
je 0x5941da
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5941e9
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x320]
mov dword [edx + 0x954], edi
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x320]
mov eax, dword [ecx + 0x954]
cmp eax, edi
je 0x59420a
cmp eax, 2
je 0x59420a
cmp eax, 4
jne 0x5942a4
cmp dword [ecx + 0x958], edi
jne 0x5942a4
push str.Starting_audio_thread_r_n
mov ecx, esi
call fcn.005b3e00
mov eax, dword [esi + 0x260]
cmp eax, edi
je 0x594256
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x320]
mov al, byte [eax + 0xaff]
mov byte [edx + 0xaff], al
mov ecx, dword [esi + 0x260]
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0x320]
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x320]
mov ecx, dword [edx + 0x20]
cmp ecx, edi
je 0x59428b
push ecx
mov eax, dword [eax]
push eax
call fcn.00621d5e
add esp, 8
test eax, eax
jne 0x59428b
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x320]
mov dl, byte [eax + 0x35c]
mov byte [ecx + 0x37c], dl
mov ebx, 1
push ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x320]
call fcn.005c7940
jmp 0x5942a9
mov dword [esi + 0x28], edi
mov ebx, 1
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x334], edi
je 0x5942c3
cmp byte [eax + 0x338], 0
je 0x5942c3
mov dword [eax + 0xb0], ebx
mov byte [ebp + 0x6a], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push str..googlevideo.com
push eax
call fcn.006218e0
add esp, 8
test eax, eax
je 0x5945e7
mov byte [esi + 0x258], 1
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x32c], 4
jne 0x5945e7
cmp dword [esi + 0x40], edi
jne 0x5945e7
cmp byte [eax + 0x338], 0
jne 0x5945e7
mov ecx, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], edi
jl 0x5945e7
jg 0x59432f
cmp ecx, 0x1000000
jbe 0x5945e7
cmp dword [eax + 0xfc], edi
je 0x59433f
mov eax, dword [eax + 0xfc]
jmp 0x594344
add eax, 0x100
push 0x2e
push eax
call fcn.0061fd52
mov edi, eax
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0xa4]
push 0x681bc0
push eax
call fcn.00621d5e
add esp, 0x10
test eax, eax
je 0x5945dc
test edi, edi
je 0x594387
push str..mp4
push edi
call fcn.0062574a
add esp, 8
test eax, eax
je 0x5945dc
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xbc]
test eax, eax
je 0x5943c9
push str.video_mp4
push eax
call fcn.00621d5e
add esp, 8
test eax, eax
je 0x5945dc
push 0x6b2888
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0xbc]
push edx
call fcn.00621d5e
add esp, 8
test eax, eax
je 0x5945dc
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x5945e7
push eax
call fcn.00456330
add esp, 4
mov edx, dword [esi + 0x1c0]
mov edi, dword [esi + 0x1c4]
mov ecx, dword [esi + 0x274]
lea ebx, [ecx + 0x78]
push ebx
push edi
push edx
mov edx, dword [ecx + 0x80]
add edx, dword [ecx + 0x60]
mov edi, dword [ecx + 0x84]
adc edi, dword [ecx + 0x64]
push edi
push edx
xor edi, edi
push edi
push eax
lea ecx, [esi + 0x28]
call fcn.00555290
test eax, eax
je 0x5945e2
mov ecx, dword [esi + 0x274]
mov edx, dword [ecx + 0x68]
mov eax, dword [ecx + 0x6c]
cmp eax, edi
jl 0x594453
jg 0x594436
cmp edx, edi
jb 0x594453
sub edx, 0x40
sbb eax, edi
mov ebx, dword [ecx + 0x7c]
cmp ebx, eax
jg 0x5945e2
jl 0x594453
mov eax, dword [ecx + 0x78]
cmp eax, edx
jae 0x5945e2
call fcn.0057d750
mov eax, dword [esi + 0x274]
mov ecx, dword [eax + 0x80]
add dword [eax + 0x60], ecx
mov edx, dword [eax + 0x84]
adc dword [eax + 0x64], edx
mov eax, dword [esi + 0x274]
mov dword [eax + 0x80], edi
mov dword [eax + 0x84], edi
mov ecx, dword [esi + 0x274]
mov eax, dword [ecx]
lea edx, [ecx + 0x3200]
push edx
mov eax, dword [eax + 0x18]
call eax
mov dword [esi + 0x278], edi
mov dword [esi + 0x47c], edi
mov dword [esi + 0x680], edi
xor eax, eax
lea ebx, [eax + 1]
mov dword [ebp - 0x34], eax
cmp eax, dword [esi + 0x47c]
jae 0x5944d1
mov ecx, dword [esi + 0x274]
mov edx, dword [esi + eax*4 + 0x480]
cmp edx, dword [ecx + 0x3200]
je 0x5944d1
add eax, ebx
jmp 0x5944ad
mov ecx, dword [esi + 0x47c]
cmp eax, ecx
jne 0x5944fc
cmp ecx, 0x80
jae 0x5944fc
mov ecx, dword [esi + 0x274]
mov edx, dword [ecx + 0x3200]
mov dword [esi + eax*4 + 0x480], edx
add dword [esi + 0x47c], ebx
xor eax, eax
mov dword [ebp - 0x24], eax
cmp eax, dword [esi + 0x680]
jae 0x594522
mov ecx, dword [esi + 0x274]
mov edx, dword [esi + eax*4 + 0x684]
cmp edx, dword [ecx + 0x3200]
je 0x594522
add eax, ebx
jmp 0x5944fe
mov ecx, dword [esi + 0x680]
cmp eax, ecx
jne 0x59454d
cmp ecx, 0x80
jae 0x59454d
mov ecx, dword [esi + 0x274]
mov edx, dword [ecx + 0x3200]
mov dword [esi + eax*4 + 0x684], edx
add dword [esi + 0x680], ebx
mov ecx, dword [esi + 0x884]
cmp ecx, 0xffffffff
je 0x5945e7
xor eax, eax
mov dword [ebp - 0x38], eax
cmp eax, dword [esi + 0x278]
jae 0x594576
cmp dword [esi + eax*4 + 0x27c], ecx
je 0x594576
add eax, ebx
jmp 0x59455e
mov edx, dword [esi + 0x278]
cmp eax, edx
jne 0x594595
cmp edx, 0x80
jae 0x594595
mov dword [esi + eax*4 + 0x27c], ecx
add dword [esi + 0x278], ebx
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp eax, dword [esi + 0x680]
jae 0x5945b5
mov ecx, dword [esi + eax*4 + 0x684]
cmp ecx, dword [esi + 0x884]
je 0x5945b5
add eax, ebx
jmp 0x594597
mov ecx, dword [esi + 0x680]
cmp eax, ecx
jne 0x5945e7
cmp ecx, 0x80
jae 0x5945e7
mov edx, dword [esi + 0x884]
mov dword [esi + eax*4 + 0x684], edx
add dword [esi + 0x680], ebx
jmp 0x5945e7
mov byte [ebp + 0x6a], 1
jmp 0x5945e7
mov ebx, 1
push ebx
mov eax, dword [0x75ebc0]
push eax
mov ecx, esi
call fcn.005b4f40
mov ecx, dword [esi + 0x260]
test ecx, ecx
je 0x594604
call fcn.005b8070
mov ecx, esi
call fcn.005b3fb0
mov dword [ebp + 0x50], 0xbb8
mov ecx, esi
call fcn.005b4530
add dword [esi + 0x1bc], 0xfffffffb
lea ecx, [ebp + 0x70]
call fcn.00402510
mov byte [ebp - 4], 2
xor edi, edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
mov ecx, dword [esi + 0x1c8]
mov dword [ebp + 0x2c], ecx
mov edx, dword [esi + 0x1cc]
mov dword [ebp + 0x30], edx
mov ecx, esi
call fcn.005b4670
xor eax, eax
cmp byte [esi + 0x258], al
sete al
add eax, 2
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edi
lea ecx, [ebp - 0xb4]
push ecx
call fcn.00623d61
lea edx, [ebp - 0x30]
push edx
call fcn.00623d61
add esp, 8
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x50], 0x14db
mov byte [ebp + 0x69], 1
mov dword [ebp + 0x54], edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], edi
cmp edi, dword [esi + 0x1b0]
jge 0x5946c6
mov eax, edi
imul eax, eax, 0x3488
mov ecx, dword [esi + 0x274]
add ecx, eax
cmp dword [ecx + 0x9c], 0
je 0x5946c3
inc ebx
call fcn.0058fdf0
test al, al
je 0x5946c3
inc dword [ebp + 0x54]
inc edi
jmp 0x594695
mov eax, 1
cmp dword [ebp + 0x54], eax
jne 0x5946e0
cmp ebx, eax
jne 0x5946e0
mov byte [ebp + 0x69], 0
mov dword [ebp + 8], eax
jmp 0x5946e0
cmp dword [esi + 0x1c], 0
je 0x594764
lea ecx, [esi + 0x28]
call fcn.00559aa0
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x334], 0x20
jne 0x594708
mov eax, dword [ecx + 0xf0]
mov ecx, dword [ecx + 0xf4]
jmp 0x594714
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ecx
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1cc]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], 0
lea edx, [ebp - 0x78]
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.00402580
mov eax, 0x7540
wait
jmp 0x595df0
mov ecx, esi
call fcn.005b3ba0
mov byte [ebp + 0x58], al
test al, al
je 0x594790
lea edx, [ebp - 0x4c]
push edx
call fcn.00623d61
add esp, 4
mov eax, dword [esi + 0x1c8]
mov dword [ebp + 0x20], eax
mov ecx, dword [esi + 0x1cc]
mov dword [ebp + 0x24], ecx
xor ebx, ebx
xor edi, edi
cmp edi, dword [esi + 0x1b0]
jge 0x5947c4
mov edx, edi
imul edx, edx, 0x3488
mov eax, dword [esi + 0x274]
lea ecx, [edx + eax]
cmp dword [ecx + 0x9c], 0
je 0x5947fa
call fcn.0057a370
test al, al
je 0x5947fa
mov ebx, 1
mov byte [ebp + 0x6b], 0
cmp byte [ebp + 0x69], 0
je 0x5947fd
test ebx, ebx
jne 0x594816
lea ecx, [ebp + 8]
push ecx
lea edx, [esi + 0x680]
push edx
lea eax, [esi + 0x47c]
push eax
lea ecx, [esi + 0x278]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
mov byte [ebp + 0x6b], 1
jmp 0x594816
inc edi
jmp 0x594794
mov ebx, 1
xor edx, edx
cmp byte [esi + 0x258], dl
sete dl
add edx, 2
mov dword [ebp + 8], edx
mov byte [ebp + 0x69], bl
cmp dword [esi + 0x1c], 0
je 0x594829
lea ecx, [esi + 0x28]
call fcn.00559aa0
jmp 0x59474d
mov eax, dword [esi + 0x1c8]
or eax, dword [esi + 0x1cc]
jne 0x59486b
lea eax, [ebp - 0x30]
push eax
call fcn.00623d61
add esp, 4
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0xb4]
cmp ecx, 0x12c
jle 0x59486b
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402580
mov eax, 0x7533
wait
jmp 0x595df0
mov edx, dword [esi + 0x1c8]
mov dword [ebp + 0x40], edx
mov eax, dword [esi + 0x1cc]
mov dword [ebp + 0x44], eax
cmp ebx, 0xffffffff
je 0x5948cf
test ebx, ebx
je 0x5948cf
xor ebx, ebx
cmp ebx, dword [esi + 0x1b0]
jge 0x5948d6
mov ecx, ebx
imul ecx, ecx, 0x3488
mov edx, dword [esi + 0x274]
lea edi, [ecx + edx]
cmp dword [edi + 0x9c], 0
je 0x5948cc
cmp dword [esi + 0x1c], 0
jne 0x59481c
mov ecx, edi
cmp byte [ebp + 0x6b], 0
jne 0x5948c7
call fcn.0057a370
test al, al
je 0x5948cc
mov ecx, edi
call fcn.0058a080
inc ebx
jmp 0x594888
mov ecx, esi
call fcn.005906f0
mov eax, dword [ebp + 0x58]
push eax
push 0
mov ecx, esi
call fcn.005b4710
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00623d61
add esp, 4
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x30]
imul edx, edx, 0x3e8
movzx eax, word [ebp - 0x2c]
sub edx, eax
movzx ecx, word [ebp - 0x18]
add edx, ecx
cmp edx, 0xfa
jl 0x594949
lea edx, [ebp - 0x30]
push edx
call fcn.00623d61
add esp, 4
xor edi, edi
lea ecx, [ecx]
cmp edi, dword [esi + 0x1b0]
jge 0x594949
mov eax, edi
imul eax, eax, 0x3488
mov ecx, dword [esi + 0x274]
add ecx, eax
cmp dword [ecx + 0x9c], 0
je 0x594946
call fcn.00577040
inc edi
jmp 0x594920
mov eax, dword [esi + 0xc]
cmp byte [eax + 0x174], 0
je 0x594970
mov ecx, dword [esi + 0x274]
mov edx, dword [ecx + 0x88]
or edx, dword [ecx + 0x8c]
je 0x594970
mov byte [eax + 0x174], 0
xor edx, edx
cmp dword [esi + 0x24], edx
jne 0x594ad2
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1cc]
cmp dword [ebp + 0x30], ecx
jg 0x594ad2
jl 0x59499b
cmp dword [ebp + 0x2c], eax
jae 0x594ad2
cmp dword [ebp + 0x40], eax
jne 0x594ad2
cmp dword [ebp + 0x44], ecx
jne 0x594ad2
mov eax, dword [ebp + 0x5c]
or eax, dword [ebp + 0x60]
mov eax, dword [ebp - 0x1c]
jne 0x5949cd
imul eax, eax, 0x3e8
movzx ecx, word [ebp - 0x18]
add eax, ecx
cdq
mov dword [ebp + 0x5c], eax
jmp 0x594ad5
imul eax, eax, 0x3e8
movzx edx, word [ebp - 0x18]
add eax, edx
cdq
mov edi, eax
mov ebx, edx
mov ecx, dword [esi + 0xc]
call fcn.00577000
fstp qword [ebp + 0x38]
mov ecx, dword [esi + 0xc]
call fcn.00576fc0
fld qword [ebp + 0x38]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x594a01
fstp st(1)
jmp 0x594a03
fstp st(0)
fmul qword [0x6b2880]
fadd qword [0x6b2878]
call fcn.006224d6
sub edi, dword [ebp + 0x5c]
sbb ebx, dword [ebp + 0x60]
cmp ebx, edx
jl 0x594ad8
jg 0x594a2c
cmp edi, eax
jbe 0x594ad8
xor eax, eax
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], eax
mov ecx, esi
call fcn.005c8db0
test eax, eax
je 0x594ad8
cmp dword [esi + 0x1c], 0
jne 0x59474d
push str.Restart_type_s018_n
mov ecx, esi
call fcn.005b3e00
mov ecx, dword [esi + 0x274]
call fcn.0057d750
mov ecx, dword [esi + 0x274]
call fcn.0057bb50
mov ecx, dword [esi + 0x274]
mov eax, dword [ecx]
lea edx, [ecx + 0x3200]
push edx
mov eax, dword [eax + 0x18]
call eax
mov edi, eax
test edi, edi
jne 0x594a9b
push eax
mov ecx, dword [esi + 0x274]
call fcn.0058cb70
mov edi, eax
test edi, edi
je 0x594aaf
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402580
mov eax, edi
wait
jmp 0x595df0
mov ecx, dword [esi + 0x1c8]
mov dword [ebp + 0x2c], ecx
mov edx, dword [esi + 0x1cc]
mov dword [ebp + 0x30], edx
push 1
mov eax, dword [0x75ebc0]
push eax
mov ecx, esi
call fcn.005b4f40
jmp 0x594ad8
mov dword [ebp + 0x5c], edx
mov dword [ebp + 0x60], edx
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xb0], 2
jne 0x594ef4
mov bl, 1
mov ecx, dword [esi + 0x1c0]
mov edx, dword [esi + 0x1c4]
mov eax, edx
test eax, eax
jl 0x594b1d
jg 0x594b03
cmp ecx, 0x32
jbe 0x594b1d
mov eax, dword [esi + 0x274]
cmp dword [eax + 0x8c], 0
jl 0x594b46
jg 0x594b1d
cmp dword [eax + 0x88], 0x32
jb 0x594b46
mov eax, edx
test eax, eax
jg 0x594b62
jl 0x594b2a
cmp ecx, 0x32
ja 0x594b62
mov eax, dword [esi + 0x274]
mov edi, dword [eax + 0x8c]
cmp edi, edx
jg 0x594b62
jl 0x594b46
mov edx, dword [eax + 0x88]
cmp edx, ecx
jae 0x594b62
xor bl, bl
cmp byte [eax + 0xe0], bl
je 0x594b62
mov ecx, dword [eax + 0x58]
or ecx, dword [eax + 0x5c]
jne 0x594b62
cmp byte [eax + 0xe1], cl
je 0x594b62
mov bl, 1
mov ecx, dword [esi + 0xc]
test dword [ecx + 0x15c], 0x100
je 0x594bdd
mov eax, dword [esi + 0x1c8]
cmp dword [esi + 0x1cc], 0
jg 0x594bdd
jl 0x594b89
cmp eax, 0x7d1
jae 0x594bdd
mov eax, dword [ecx]
push str.youtube.com
push eax
call fcn.006218e0
add esp, 8
test eax, eax
jne 0x594bb4
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push str.googlevideo.com
push eax
call fcn.006218e0
add esp, 8
test eax, eax
je 0x594bdd
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
test ecx, ecx
jl 0x594ef4
jg 0x594bd5
cmp eax, 0x7d1
jb 0x594ef4
or eax, ecx
je 0x594ef4
test bl, bl
je 0x594ef4
movzx eax, byte [esi + 0x25e]
push eax
mov ecx, dword [esi + 0xc]
call fcn.005d3000
mov dword [ebp + 0x64], eax
mov edi, dword [esi + 0xc]
cmp byte [edi + 0x356], 0
je 0x594c12
mov ecx, 0x75e2a4
call fcn.00577150
test al, al
jne 0x594c1b
cmp byte [esi + 0x888], 0
je 0x594c89
xor ebx, ebx
cmp dword [edi + 0xb0], 2
jne 0x594c2b
cmp dword [ebp + 0x64], ebx
je 0x594c8b
mov ecx, dword [esi + 0x274]
call fcn.0057d750
lea ecx, [esi + 0x28]
call fcn.0055a970
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0x1c8], ebx
mov dword [esi + 0x1cc], ebx
mov ecx, dword [esi + 0xc]
cmp byte [ecx + 0x356], 0
je 0x595219
mov ecx, 0x75e2a4
call fcn.00577150
test al, al
je 0x595219
jmp 0x59474d
xor ebx, ebx
cmp dword [esi + 0xb8], ebx
jle 0x594d1a
mov edx, dword [edi + 0xcc]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x594ca2
sub eax, ebx
je 0x594d1a
mov edi, dword [edi + 0xbc]
test edi, edi
je 0x594cd8
mov eax, edx
lea ebx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x594cc0
sub eax, ebx
push eax
push edi
push edx
call fcn.00624cad
add esp, 0xc
test eax, eax
je 0x594d1a
mov eax, dword [esi + 0x14]
cmp dword [eax], 0
je 0x594cf9
mov edx, dword [esi + 0xb8]
push edx
mov ecx, dword [ebp + 0x50]
push ecx
push 0x111
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x18]
cmp dword [eax], 0
je 0x594d1a
mov ecx, dword [esi + 0xb8]
push ecx
mov edx, dword [ebp + 0x50]
push edx
push 0x111
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 0x64], 0
je 0x594ef4
cmp dword [esi + 0x148], 0
jne 0x594e96
cmp byte [0x75e2ab], 0
jne 0x594e25
mov byte [ebp + 0x6b], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xbc]
test ecx, ecx
je 0x594d9d
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 0x594d60
sub eax, ebx
je 0x594d9d
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x594d90
test dl, dl
je 0x594d8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x594d90
add eax, 2
add ecx, 2
test dl, dl
jne 0x594d70
xor eax, eax
jmp 0x594d95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x594d9d
mov byte [ebp + 0x6b], 1
mov edx, dword [esi + 0x1c0]
mov edi, dword [esi + 0x1c4]
test edi, edi
jl 0x594dd4
jg 0x594db3
test edx, edx
jbe 0x594dd4
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xe8]
mov ecx, dword [ecx + 0xec]
test ecx, ecx
jl 0x594dd4
jg 0x594dcc
test eax, eax
jbe 0x594dd4
cmp eax, edx
jne 0x594dda
cmp ecx, edi
jne 0x594dda
cmp byte [ebp + 0x6b], 0
je 0x594e25
push 0x67997c
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0xe4]
call fcn.0054f250
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 [0x75f3c0]
push eax
push 0
call fcn.00472fb0
add esp, 0x10
jmp 0x59474d
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x594e96
cmp dword [eax + 0x34], 0
je 0x594e39
mov eax, dword [eax + 0x34]
jmp 0x594e3c
add eax, 0x38
push 0x2e
push eax
call fcn.0061fd52
add esp, 8
mov edi, eax
test edi, edi
je 0x594e96
push 0x68b324
push edi
call fcn.0062574a
add esp, 8
test eax, eax
je 0x594e96
push 0x6856f4
push edi
call fcn.0062574a
add esp, 8
test eax, eax
je 0x594e96
push 0x50004
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [0x75ec34]
push eax
push 0
call fcn.00472fb0
add esp, 0x10
cmp eax, 7
je 0x59474d
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x3c], 0
je 0x594ef4
cmp dword [eax + 0x34], 0
je 0x594eaa
mov eax, dword [eax + 0x34]
jmp 0x594ead
add eax, 0x38
push 0x2e
push eax
call fcn.0061fd52
add esp, 8
mov edi, eax
test edi, edi
je 0x594ef4
push 0x68b324
push edi
call fcn.0062574a
add esp, 8
test eax, eax
je 0x594ef4
push 0x6856f4
push edi
call fcn.0062574a
add esp, 8
test eax, eax
je 0x594ef4
mov ecx, dword [esi + 0xc]
call fcn.005ce530
mov edi, eax
test edi, edi
jne 0x594a9b
cmp byte [ebp + 0x58], 0
je 0x59512c
mov eax, dword [esi + 0x1c8]
cmp dword [esi + 0x1cc], 0
jl 0x59512c
jg 0x594f1e
cmp eax, 0x400
jbe 0x59512c
mov ecx, esi
call fcn.005b3b70
mov ebx, eax
mov edi, edx
lea ecx, [ebp - 0x58]
push ecx
call fcn.00623d61
add esp, 4
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1cc]
sub eax, dword [ebp + 0x20]
sbb ecx, dword [ebp + 0x24]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
js 0x59512c
jg 0x594f5d
test eax, eax
jbe 0x59512c
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x4c]
imul eax, eax, 0x3e8
movzx edx, word [ebp - 0x48]
sub eax, edx
movzx ecx, word [ebp - 0x54]
add eax, ecx
mov dword [ebp + 0x6c], eax
jne 0x594f81
mov dword [ebp + 0x6c], 1
fild qword [ebp]
fmul qword [0x687b30]
fidiv dword [ebp + 0x6c]
call fcn.006224d6
mov ecx, eax
cmp edx, edi
jl 0x59512c
jg 0x594fa6
cmp ecx, ebx
jbe 0x59512c
sub ecx, ebx
sbb edx, edi
mov dword [ebp + 0x4c], edx
mov eax, dword [ebp + 0x6c]
cdq
push edx
push eax
mov edx, dword [ebp + 0x4c]
push edx
push ecx
call fcn.00624b80
push edi
push ebx
push edx
push eax
call fcn.00624220
mov dword [ebp + 0x6c], eax
mov eax, dword [esi + 0x1d0]
cdq
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
push 0
push 2
push edi
push ebx
call fcn.00624220
cmp dword [ebp + 0x14], edx
jg 0x595016
jl 0x594fed
cmp dword [ebp + 0x10], eax
jae 0x595016
mov eax, 0x66666667
imul dword [ebp + 0x6c]
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp + 0x6c], eax
mov ecx, dword [ebp + 0x6c]
xor ebx, ebx
cmp ecx, 0x2ee0
jle 0x595047
mov ecx, 0x2ee0
jmp 0x59504f
push 0
push 9
push edi
push ebx
call fcn.00624b80
push 0
push 0xa
push edx
push eax
call fcn.00624220
cmp dword [ebp + 0x14], edx
jg 0x595002
jl 0x595038
cmp dword [ebp + 0x10], eax
jae 0x595002
mov eax, dword [ebp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov dword [ebp + 0x6c], ecx
jmp 0x595005
cmp ecx, ebx
jle 0x59512c
mov edi, dword [esi + 0x884]
cmp edi, 0xffffffff
je 0x595125
mov dword [esi + 0x278], ebx
mov dword [esi + 0x47c], ebx
mov dword [esi + 0x680], ebx
xor eax, eax
cmp eax, dword [esi + 0x278]
jae 0x595086
cmp dword [esi + eax*4 + 0x27c], edi
je 0x595086
inc eax
jmp 0x595072
mov edx, dword [esi + 0x278]
cmp eax, edx
jne 0x5950a5
cmp edx, 0x80
jae 0x5950a5
mov dword [esi + eax*4 + 0x27c], edi
inc dword [esi + 0x278]
xor eax, eax
cmp eax, dword [esi + 0x680]
jae 0x5950c1
mov edx, dword [esi + eax*4 + 0x684]
cmp edx, dword [esi + 0x884]
je 0x5950c1
inc eax
jmp 0x5950a7
lea edi, [esi + 0x680]
mov edx, dword [edi]
cmp eax, edx
jne 0x5950e4
cmp edx, 0x80
jae 0x5950e4
mov edx, dword [esi + 0x884]
mov dword [esi + eax*4 + 0x684], edx
inc dword [edi]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp + 0x18], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [ebp + 0x1c], ecx
lea eax, [ebp + 0x18]
push eax
push edi
lea ecx, [esi + 0x47c]
push ecx
lea edx, [esi + 0x278]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_select]
jmp 0x59512c
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00590360
mov dword [ebp + 0x64], eax
xor edi, edi
cmp eax, edi
je 0x595b5c
mov byte [ebp + 0x68], 1
cmp eax, 1
jne 0x5953c8
cmp dword [esi + 0x40], edi
jne 0x5953c8
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x334], edi
je 0x59525a
cmp byte [eax + 0x338], 0
je 0x59525a
mov ecx, dword [esi + 0x274]
add ecx, 0x10
call fcn.0056af30
mov ecx, esi
call fcn.00592f50
test eax, eax
je 0x595230
mov byte [ebp + 0x68], 0
mov eax, dword [esi + 0xc]
mov byte [eax + 0x34f], 0
mov ecx, dword [esi + 0xc]
mov byte [ecx + 0x350], 1
mov edx, dword [esi + 0xc]
mov byte [edx + 0x33e], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0xc]
fld qword [eax + 0x18]
fstp qword [ecx + 0x3b8]
mov ecx, esi
call fcn.005b4180
mov edx, dword [esi + 0xc]
mov bl, byte [edx + 0x356]
test bl, bl
je 0x5951e2
mov ecx, 0x75e2a4
call fcn.00577150
test al, al
jne 0x5951ef
cmp byte [esi + 0x888], 0
je 0x595b5c
test bl, bl
je 0x595205
mov ecx, 0x75e2a4
call fcn.00577150
test al, al
jne 0x59474d
lea ecx, [esi + 0x28]
call fcn.0055a970
mov dword [esi + 0x1c8], edi
mov dword [esi + 0x1cc], edi
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402580
mov eax, 0x756a
wait
jmp 0x595df0
mov eax, dword [esi + 0xc]
mov byte [eax + 0x34f], 0
mov ecx, dword [esi + 0xc]
mov byte [ecx + 0x350], 1
mov edx, dword [esi + 0xc]
mov byte [edx + 0x33e], 0
mov dword [ebp + 0x64], 0x753c
jmp 0x5953c8
mov eax, dword [eax]
push str.googlevideo.com
push eax
call fcn.006218e0
add esp, 8
test eax, eax
je 0x5953c8
mov eax, dword [esi + 0x1c8]
cmp dword [esi + 0x1cc], edi
jg 0x5953c8
jl 0x595291
cmp eax, 0x1f400
jae 0x5953c8
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
cmp eax, edi
je 0x5953c8
push str.dur0.0
push eax
call fcn.006218e0
add esp, 8
test eax, eax
jne 0x5952c9
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
push str._dur0.0
push eax
call fcn.006218e0
add esp, 8
test eax, eax
je 0x59532d
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 8]
push str.sourceyt_otf
push eax
call fcn.006218e0
add esp, 8
test eax, eax
jne 0x5952f9
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 8]
push str._sourceyt_otf
push eax
call fcn.006218e0
add esp, 8
test eax, eax
je 0x59532d
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 8]
push str.otf1
push eax
call fcn.006218e0
add esp, 8
test eax, eax
jne 0x595399
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 8]
push str._otf1
push eax
call fcn.006218e0
add esp, 8
test eax, eax
jne 0x595399
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc8]
push str.sourceyt_otf
push eax
call fcn.006218e0
add esp, 8
test eax, eax
jne 0x595363
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0xc8]
push str._sourceyt_otf
push eax
call fcn.006218e0
add esp, 8
test eax, eax
je 0x5953c8
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 0xc8]
push str.otf1
push eax
call fcn.006218e0
add esp, 8
test eax, eax
jne 0x595399
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc8]
push str._otf1
push eax
call fcn.006218e0
add esp, 8
test eax, eax
je 0x5953c8
lea ecx, [ebp + 0x68]
push ecx
mov ecx, esi
call fcn.00593910
mov ebx, eax
cmp ebx, edi
je 0x5953be
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402580
mov eax, ebx
wait
jmp 0x595df0
cmp byte [ebp + 0x68], 0
je 0x595b5c
cmp dword [esi + 0x1c], edi
jne 0x59481c
push str.http:rcd__dwnl_finished__s1_t7__r_n
mov ecx, esi
call fcn.005b3e00
mov ecx, dword [esi + 0xc]
test dword [ecx + 0x15c], 0x100
je 0x59582f
mov eax, dword [esi + 0x1c8]
cmp dword [esi + 0x1cc], 0
jg 0x59582f
jl 0x595410
cmp eax, 0x7d1
jae 0x59582f
mov eax, dword [ecx]
push str.youtube.com
push eax
call fcn.006218e0
add esp, 8
test eax, eax
jne 0x59543f
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
push str.googlevideo.com
push eax
call fcn.006218e0
add esp, 8
test eax, eax
je 0x59582f
push str.http:rcd__Check_for_redirect__s1_r_n
mov ecx, esi
call fcn.005b3e00
mov dword [ebp + 0x58], 0
mov edx, dword [esi + 0x1c8]
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
cmp edx, eax
jne 0x595470
cmp dword [esi + 0x1cc], ecx
je 0x595478
or eax, ecx
jne 0x59582f
mov ecx, dword [esi + 0x274]
add ecx, 0x10
call fcn.0056af30
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 0x59553e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x14c], eax
cmp eax, 0x20
je 0x5954cf
cmp eax, 5
jne 0x5957fe
lea ecx, [ebp + 0x6c]
call fcn.00402510
mov byte [ebp - 4], 3
mov edx, dword [esi + 0x14c]
push edx
push str.Check_for_redirect__cf_failed__lastErr_ld_Sleep_1000_r_n
lea eax, [ebp + 0x6c]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp + 0x6c]
push ecx
mov ecx, esi
call fcn.005b3e00
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 + 0x6c]
call fcn.00402580
cmp edi, 0xffffffff
je 0x5957fe
mov ebx, dword [esi + 0x1c8]
mov dword [ebp + 0x48], ebx
mov ecx, dword [esi + 0x1cc]
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x6c], ebx
mov eax, dword [esi + 0x1c0]
or eax, dword [esi + 0x1c4]
je 0x59556d
mov edx, dword [esi + 0xc]
cmp byte [edx + 0x34f], 0
je 0x595594
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp + 0x6c], ebx
test ebx, ebx
jne 0x595594
mov ebx, dword [esi + 0x1c8]
mov dword [ebp], ebx
mov eax, dword [esi + 0x1cc]
mov dword [ebp + 4], eax
mov dword [ebp + 0x6c], ebx
mov ecx, dword [esi + 0x274]
cmp dword [ecx + 0x31f8], 0
je 0x5955dd
mov byte [ebp - 4], 4
wait
mov edx, dword [esi + 0x274]
mov eax, dword [edx + 0x31f8]
push eax
call fcn.005f4517
add esp, 4
wait
mov dword [ebp - 4], 2
jmp 0x5955dd
lea eax, [ebx + 1]
push eax
call fcn.005f4522
add esp, 4
mov ecx, dword [esi + 0x274]
mov dword [ecx + 0x31f8], eax
mov edx, dword [esi + 0x274]
cmp dword [edx + 0x31f8], 0
je 0x5956f3
push str.Check_for_redirect__s2_r_n
mov ecx, esi
call fcn.005b3e00
mov dword [ebp + 0x6c], 0
push 0
lea eax, [ebp + 0x6c]
push eax
push ebx
mov ecx, dword [esi + 0x274]
mov edx, dword [ecx + 0x31f8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0x3c], eax
test eax, eax
je 0x59579e
cmp dword [ebp + 0x6c], ebx
jne 0x59579e
mov eax, dword [esi + 0x274]
mov ecx, dword [eax + 0x31f8]
mov byte [ebx + ecx], 0
push str.Check_for_redirect__s3__fc:_r_n
mov ecx, esi
call fcn.005b3e00
mov edx, dword [esi + 0x274]
mov eax, dword [edx + 0x31f8]
push eax
mov ecx, esi
call fcn.005b3e00
push 0x67b29c
mov ecx, esi
call fcn.005b3e00
push 7
push 0x679010
mov ecx, dword [esi + 0x274]
mov edx, dword [ecx + 0x31f8]
push edx
call fcn.00624cad
add esp, 0xc
test eax, eax
je 0x595787
push 8
push 0x678ff0
mov eax, dword [esi + 0x274]
mov ecx, dword [eax + 0x31f8]
push ecx
call fcn.00624cad
add esp, 0xc
test eax, eax
je 0x595787
mov edx, dword [esi + 0x274]
mov eax, dword [edx + 0x31f8]
push eax
call fcn.005f4517
add esp, 4
mov eax, dword [esi + 0x274]
mov dword [eax + 0x31f8], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [ebp + 0x58], edi
je 0x59582f
push str.http:rcd__Redirect_found_r_n
mov ecx, esi
call fcn.005b3e00
mov dword [esi + 0x1c8], edi
mov dword [esi + 0x1cc], edi
fldz
fstp qword [esi + 0x190]
lea ebx, [esi + 0x28]
mov ecx, ebx
call fcn.00559aa0
mov ecx, ebx
call fcn.0055a970
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xd4], edi
mov eax, dword [esi + 0x274]
mov dword [eax + 0x60], edi
mov dword [eax + 0x64], edi
mov ecx, dword [esi + 0x274]
call fcn.0057bb50
push 1
push edi
push edi
mov ecx, esi
call fcn.005b5320
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402580
mov eax, 0x7583
wait
jmp 0x595df0
mov ecx, dword [esi + 0x274]
call fcn.00582e20
mov dword [ebp + 0x58], 1
jmp 0x5956f3
lea ecx, [ebp + 0x64]
call fcn.00402510
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0x6c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0x3c]
push edx
push str.Check_for_redirect__rf_res_ld__lastErr_ld__buff_ld__read_ld_r_n
lea eax, [ebp + 0x64]
push eax
call fcn.00402f80
add esp, 0x18
mov ecx, dword [ebp + 0x64]
push ecx
mov ecx, esi
call fcn.005b3e00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x64]
call fcn.00402580
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402580
or eax, 0xffffffff
wait
jmp 0x595df0
lea ecx, [ebp + 0x64]
call fcn.00402510
mov byte [ebp - 4], 7
mov edx, dword [esi + 0x14c]
push edx
push str.Check_for_redirect__cf_failed__lastErr_ld_r_n
lea eax, [ebp + 0x64]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp + 0x64]
push ecx
mov ecx, esi
call fcn.005b3e00
jmp 0x5957dd
mov edi, dword [ebp + 0x64]
cmp edi, 0x753c
je 0x595843
cmp edi, 0xffffffff
jne 0x5958d0
mov eax, dword [esi + 0xc]
test dword [eax + 0x15c], 0x100
je 0x595a71
cmp dword [eax + 0x30], 0
je 0x595a71
mov eax, dword [esi + 0x1c8]
or eax, dword [esi + 0x1cc]
je 0x595a71
mov eax, dword [esi + 0x1c0]
cmp dword [esi + 0x1c4], 0
jl 0x595a71
jg 0x595892
cmp eax, 0x40000000
jbe 0x595a71
push str.Checking_flv_file_struct._n
mov ecx, esi
call fcn.005b3e00
mov ecx, esi
call fcn.005922a0
test eax, eax
je 0x595a71
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1cc]
push 1
push ecx
push eax
mov ecx, esi
call fcn.005b5320
push str.DurationlastTimeStamp__seems_the_flv_file_is_comlete._n
mov ecx, esi
call fcn.005b3e00
mov edx, dword [esi + 0x1c8]
mov eax, dword [esi + 0x1cc]
mov dword [ebp + 0x4c], eax
mov eax, dword [esi + 0x1c0]
mov ecx, dword [esi + 0x1c4]
cmp edx, eax
jne 0x5959a3
mov edi, ecx
cmp dword [ebp + 0x4c], edi
jne 0x5959a3
mov edi, eax
or edi, ecx
je 0x5959a3
mov edi, dword [esi + 0x10]
cmp dword [edi], 0
je 0x595951
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ecx
mov eax, dword [esi + 0x1cc]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], eax
mov eax, dword [esi + 0x1d0]
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x90]
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 0x5959a3
mov eax, dword [esi + 0x240]
mov dword [ebp - 0xa8], eax
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1cc]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], ecx
mov eax, dword [esi + 0x1d0]
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0xa8]
push ecx
push 0x1394
push 0x111
mov edx, dword [edx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x1cc]
push eax
mov ecx, dword [esi + 0x1c8]
push ecx
mov edx, dword [0x75ebbc]
push edx
lea eax, [ebp + 0x70]
push eax
call fcn.00402f80
add esp, 0x10
push 1
mov ecx, dword [ebp + 0x70]
push ecx
mov ecx, esi
call fcn.005b4f40
mov eax, dword [esi + 0x1c8]
mov ecx, dword [esi + 0x1cc]
mov dword [ebp + 0x4c], ecx
mov edx, dword [esi + 0x1c0]
mov edi, dword [esi + 0x1c4]
cmp eax, edx
jne 0x5959fb
mov ecx, edi
cmp dword [ebp + 0x4c], ecx
je 0x595adb
mov ecx, edx
or ecx, edi
je 0x595adb
mov dword [ebp + 0x40], eax
mov eax, dword [esi + 0x1cc]
mov dword [ebp + 0x44], eax
mov eax, edx
mov ecx, edi
mov ebx, dword [esi + 0xc]
mov ebx, dword [ebx + 0x374]
mov dword [ebp + 0x18], ebx
add eax, ebx
mov ebx, 0
adc ecx, ebx
cmp dword [ebp + 0x40], eax
jne 0x595a38
cmp dword [ebp + 0x44], ecx
je 0x595adb
mov eax, edx
mov ecx, edi
add eax, dword [ebp + 0x18]
adc ecx, ebx
cmp dword [esi + 0x1cc], ecx
jl 0x595ac7
jg 0x595a53
cmp dword [esi + 0x1c8], eax
jbe 0x595ac7
lea ecx, [esi + 0x28]
call fcn.0055a300
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x70]
call fcn.00402580
mov eax, 0x7570
wait
jmp 0x595df0
mov edx, dword [esi + 0x1cc]
push edx
mov eax, dword [esi + 0x1c8]
push eax
mov ecx, dword [0x75ebc8]
push ecx
lea edx, [ebp + 0x70]
push edx
call fcn.00402f80
add esp, 0x10
push 1
mov eax, dword [ebp + 0x70]
push eax
mov ecx, esi
call fcn.005b4f40
mov esi, dword [esi + 0x14c]
test esi, esi
je 0x595ab1
cmp edi, 0x753c
je 0x595ab3
mov esi, edi
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402580
mov eax, esi
wait
jmp 0x595df0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x70]
call fcn.00402580
or eax, 0xffffffff
wait
jmp 0x595df0
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0x334], 0
je 0x595b15
mov eax, dword [esi + 0x40]
test eax, eax
je 0x595b15
mov eax, dword [eax + 0x40]
test eax, eax
je 0x595b15
mov eax, dword [eax + 0x48]
test eax, eax
je 0x595b15
cmp dword [ecx + 0x32c], 8
jne 0x595b15
add ecx, 0x404
push ecx
push eax
call fcn.00591e20
add esp, 8
xor edi, edi
cmp edi, dword [esi + 0x1b0]
jge 0x595b41
mov edx, edi
imul edx, edx, 0x3488
mov eax, dword [esi + 0x274]
lea ecx, [edx + eax]
cmp dword [ecx + 0x9c], 0
je 0x595b3e
call fcn.00577040
inc edi
jmp 0x595b17
mov ecx, esi
call fcn.005b62e0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x70]
call fcn.00402580
xor eax, eax
wait
jmp 0x595df0
cmp byte [ebp + 0x6a], 0
je 0x595dc0
cmp dword [esi + 0xb0], edi
je 0x595dc7
mov ecx, dword [esi + 0x274]
add ecx, 0x10
call fcn.0056af30
mov ecx, dword [esi + 0x1c0]
mov edx, dword [esi + 0x1c4]
mov eax, dword [esi + 0x274]
lea ebx, [eax + 0x78]
push ebx
push edx
push ecx
mov ecx, dword [eax + 0x80]
add ecx, dword [eax + 0x60]
mov edx, dword [eax + 0x84]
adc edx, dword [eax + 0x64]
push edx
push ecx
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax + 0x10]
push ecx
push edi
lea ecx, [esi + 0x28]
call fcn.00555290
test eax, eax
je 0x595d88
mov byte [ebp + 0x6a], 0
mov ecx, dword [esi + 0x274]
mov edx, dword [ecx + 0x68]
mov eax, dword [ecx + 0x6c]
cmp eax, edi
jl 0x595bfe
jg 0x595be1
cmp edx, edi
jb 0x595bfe
sub edx, 0x40
sbb eax, edi
mov ebx, dword [ecx + 0x7c]
cmp ebx, eax
jg 0x595d80
jl 0x595bfe
mov eax, dword [ecx + 0x78]
cmp eax, edx
jae 0x595d80
call fcn.0057d750
mov eax, dword [esi + 0x274]
mov ecx, dword [eax + 0x80]
add dword [eax + 0x60], ecx
mov edx, dword [eax + 0x84]
adc dword [eax + 0x64], edx
mov eax, dword [esi + 0x274]
mov dword [eax + 0x80], edi
mov dword [eax + 0x84], edi
mov ecx, dword [esi + 0x274]
mov eax, dword [ecx]
lea edx, [ecx + 0x3200]
push edx
mov eax, dword [eax + 0x18]
call eax
mov dword [esi + 0x278], edi
mov dword [esi + 0x47c], edi
mov dword [esi + 0x680], edi
xor eax, eax
lea ebx, [eax + 1]
cmp eax, dword [esi + 0x47c]
jae 0x595c79
mov ecx, dword [esi + 0x274]
mov edx, dword [esi + eax*4 + 0x480]
cmp edx, dword [ecx + 0x3200]
je 0x595c79
add eax, ebx
jmp 0x595c58
mov ecx, dword [esi + 0x47c]
cmp eax, ecx
jne 0x595ca4
cmp ecx, 0x80
jae 0x595ca4
mov ecx, dword [esi + 0x274]
mov edx, dword [ecx + 0x3200]
mov dword [esi + eax*4 + 0x480], edx
add dword [esi + 0x47c], ebx
xor eax, eax
cmp eax, dword [esi + 0x680]
jae 0x595cc7
mov ecx, dword [esi + 0x274]
mov edx, dword [esi + eax*4 + 0x684]
cmp edx, dword [ecx + 0x3200]
je 0x595cc7
add eax, ebx
jmp 0x595ca6
mov ecx, dword [esi + 0x680]
cmp eax, ecx
jne 0x595cf2
cmp ecx, 0x80
jae 0x595cf2
mov ecx, dword [esi + 0x274]
mov edx, dword [ecx + 0x3200]
mov dword [esi + eax*4 + 0x684], edx
add dword [esi + 0x680], ebx
mov ecx, dword [esi + 0x884]
cmp ecx, 0xffffffff
je 0x595d80
xor eax, eax
cmp eax, dword [esi + 0x278]
jae 0x595d18
cmp dword [esi + eax*4 + 0x27c], ecx
je 0x595d18
add eax, ebx
jmp 0x595d03
mov edx, dword [esi + 0x278]
cmp eax, edx
jne 0x595d37
cmp edx, 0x80
jae 0x595d37
mov dword [esi + eax*4 + 0x27c], ecx
add dword [esi + 0x278], ebx
xor eax, eax
lea esp, [esp]
cmp eax, dword [esi + 0x680]
jae 0x595d5b
mov ecx, dword [esi + eax*4 + 0x684]
cmp ecx, dword [esi + 0x884]
je 0x595d5b
add eax, ebx
jmp 0x595d40
mov ecx, dword [esi + 0x680]
cmp eax, ecx
jne 0x595d80
cmp ecx, 0x80
jae 0x595d80
mov edx, dword [esi + 0x884]
mov dword [esi + eax*4 + 0x684], edx
add dword [esi + 0x680], ebx
mov eax, dword [esi + 0x274]
jmp 0x595da8
mov eax, dword [esi + 0x274]
cmp dword [eax + 0x84], edi
jl 0x595da8
jg 0x595da4
cmp dword [eax + 0x80], 0x7d000
jbe 0x595da8
mov byte [ebp + 0x6a], 0
mov ecx, dword [eax + 0xa8]
mov edx, dword [ecx + 0x10]
push edx
lea ecx, [eax + 0x10]
call fcn.0056b7d0
cmp byte [ebp + 0x6a], 0
jne 0x595dc7
mov ecx, esi
call fcn.005909a0
mov ecx, esi
call fcn.005b62e0
jmp 0x5946e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x74
mov esp, ebp
pop ebp
ret