Function at 0x656100
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 0x65632b
sub esp, 0x34
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov dword [esp], ecx
call fcn.006567c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x38]
mov dword [esi + 0xc], eax
mov eax, dword [0x995310]
test eax, eax
je 0x656157
call fcn.00468e70
mov dword [edi], ecx
mov eax, dword [esi + 0x10]
mov dword [edi + 4], eax
mov dword [esi + 0x10], ecx
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x65617f
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov edi, edx
sar edi, 0x1f
add eax, edx
adc edi, ecx
add eax, 2
mov dword [esi + 0x18], eax
adc edi, 0
mov dword [esi + 0x1c], edi
nop
jmp 0x656184
add esp, 0x34
ret
dec edx
test edx, edx
je 0x6561a1
movzx eax, byte [edx + ebx - 1]
cmp al, 0x20
je 0x656183
cmp al, 9
je 0x656183
cmp al, 0xa
je 0x656183
cmp al, 0xd
je 0x656183
mov eax, dword [0x9680e0]
mov ecx, dword [0x9680e4]
mov esi, dword [0x9680e8]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
call fcn.004d67f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
mov dword [ebx + 0xc], 0
mov ebp, dword [0x995310]
test ebp, ebp
je 0x6561fa
mov ebp, dword [ebx + 0x10]
call fcn.00468e60
mov dword [edi], ebp
mov dword [ebx + 0x10], 0
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00656b70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x38]
mov dword [ebp + 8], ecx
mov dword [ebp + 4], edx
mov dword [ebp + 0xc], eax
mov eax, dword [0x995310]
test eax, eax
je 0x656245
call fcn.00468e70
mov dword [edi], ebx
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], eax
mov dword [ebp + 0x10], ebx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x656327
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
shl ecx, 1
mov esi, edx
shl edx, 1
shr esi, 0x1f
or ecx, esi
sub eax, edx
sbb ebx, ecx
add eax, 0xfffffff0
mov dword [ebp + 0x18], eax
adc ebx, 0xffffffff
mov dword [ebp + 0x1c], ebx
test ebx, ebx
jge 0x65627c
xor ebx, ebx
xor eax, eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], ebx
test ebx, ebx
sete cl
setg dl
cmp eax, 0x4000
seta al
and eax, ecx
or edx, eax
test dl, dl
je 0x6562e4
lea eax, [0x701240]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x2b
lea ecx, [0x74bd5f]
mov dword [eax], ecx
lea ecx, [0x7b0bb8]
mov edx, dword [esp + 0x38]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x995310]
test ecx, ecx
je 0x6562df
call fcn.00468e70
mov dword [edi], eax
mov ecx, dword [edx + 0x10]
mov dword [edi + 4], ecx
mov dword [edx + 0x10], eax
mov ebp, edx
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
test ecx, ecx
sete cl
test eax, eax
sete al
and ecx, eax
test cl, cl
je 0x656323
mov eax, dword [0x967010]
mov ecx, dword [0x967014]
mov dword [ebp + 0xc], eax
mov eax, dword [0x995310]
test eax, eax
je 0x656320
call fcn.00468e70
mov dword [edi], ecx
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], eax
mov dword [ebp + 0x10], ecx
add esp, 0x34
ret
add esp, 0x34
ret
call fcn.00467a60
jmp fcn.00656100