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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00422a30
push 0xffffffffffffffff
push 0x4347c4
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.0040ce78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a7fd
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
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.00419097
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.0041894c
push 0
push 4
lea edx, [ebp - 0x18]
push edx
push 7
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], esi
call fcn.0041894c
push 0
push 4
lea eax, [ebp - 0x18]
push eax
push 8
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x18], 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 - 0x4c]
call fcn.00419c8d
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
je 0x40acd3
mov ebx, dword [ebp + 0x1010]
push 0x200000
push 0
push 0
push 0
push 0
push ebx
push 0
mov ecx, edi
call fcn.00419efe
mov esi, eax
test esi, esi
je 0x40acd3
call fcn.0040ce78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a8e0
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 ebx
lea ecx, [ebp - 0x24]
push str.POST__s_HTTP_1.1
push ecx
mov byte [ebp - 4], 7
call fcn.00403c00
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x24]
push edx
mov ecx, esi
call fcn.0041900c
call fcn.0040ce78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a92f
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 - 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.00403c00
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x2c]
push edx
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
call fcn.0040ce78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a9e3
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 - 0x28], eax
push ebx
lea ecx, [ebp - 0x28]
push str.Referer:_http:___s
push ecx
mov byte [ebp - 4], 9
call fcn.00403c00
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x28]
push edx
mov ecx, esi
call fcn.0041900c
push 0xffffffffffffffff
push 0x10000000
push str.Content_Type:_application_x_www_form_urlencoded
mov ecx, esi
call fcn.004189b3
mov ebx, dword [ebp + 0x1020]
cmp dword [ebx - 0xc], 0
jle 0x40aaa9
call fcn.0040ce78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40aa51
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 - 0x14], eax
push ebx
lea ecx, [ebp - 0x14]
push str.Cookie:__s
push ecx
mov byte [ebp - 4], 0xa
call fcn.00403c00
add esp, 0xc
push 0x10000000
lea edx, [ebp - 0x14]
push edx
mov ecx, esi
call fcn.0041900c
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 0x40aaa9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040ce78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40aac3
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 - 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 0x43bb94
push edx
call fcn.00403c00
add esp, 0xc
lea eax, [ebp - 0x1c]
push str.Content_Length:
push eax
lea ecx, [ebp - 0x14]
call fcn.00407490
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.004026b0
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 0x40ab35
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.004189b3
mov ecx, dword [ebp + 0x1014]
mov eax, dword [ecx - 0xc]
push eax
push ecx
push 0
push 0
mov ecx, esi
call fcn.004195f7
push 0
lea edx, [ebp - 0x20]
push edx
push 0x16
mov ecx, esi
call fcn.0041977f
test eax, eax
je 0x40ac33
push 0xfff
lea eax, [ebp + 1]
push 0
push eax
mov byte [ebp], 0
call fcn.00420c40
add esp, 0xc
push 0x43ad34
lea ecx, [ebp - 0x1c]
call fcn.004023a0
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 0x40abc0
sub eax, edx
push eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040c0b0
push 0x1000
lea ecx, [ebp]
push 0
push ecx
call fcn.00420c40
add esp, 0xc
test edi, edi
jne 0x40aba0
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x1c]
push edx
call fcn.004026b0
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
call fcn.004026b0
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 0x40ac30
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 0x40ac6a
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 0x40ac8d
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 0x40acb0
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 0x40acd3
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.004196fa
lea ecx, [ebp - 0x4c]
call fcn.0041985b
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.0041985b
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 0x40ad2d
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 0x40ad53
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 0x40ad79
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 0x40ad9f
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 0x40adc8
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.0041e674
add ebp, 0x1004
mov esp, ebp
pop ebp
ret