Function at 0x491af0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c70a4
mov eax, dword fs:[0]
push eax
sub esp, 0xc2c
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42c], ecx
push 0
push 0
push 0
push 0
push str.Yun_Browser_Web_Detect
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
je 0x491b61
push 0
push SysReAllocString
push 0
push 0
push str.http:__www.terabox.com_box_static_base_widget_httpProxy__nomd5_crossdomain.xml
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x491b6b
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0x80004005
jmp 0x491e8f
call fcn.0047f110
mov ecx, eax
test ecx, ecx
jne 0x491b80
push 0x80004005
call fcn.0047ee80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0
push eax
call fcn.00491eb0
mov edi, dword [ebp - 0x428]
test eax, eax
jns 0x491bb5
mov ebx, 0x80004005
jmp 0x491e6e
mov dword [ebp - 0x418], 0
call fcn.0047f110
mov ecx, eax
test ecx, ecx
jne 0x491bd4
push 0x80004005
call fcn.0047ee80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x414], eax
mov byte [ebp - 4], 1
nop word [eax + eax]
lea eax, [ebp - 0x418]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x491c34
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x491c34
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x414]
call fcn.00484b00
cmp dword [ebp - 0x418], 0
ja 0x491bf0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ecx + 0x44]
call fcn.0047f7c0
mov esi, dword [ebp - 0x414]
xorps xmm0, xmm0
movq qword [ebp - 0x420], xmm0
mov ebx, dword [esi - 0xc]
push ebx
mov dword [ebp - 0x42c], ebx
call fcn.004be464
add esp, 4
mov dword [ebp - 0x420], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x41c], 0
push eax
call fcn.0049f7d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x420]
test eax, eax
jne 0x491cc3
lea eax, [ebp - 0xc38]
push str.HttpGetCrossDomainFile_Output_Buffer
push eax
call fcn.004a65c0
mov byte [ebp - 4], 3
add esp, 4
jmp 0x491d46
cmp dword [esi - 4], 1
jle 0x491ce3
push dword [esi - 0xc]
lea ecx, [ebp - 0x414]
call fcn.0047fb10
mov esi, dword [ebp - 0x414]
mov eax, dword [ebp - 0x420]
push eax
push ebx
push esi
call fcn.004922e0
test eax, eax
jns 0x491d09
lea eax, [ebp - 0xc38]
push str.HttpGetCrossDomainFile
push eax
call fcn.004a65c0
mov byte [ebp - 4], 4
add esp, 4
jmp 0x491d46
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x491d82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0xc38]
push 0x4ea8f4
push eax
call fcn.004a65c0
mov byte [ebp - 4], 5
add esp, 0xc
push dword [eax]
push 2
call fcn.004b5db0
mov ecx, eax
call fcn.004b5f10
mov eax, dword [ebp - 0xc38]
lea ecx, [ebp - 0xc30]
cmp eax, ecx
je 0x491e00
push eax
call fcn.004be72b
add esp, 4
mov dword [ebp - 0x42c], 0x80004005
jmp 0x491e1d
push 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
push dword [ebp - 0x42c]
push dword [ebp - 0x420]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x491e0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0xc38]
push 0x4ea914
push eax
call fcn.004a65c0
add esp, 0xc
mov byte [ebp - 4], 6
push dword [eax]
push 2
call fcn.004b5db0
mov ecx, eax
call fcn.004b5f10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc30]
mov eax, dword [ebp - 0xc38]
cmp eax, ecx
je 0x491df9
push eax
call fcn.004be72b
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x42c], 0x80004005
jmp 0x491e1d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x42c], 0
mov byte [ebp - 4], 7
mov ebx, dword [ebp - 0x41c]
test ebx, ebx
je 0x491e4c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x491e4c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
jne 0x491e4c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491e68
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x491e8d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bde8e
mov esp, ebp
pop ebp
ret