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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x68]
cmp eax, dword [ecx + 8]
jbe 0x408773
sub esp, 0xe8
mov eax, dword [esp + 0xe8]
mov dword [esp], eax
call fcn.00454c10
mov eax, dword [esp + 4]
test eax, eax
jne 0x408753
xor eax, eax
xor ecx, ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0045bae0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x74]
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
call fcn.004521c0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x28
call fcn.00403550
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x40870e
lea ecx, [eax - 1]
mov edx, dword [esp + 0x24]
cmp edx, ecx
jb 0x408709
lea ebx, [eax + 2]
cmp edx, ebx
jg 0x40849c
mov dword [esp], 0
lea eax, [0x74d9d8]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x31
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call fcn.00452120
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00439230
jb 0x408702
cmp ebx, ecx
jb 0x4086f9
mov ebp, dword [esp + 0x94]
lea esi, [eax + ebp - 1]
cmp word [esi], 0x282e
jne 0x40845b
lea esi, [eax + ebp + 1]
cmp byte [esi], 0x2a
jne 0x40845b
mov dword [esp + 0x28], ecx
sub edx, eax
mov dword [esp + 0x30], edx
lea eax, [edx - 2]
mov dword [esp + 0x2c], eax
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, ebx
add eax, ebp
mov dword [esp + 0x98], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x29
call fcn.00403550
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x4086b4
lea ecx, [eax + 2]
mov edx, dword [esp + 0x2c]
cmp ecx, edx
jl 0x408551
mov dword [esp], 0
lea eax, [0x74c92d]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x2e
mov eax, dword [esp + 0x98]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call fcn.00452120
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00439230
ja 0x4086af
cmp eax, ecx
ja 0x4086aa
mov ebx, dword [esp + 0x98]
lea ebp, [ebx + eax]
cmp word [ebp], 0x2e29
jne 0x408510
mov edx, dword [esp + 0x30]
sub edx, eax
add edx, 0xfffffffc
mov ebp, edx
neg edx
sar edx, 0x1f
and edx, ecx
lea ecx, [ebx + edx]
mov dword [esp + 0x9c], ecx
lea edi, [esp + 0xa0]
mov edx, eax
xor eax, eax
call fcn.004690ee
mov dword [esp + 0xa4], 0xd
lea ecx, [0x73cfab]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xb4], 1
lea ecx, [0x7ae8e8]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xc4], 1
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xcc], ebp
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xd4], 0x13
lea ecx, [0x73f4bd]
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xdc], edx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xe4], 8
lea ecx, [0x73b3dd]
mov dword [esp + 0xe0], ecx
mov dword [esp], 0
lea ecx, [esp + 0xa0]
mov dword [esp + 4], ecx
mov dword [esp + 8], 9
mov dword [esp + 0xc], 9
call fcn.00451f30
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00409d40
mov ecx, dword [esp + 8]
lea edx, [0x702c60]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00438b10
call fcn.00468f30
call fcn.00468ef0
lea eax, [esp + 0x34]
mov dword [esp], eax
lea eax, [0x73f4aa]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x13
mov eax, dword [esp + 0x98]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
call fcn.00452120
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00439230
mov eax, ecx
mov ecx, ebx
call fcn.00468f30
mov ecx, ebx
call fcn.00468ef0
call fcn.00468ef0
lea eax, [esp + 0x54]
mov dword [esp], eax
lea eax, [0x73f497]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x13
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
call fcn.00452120
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00439230
mov ecx, dword [esp + 8]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004547e0
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
jmp 0x4083cd
call fcn.00467a60
jmp fcn.00408390