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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a866
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x480
mov eax, dword [0x5df040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x480], ecx
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x460], eax
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0xf
mov dword [ebp - 0x47c], eax
mov eax, ecx
mov dword [ebp - 0x45c], esi
jbe 0x401773
mov eax, dword [ecx]
add ecx, 0x18
mov byte [eax], 0
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0xf
jbe 0x401788
mov ecx, dword [ecx]
mov byte [ecx], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x448], xmm0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0xf
mov byte [ebp - 0x448], 0
mov ecx, esi
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x430], xmm0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4017d7
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x430]
call fcn.00404110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x430]
cmp dword [ebp - 0x41c], 0xf
mov eax, dword [ebp - 0x420]
mov edx, eax
cmova ecx, dword [ebp - 0x430]
push 1
sub esp, 8
mov dword [ebp - 0x44c], eax
call fcn.00403cd0
mov esi, dword [ebp - 0x44c]
lea ecx, [ebp - 0x430]
mov edx, eax
add esp, 0xc
cmp dword [ebp - 0x44c], edx
cmovb edx, dword [ebp - 0x44c]
cmp dword [ebp - 0x41c], 0xf
cmova ecx, dword [ebp - 0x430]
sub esi, edx
lea eax, [esi + 1]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.00548d90
mov edi, dword [ebp - 0x41c]
lea ecx, [ebp - 0x430]
add esp, 0xc
mov dword [ebp - 0x420], esi
cmp edi, 0xf
mov edx, esi
cmova ecx, dword [ebp - 0x430]
push 1
sub esp, 8
call fcn.00403c10
add esp, 0xc
lea ecx, [eax + 1]
cmp esi, ecx
jb 0x401e29
cmp edi, 0xf
mov dword [ebp - 0x420], ecx
lea eax, [ebp - 0x430]
cmova eax, dword [ebp - 0x430]
mov byte [eax + ecx], 0
lea ecx, [ebp - 0x430]
cmp dword [ebp - 0x41c], 0xf
mov edi, dword [ebp - 0x420]
cmova ecx, dword [ebp - 0x430]
mov dword [ebp - 0x454], ecx
cmp edi, 3
jb 0x401b6e
lea eax, [edi - 2]
add eax, ecx
mov dword [ebp - 0x44c], eax
sub eax, ecx
push eax
push 0x3a
push ecx
call fcn.0054ade0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401b6e
movzx ecx, byte [esi]
cmp cl, 0x3a
jne 0x401914
movzx eax, byte [esi + 1]
cmp al, 0x2f
jne 0x401914
movzx eax, byte [esi + 2]
cmp al, 0x2f
jne 0x401914
xor eax, eax
jmp 0x401919
sbb eax, eax
or eax, 1
test eax, eax
je 0x40193d
mov eax, dword [ebp - 0x44c]
inc esi
sub eax, esi
push eax
push 0x3a
push esi
call fcn.0054ade0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4018f8
jmp 0x401b6e
sub esi, dword [ebp - 0x454]
cmp esi, 0xffffffff
je 0x401b6e
cmp dword [ebp - 0x41c], 0xf
lea edx, [ebp - 0x430]
lea ecx, [esi + 3]
cmova edx, dword [ebp - 0x430]
mov dword [ebp - 0x454], edx
cmp ecx, edi
jae 0x40198c
mov eax, edi
sub eax, ecx
push eax
lea eax, [edx + ecx]
push 0x2f
push eax
call fcn.0054ade0
add esp, 0xc
test eax, eax
je 0x40198c
sub eax, dword [ebp - 0x454]
jmp 0x40198f
or eax, 0xffffffff
lea edx, [esi + 3]
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x478], xmm0
cmp edi, edx
jb 0x401e2e
sub eax, esi
sub edi, edx
lea ecx, [eax - 3]
cmp edi, ecx
lea eax, [ebp - 0x430]
cmovb ecx, edi
cmp dword [ebp - 0x41c], 0xf
push ecx
cmova eax, dword [ebp - 0x430]
lea ecx, [ebp - 0x478]
add eax, edx
push eax
call fcn.00404110
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x464]
mov eax, ecx
mov edx, dword [ebp - 0x468]
sub eax, edx
cmp eax, 6
jb 0x401a8d
cmp ecx, 0xf
lea esi, [ebp - 0x478]
lea eax, [edx + 6]
cmova esi, dword [ebp - 0x478]
mov dword [ebp - 0x468], eax
cmp esi, 0x5d0e2a
jae 0x401a45
lea eax, [esi + edx]
cmp eax, str.Host:
jb 0x401a45
cmp esi, str.Host:
ja 0x401a3b
xor edi, edi
jmp 0x401a4a
mov edi, esi
sub edi, str.Host:
jmp 0x401a4a
mov edi, 6
lea eax, [edx + 1]
push eax
lea ecx, [esi + 6]
push esi
push ecx
call fcn.00548d90
add esp, 0xc
push edi
push str.Host:
push esi
call fcn.00548d90
add esp, 0xc
lea ecx, [esi + edi]
mov eax, 6
sub eax, edi
push eax
lea eax, [edi + 0x5d0e2a]
push eax
push ecx
call fcn.00548d90
add esp, 0xc
lea eax, [ebp - 0x478]
jmp 0x401ab0
push 6
push str.Host:
push 0
mov byte [ebp - 0x454], 0
lea ecx, [ebp - 0x478]
push dword [ebp - 0x454]
push 6
call fcn.004043e0
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x434]
movq qword [ebp - 0x458], xmm1
movups xmmword [ebp - 0x490], xmm0
cmp ecx, 0xf
jbe 0x401b21
mov edx, dword [ebp - 0x448]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b08
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e33
push ecx
push edx
call fcn.004234d3
movups xmm0, xmmword [ebp - 0x490]
add esp, 8
movq xmm1, qword [ebp - 0x458]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x464]
movq qword [ebp - 0x438], xmm1
movups xmmword [ebp - 0x448], xmm0
cmp ecx, 0xf
jbe 0x401b6e
mov edx, dword [ebp - 0x478]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e33
push ecx
push edx
call fcn.004234d3
add esp, 8
push str.Accept:__
push 0
call fcn.004b84d0
push str.Accept_Language:_zh_CN
push eax
call fcn.004b84d0
push str.User_Agent:_Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0_
push eax
call fcn.004b84d0
push str.Accept_Encoding:_gzip__deflate
push eax
call fcn.004b84d0
cmp dword [ebp - 0x434], 0xf
lea ecx, [ebp - 0x448]
cmova ecx, dword [ebp - 0x448]
push ecx
push eax
call fcn.004b84d0
push str.Connection:_Keep_Alive
push eax
call fcn.004b84d0
add esp, 0x30
mov edi, eax
cmp dword [ebx + 0x10], 3
jne 0x401bdc
push str.X_HTTP_Method_Override:_PATCH
push edi
call fcn.004b84d0
add esp, 8
mov edi, eax
mov esi, dword [ebp - 0x47c]
test esi, esi
je 0x401c7b
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.00548bf0
add esp, 0xc
lea eax, [ebp - 0x418]
push esi
push 0x400
push eax
call fcn.0054caf1
add esp, 0xc
mov dword [ebp - 0x44c], 0
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x418]
push 0x5d0efc
push eax
call fcn.0054c3ec
mov edx, eax
add esp, 0xc
test edx, edx
je 0x401c7b
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401c45
sub ecx, esi
cmp ecx, 1
jbe 0x401c5f
push edx
push edi
call fcn.004b84d0
add esp, 8
mov edi, eax
lea eax, [ebp - 0x44c]
push eax
push 0x5d0efc
push 0
call fcn.0054c3ec
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x401c40
mov esi, dword [ebp - 0x480]
push edi
push 0x2727
push dword [esi + 0x30]
call fcn.004bc690
add esp, 0xc
push str.gzip
push 0x2776
push dword [esi + 0x30]
call fcn.004bc690
mov eax, dword [ebx + 0x10]
add esp, 0xc
test eax, eax
je 0x401cc9
cmp eax, 1
jne 0x401cb8
push eax
push 0x50
jmp 0x401cd6
cmp eax, 3
jne 0x401cc9
push str.PATCH
push 0x2734
jmp 0x401cd6
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x401ce1
push eax
push 0x2728
push dword [esi + 0x30]
call fcn.004bc690
add esp, 0xc
push dword [ebp - 0x45c]
push 0x2712
push dword [esi + 0x30]
call fcn.004bc690
add esp, 0xc
push dword [esi + 0x30]
call fcn.004b8200
mov ecx, dword [ebp - 0x460]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x401d28
push eax
call fcn.004b8890
add esp, 4
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov eax, dword [ebp - 0x460]
mov eax, dword [eax]
test eax, eax
je 0x401d68
push eax
call fcn.004b9130
mov edx, eax
add esp, 4
lea ecx, [edx + 1]
mov dword [ebp - 0x45c], ecx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x401d48
sub edx, dword [ebp - 0x45c]
lea ecx, [esi + 0x34]
push edx
push eax
call fcn.004035b0
mov byte [ebp - 0x44d], 0
jmp 0x401d6f
mov byte [ebp - 0x44d], 1
push edi
call fcn.004b8550
mov ecx, dword [ebp - 0x41c]
add esp, 4
cmp ecx, 0xf
jbe 0x401db2
mov edx, dword [ebp - 0x430]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401da8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e38
push ecx
push edx
call fcn.004234d3
add esp, 8
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0xf
mov byte [ebp - 0x430], 0
cmp ecx, 0xf
jbe 0x401e03
mov edx, dword [ebp - 0x448]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401df9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401e38
push ecx
push edx
call fcn.004234d3
add esp, 8
mov al, byte [ebp - 0x44d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00423495
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.00403870
call fcn.00403870
call fcn.0054d06c
call fcn.0054d06c
int3