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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00422880
push 0xffffffffffffffff
push 0x434731
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.0040ccc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40acc4
push 0x80004005
call fcn.00402b20
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.00418ef2
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.0041879c
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.0041879c
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push 8
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], esi
call fcn.0041879c
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.00419ae8
mov edi, eax
test edi, edi
mov dword [ebp - 0x14], edi
je 0x40b04d
mov eax, dword [ebp + 0x1010]
push 0x200000
push 0
push 0
push 0
push 0
push eax
push 1
mov ecx, edi
call fcn.00419d59
mov esi, eax
test esi, esi
je 0x40b04d
call fcn.0040ccc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ada4
push 0x80004005
call fcn.00402b20
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.00403ca0
add esp, 0xc
push 0x10000000
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.00418e67
call fcn.0040ccc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40adf9
push 0x80004005
call fcn.00402b20
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.00403ca0
add esp, 0xc
push 0x10000000
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.00418e67
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.0041880e
push 0xffffffffffffffff
push 0x10000000
push str.Accept:_text_html_application_xhtmlxml_application_xml_q0.9___q0.8
mov ecx, esi
call fcn.0041880e
push 0xffffffffffffffff
push 0x10000000
push str.Accept_Charset:_GB2312
mov ecx, esi
call fcn.0041880e
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.0041880e
push 0xffffffffffffffff
push 0x10000000
push str.Connection:_Keep_Alive
mov ecx, esi
call fcn.0041880e
mov ecx, dword [ebp + 0x1018]
cmp dword [ecx - 0xc], 0
jle 0x40af15
call fcn.0040ccc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40aeb8
push 0x80004005
call fcn.00402b20
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.00403ca0
add esp, 0xc
push 0x10000000
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00418e67
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 0x40af15
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.00419452
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0x16
mov ecx, esi
call fcn.004195da
test eax, eax
je 0x40aff3
push 0xfff
lea edx, [ebp + 1]
push 0
push edx
mov byte [ebp], 0
call fcn.00420a90
add esp, 0xc
push 0x43ad0c
lea ecx, [ebp - 0x18]
call fcn.00402230
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 0x40af80
sub eax, edx
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040bed0
push 0x1000
lea ecx, [ebp]
push 0
push ecx
call fcn.00420a90
add esp, 0xc
test edi, edi
jne 0x40af63
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x18]
push edx
call fcn.00402760
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
call fcn.00402760
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 0x40aff0
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 0x40b02a
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 0x40b04d
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.00419555
lea ecx, [ebp - 0x44]
call fcn.004196b6
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.004196b6
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 0x40b0a7
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 0x40b0cd
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 0x40b0f3
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 0x40b11c
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.0041e4c4
add ebp, 0x1004
mov esp, ebp
pop ebp
ret