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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00422880
push 0xffffffffffffffff
push 0x4347d4
mov eax, dword fs:[0]
push eax
sub esp, 0x44
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 + 0x1018]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 3
call fcn.0040ccc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a61d
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
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.00418ef2
push 0
push 4
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 4], 6
mov esi, 0xbb8
push 2
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], esi
call fcn.0041879c
push 0
push 4
lea edx, [ebp - 0x18]
push edx
push 7
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], esi
call fcn.0041879c
push 0
push 4
lea eax, [ebp - 0x18]
push eax
push 8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], 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 - 0x4c]
call fcn.00419ae8
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
je 0x40aaf3
mov ebx, dword [ebp + 0x1010]
push 0x200000
push 0
push 0
push 0
push 0
push ebx
push 0
mov ecx, edi
call fcn.00419d59
mov esi, eax
test esi, esi
je 0x40aaf3
call fcn.0040ccc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a700
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 ebx
lea ecx, [ebp - 0x24]
push str.POST__s_HTTP_1.1
push ecx
mov byte [ebp - 4], 7
call fcn.00403ca0
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x24]
push edx
mov ecx, esi
call fcn.00418e67
call fcn.0040ccc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a74f
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 - 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.00403ca0
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x2c]
push edx
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
call fcn.0040ccc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a803
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 - 0x28], eax
push ebx
lea ecx, [ebp - 0x28]
push str.Referer:_http:___s
push ecx
mov byte [ebp - 4], 9
call fcn.00403ca0
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x28]
push edx
mov ecx, esi
call fcn.00418e67
push 0xffffffffffffffff
push 0x10000000
push str.Content_Type:_application_x_www_form_urlencoded
mov ecx, esi
call fcn.0041880e
mov ebx, dword [ebp + 0x1020]
cmp dword [ebx - 0xc], 0
jle 0x40a8c9
call fcn.0040ccc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a871
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 - 0x14], eax
push ebx
lea ecx, [ebp - 0x14]
push str.Cookie:__s
push ecx
mov byte [ebp - 4], 0xa
call fcn.00403ca0
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00418e67
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 0x40a8c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040ccc8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a8e3
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 - 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 0x43bb64
push edx
call fcn.00403ca0
add esp, 0xc
lea eax, [ebp - 0x1c]
push str.Content_Length:
push eax
lea ecx, [ebp - 0x14]
call fcn.00407510
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.00402760
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 0x40a955
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.0041880e
mov ecx, dword [ebp + 0x1014]
mov eax, dword [ecx - 0xc]
push eax
push ecx
push 0
push 0
mov ecx, esi
call fcn.00419452
push 0
lea edx, [ebp - 0x20]
push edx
push 0x16
mov ecx, esi
call fcn.004195da
test eax, eax
je 0x40aa53
push 0xfff
lea eax, [ebp + 1]
push 0
push eax
mov byte [ebp], 0
call fcn.00420a90
add esp, 0xc
push 0x43ad0c
lea ecx, [ebp - 0x1c]
call fcn.00402230
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 0x40a9e0
sub eax, edx
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040bed0
push 0x1000
lea ecx, [ebp]
push 0
push ecx
call fcn.00420a90
add esp, 0xc
test edi, edi
jne 0x40a9c0
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x1c]
push edx
call fcn.00402760
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
call fcn.00402760
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 0x40aa50
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 0x40aa8a
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 0x40aaad
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 0x40aad0
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 0x40aaf3
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.00419555
lea ecx, [ebp - 0x4c]
call fcn.004196b6
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.004196b6
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 0x40ab4d
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 0x40ab73
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 0x40ab99
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 0x40abbf
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 0x40abe8
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.0041e4c4
add ebp, 0x1004
mov esp, ebp
pop ebp
ret