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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00422a30
push 0xffffffffffffffff
push 0x434721
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x443d44]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x1014]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0
call fcn.0040ce78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40aea4
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00419097
push 0
push 4
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 5
mov esi, 0xc350
push 2
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], esi
call fcn.0041894c
push 0
push 4
lea edx, [ebp - 0x14]
push edx
mov ebx, 7
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], esi
call fcn.0041894c
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push 8
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], esi
call fcn.0041894c
mov ecx, dword [ebp + 0x101c]
mov edx, dword [ebp + 0x100c]
push 0
push 0
push ecx
push 0x84000002
push edx
lea ecx, [ebp - 0x44]
call fcn.00419c8d
mov edi, eax
test edi, edi
mov dword [ebp - 0x14], edi
je 0x40b22d
mov eax, dword [ebp + 0x1010]
push 0x200000
push 0
push 0
push 0
push 0
push eax
push 1
mov ecx, edi
call fcn.00419efe
mov esi, eax
test esi, esi
je 0x40b22d
call fcn.0040ce78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40af84
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0x1010]
push ecx
lea edx, [ebp - 0x1c]
push str.GET__s_HTTP_1.1
push edx
call fcn.00403c00
add esp, 0xc
push 0x10000000
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0041900c
call fcn.0040ce78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40afd9
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x100c]
push ecx
lea edx, [ebp - 0x20]
push str.Host:__s
push edx
call fcn.00403c00
add esp, 0xc
push 0x10000000
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0041900c
push 0xffffffffffffffff
push 0x10000000
push str.User_Agent:_Mozilla_5.0__Windows_NT_5.1__rv:12.0__Gecko_20100101_Firefox_12.0
mov ecx, esi
call fcn.004189b3
push 0xffffffffffffffff
push 0x10000000
push str.Accept:_text_html_application_xhtmlxml_application_xml_q0.9___q0.8
mov ecx, esi
call fcn.004189b3
push 0xffffffffffffffff
push 0x10000000
push str.Accept_Charset:_GB2312
mov ecx, esi
call fcn.004189b3
push 0xffffffffffffffff
push 0x10000000
push str.Accept_Language:_zh_cn_zh_q0.8_en_us_q0.5_en_q0.3
mov ecx, esi
call fcn.004189b3
push 0xffffffffffffffff
push 0x10000000
push str.Connection:_Keep_Alive
mov ecx, esi
call fcn.004189b3
mov ecx, dword [ebp + 0x1018]
cmp dword [ecx - 0xc], 0
jle 0x40b0f5
call fcn.0040ce78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b098
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0x1018]
push ecx
lea edx, [ebp - 0x18]
push str.Cookie:__s
push edx
call fcn.00403c00
add esp, 0xc
push 0x10000000
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0041900c
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.004195f7
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0x16
mov ecx, esi
call fcn.0041977f
test eax, eax
je 0x40b1d3
push 0xfff
lea edx, [ebp + 1]
push 0
push edx
mov byte [ebp], 0
call fcn.00420c40
add esp, 0xc
push 0x43ad34
lea ecx, [ebp - 0x18]
call fcn.004023a0
mov byte [ebp - 4], 9
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
push 0x1000
lea ecx, [ebp]
push ecx
mov ecx, esi
call edx
mov edi, eax
lea eax, [ebp]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40b160
sub eax, edx
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c0b0
push 0x1000
lea ecx, [ebp]
push 0
push ecx
call fcn.00420c40
add esp, 0xc
test edi, edi
jne 0x40b143
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x18]
push edx
call fcn.004026b0
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
call fcn.004026b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x14]
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b20a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b22d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
lea ecx, [ebp - 0x44]
call fcn.004196fa
lea ecx, [ebp - 0x44]
call fcn.0041985b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0041985b
mov dword [ebp - 4], 3
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b287
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x100c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x1010]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x1018]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0041e674
add ebp, 0x1004
mov esp, ebp
pop ebp
ret