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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x661f08
sub esp, 0x30
mov eax, dword [esp + 0x38]
test eax, eax
je 0x661c0c
test eax, 0x80000000
jne 0x661c0c
mov ecx, dword [esp + 0x34]
jmp 0x661c18
mov ecx, dword [esp + 0x34]
movzx edx, byte [ecx + 0x58]
test dl, dl
je 0x661c53
mov edx, dword [esp + 0x50]
test edx, edx
je 0x661c6b
cmp edx, 0xff
jg 0x661c3b
movzx ebx, byte [ecx + 0x58]
test bl, bl
jne 0x661c6b
mov ebx, dword [esp + 0x4c]
xor ebp, ebp
jmp 0x661ede
mov eax, dword [0x967488]
mov ecx, dword [0x96748c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
add esp, 0x30
ret
mov eax, dword [0x967478]
mov ecx, dword [0x96747c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
add esp, 0x30
ret
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x661c7d
movzx ebp, byte [esp + 0x3c]
or ebp, 8
jmp 0x661c82
movzx ebp, byte [esp + 0x3c]
mov esi, dword [ecx + 0x54]
mov edi, dword [ecx + 0x4c]
cmp esi, 9
jae 0x661cd6
xchg ebp, eax
mov byte [esp + 0x23], al
xchg ebp, eax
mov dword [esp], edi
mov dword [esp + 4], 9
mov dword [esp + 8], esi
mov dword [esp + 0xc], 9
lea eax, [0x6f4820]
mov dword [esp + 0x10], eax
call fcn.0044e6e0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
movzx ebp, byte [esp + 0x23]
mov dword [edi], 0
xchg ebp, eax
mov byte [edi + 4], al
xchg ebp, eax
bswap eax
mov dword [edi + 5], eax
mov dword [ecx + 0x50], 9
mov dword [ecx + 0x54], esi
mov eax, dword [0x995310]
test eax, eax
jne 0x661cfe
test ebx, ebx
jmp 0x661d11
mov eax, edi
call fcn.00468e70
mov dword [edi], eax
mov ebp, dword [ecx + 0x4c]
mov dword [edi + 4], ebp
test ebx, ebx
mov edi, eax
mov dword [ecx + 0x4c], edi
je 0x661d8c
cmp esi, 0xa
jb 0x661d22
mov eax, 0xa
jmp 0x661d85
mov dword [esp], edi
mov dword [esp + 4], 0xa
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x6f4820]
mov dword [esp + 0x10], eax
call fcn.0044e6e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x34]
mov dword [ebx + 0x54], eax
mov eax, dword [0x995310]
test eax, eax
je 0x661d72
call fcn.00468e70
mov dword [edi], ecx
mov eax, dword [ebx + 0x4c]
mov dword [edi + 4], eax
mov dword [ebx + 0x4c], ecx
mov ebx, dword [esp + 0x4c]
mov eax, edx
mov edi, ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
mov dword [ecx + 0x50], eax
mov byte [eax + edi - 1], dl
mov eax, dword [ecx + 0x54]
mov ebp, dword [ecx + 0x50]
mov esi, dword [esp + 0x44]
lea edi, [esi + ebp]
mov ebx, dword [ecx + 0x4c]
cmp eax, edi
jae 0x661dd6
mov dword [esp + 0x28], ebp
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
lea eax, [0x6f4820]
mov dword [esp + 0x10], eax
call fcn.0044e6e0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], eax
lea ecx, [ebx + ebp]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.004697f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x50], eax
mov edx, dword [esp + 0x24]
mov dword [ecx + 0x54], edx
mov ebx, dword [0x995310]
mov ebp, dword [esp + 0x50]
lea esi, [ebp + eax]
test ebx, ebx
je 0x661e32
call fcn.00468e70
mov ebx, dword [esp + 0x2c]
mov dword [edi], ebx
mov ebp, dword [ecx + 0x4c]
mov dword [edi + 4], ebp
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x2c]
mov dword [ecx + 0x4c], ebx
cmp edx, esi
jae 0x661e71
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
lea eax, [0x6f4820]
mov dword [esp + 0x10], eax
call fcn.0044e6e0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x50]
mov edx, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ebx
add eax, ebx
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.004697f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x54], eax
mov eax, dword [0x995310]
test eax, eax
jne 0x661eb5
mov eax, dword [esp + 0x2c]
jmp 0x661ec6
call fcn.00468e70
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
mov edx, dword [ecx + 0x4c]
mov dword [edi + 4], edx
mov dword [ecx + 0x4c], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
add esp, 0x30
ret
inc ebp
cmp edx, ebp
jle 0x661c6b
movzx esi, byte [ebx + ebp]
xchg esi, eax
test al, al
xchg esi, eax
je 0x661edd
mov eax, dword [0x967490]
mov ecx, dword [0x967494]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
add esp, 0x30
ret
call fcn.00467a60
jmp fcn.00661be0