Function at 0x409780
Capabilities:
Reference http user-agent string

Disassembly:
push 0xffffffffffffffff
push 0x41241c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c4
push ebp
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.00407d10
mov ebp, dword [esp + 0x3e4]
mov dword [esp + 0x3d8], 0
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x28]
call fcn.00407f80
mov eax, dword [esp + 0x3ec]
push str.9_0_16_0
lea ecx, [esp + 0x4c]
push str.x_flash_version:__s
push ecx
mov dword [esp + 0x60], eax
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x3ec]
add esp, 0xc
lea ecx, [esp + 0xc]
push esi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x3f0]
mov edi, dword [sym.imp.MSVCRT.dll__mbsstr]
test eax, eax
mov byte [esp + 0x3d8], 1
je 0x409855
push str.video.baidu.com
push esi
call edi
add esp, 8
test eax, eax
jne 0x409855
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00410810
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3dc], 2
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x3d8], 1
call sub.MFC42.DLL_CString::CString
push str.video.baidu.com
push esi
call edi
add esp, 8
test eax, eax
je 0x409895
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00410990
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3dc], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x3d8], 1
call sub.MFC42.DLL_CString::CString
push 0x418f74
push 0x418f70
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0xc]
push str.2008.vod.itc.cn_antixtw.php
push ecx
call edi
add esp, 8
test eax, eax
je 0x4098c9
push str.Mozilla_5.0__Windows__U__Windows_NT_5.1__zh_CN__rv:1.8.1.5__Gecko_20070713__FoxPlus__Firefox_2.0.0.5
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::operator_1
mov edi, dword [0x4130c4]
xor esi, esi
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0x7530
push 0
push ecx
lea ecx, [esp + 0x50]
call fcn.004082e0
test eax, eax
jne 0x409954
push 0x7d0
call edi
inc esi
cmp esi, 5
jl 0x4098d1
lea ecx, [esp + 0xc]
mov byte [esp + 0x3d8], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.00407e70
or eax, 0xffffffff
mov ecx, dword [esp + 0x3d0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3d0
ret
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x409998
mov edx, dword [esp + 0x10]
push edx
push 0x4181d0
push ebp
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp]
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [eax - 8]
cmp eax, ecx
jae 0x409998
mov ecx, dword [esp + 0x10]
mov byte [eax + ecx], 0x20
mov edx, dword [esp + 0x10]
push edx
push 0x4181d0
push ebp
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov eax, dword [esp + 0x1c]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x14]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0xc]
mov byte [esp + 0x3d8], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.00407e70
xor eax, eax
jmp 0x40993c