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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00421e10
push 0xffffffffffffffff
push 0x433c24
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x442d14]
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 + 0x1018]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 3
call fcn.0040c458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ab3d
push 0x80004005
call fcn.00402a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 5
call fcn.0041869d
push 0
push 4
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 4], 6
mov esi, 0xc350
push 2
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], esi
call fcn.00417f4d
push 0
push 4
lea edx, [ebp - 0x18]
push edx
push 7
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], esi
call fcn.00417f4d
push 0
push 4
lea eax, [ebp - 0x18]
push eax
push 8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], esi
call fcn.00417f4d
mov ecx, dword [ebp + 0x101c]
mov edx, dword [ebp + 0x100c]
push 0
push 0
push ecx
push 0x84000002
push edx
lea ecx, [ebp - 0x4c]
call fcn.0041927b
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
je 0x40b013
mov ebx, dword [ebp + 0x1010]
push 0x200000
push 0
push 0
push 0
push 0
push ebx
push 0
mov ecx, edi
call fcn.004194ec
mov esi, eax
test esi, esi
je 0x40b013
call fcn.0040c458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ac20
push 0x80004005
call fcn.00402a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
push ebx
lea ecx, [ebp - 0x24]
push str.POST__s_HTTP_1.1
push ecx
mov byte [ebp - 4], 7
call fcn.00403fe0
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x24]
push edx
mov ecx, esi
call fcn.00418612
call fcn.0040c458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ac6f
push 0x80004005
call fcn.00402a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 8
mov ebx, dword [ebp + 0x100c]
push ebx
lea ecx, [ebp - 0x2c]
push str.Host:__s
push ecx
call fcn.00403fe0
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.00418612
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.00417fb9
push 0xffffffffffffffff
push 0x10000000
push str.Accept:_text_html_application_xhtmlxml_application_xml_q0.9___q0.8
mov ecx, esi
call fcn.00417fb9
push 0xffffffffffffffff
push 0x10000000
push str.Accept_Charset:_GB2312
mov ecx, esi
call fcn.00417fb9
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.00417fb9
push 0xffffffffffffffff
push 0x10000000
push str.Connection:_Keep_Alive
mov ecx, esi
call fcn.00417fb9
call fcn.0040c458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ad23
push 0x80004005
call fcn.00402a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
push ebx
lea ecx, [ebp - 0x28]
push str.Referer:_http:___s
push ecx
mov byte [ebp - 4], 9
call fcn.00403fe0
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x28]
push edx
mov ecx, esi
call fcn.00418612
push 0xffffffffffffffff
push 0x10000000
push str.Content_Type:_application_x_www_form_urlencoded
mov ecx, esi
call fcn.00417fb9
mov ebx, dword [ebp + 0x1020]
cmp dword [ebx - 0xc], 0
jle 0x40ade9
call fcn.0040c458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ad91
push 0x80004005
call fcn.00402a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push ebx
lea ecx, [ebp - 0x14]
push str.Cookie:__s
push ecx
mov byte [ebp - 4], 0xa
call fcn.00403fe0
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00418612
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ade9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040c458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ae03
push 0x80004005
call fcn.00402a40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov bl, 0xb
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x1014]
mov eax, dword [ecx - 0xc]
push eax
lea edx, [ebp - 0x14]
push 0x43a9cc
push edx
call fcn.00403fe0
add esp, 0xc
lea eax, [ebp - 0x1c]
push str.Content_Length:
push eax
lea ecx, [ebp - 0x14]
call fcn.00403da0
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.00402680
mov byte [ebp - 4], bl
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 0x40ae75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push 0x10000000
push ecx
mov ecx, esi
call fcn.00417fb9
mov ecx, dword [ebp + 0x1014]
mov eax, dword [ecx - 0xc]
push eax
push ecx
push 0
push 0
mov ecx, esi
call fcn.00418bfd
push 0
lea edx, [ebp - 0x20]
push edx
push 0x16
mov ecx, esi
call fcn.00418d85
test eax, eax
je 0x40af73
push 0xfff
lea eax, [ebp + 1]
push 0
push eax
mov byte [ebp], 0
call fcn.0041fef0
add esp, 0xc
push 0x439ca4
lea ecx, [ebp - 0x1c]
call fcn.00402150
mov byte [ebp - 4], 0xd
lea esp, [esp]
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
push 0x1000
lea eax, [ebp]
push eax
mov ecx, esi
call edx
mov edi, eax
lea eax, [ebp]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40af00
sub eax, edx
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403f60
push 0x1000
lea ecx, [ebp]
push 0
push ecx
call fcn.0041fef0
add esp, 0xc
test edi, edi
jne 0x40aee0
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x1c]
push edx
call fcn.00402680
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
call fcn.00402680
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x18]
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], 9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
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 byte [ebp - 4], 6
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 0x40b013
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 - 0x4c]
call fcn.00418d00
lea ecx, [ebp - 0x4c]
call fcn.00418e61
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00418e61
mov dword [ebp - 4], 4
mov byte [ebp - 4], 3
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 0x40b06d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
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 0x40b093
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 + 0x1010]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0b9
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 + 0x1014]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0df
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 + 0x1020]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b108
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
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.0041db69
add ebp, 0x1004
mov esp, ebp
pop ebp
ret