Function at 0x665a30
Capabilities:
Reference http user-agent string
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x2c]
cmp eax, dword [ecx + 8]
jbe 0x665e43
sub esp, 0xac
mov eax, 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.0044cd14
lea ecx, [0x7824c0]
mov dword [esp], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 8], ecx
call fcn.0040b930
jmp 0x665a97
lea eax, [esp + 0x7c]
mov dword [esp], eax
call fcn.0040bbb0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x665da4
mov ecx, dword [esp + 0x80]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov eax, dword [eax]
mov dword [esp + 0x40], eax
mov ebx, dword [ecx + 4]
mov dword [esp + 0x34], ebx
mov ecx, dword [ecx]
mov dword [esp + 0x24], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00665fe0
movzx eax, byte [esp + 8]
test al, al
je 0x665d18
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x665d0d
movzx edx, byte [0xbb55c0]
test dl, dl
je 0x665d04
mov dword [0xbb55c4], ecx
mov edx, dword [0xbc7270]
test edx, edx
jne 0x665cf0
mov eax, dword [esp + 0x34]
mov dword [0xbb55c8], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x665ce5
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x665b3e
or edx, 0x80
mov ebx, edx
and edx, 0x1f
cmp edx, 0x13
jne 0x665db9
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.0047c110
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00665f20
movzx eax, byte [esp + 8]
test al, al
je 0x665bef
lea eax, [0x776b40]
mov dword [esp], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], edx
call fcn.0040eca0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov dword [edi + 8], eax
mov eax, dword [0xbc7270]
test eax, eax
jne 0x665bd5
mov eax, dword [esp + 0x38]
mov dword [edi], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 4], eax
jmp 0x665a8b
mov eax, dword [esp + 0x38]
call fcn.0044cc20
add edi, 4
mov eax, dword [esp + 0x3c]
call fcn.0044cc20
jmp 0x665a8b
mov eax, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.0047c110
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x70]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [0x771de0]
mov dword [esp], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 4], ecx
call fcn.00407630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
lea eax, [0x771460]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.00407550
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
lea eax, [0x7f0121]
mov dword [esp], eax
mov dword [esp + 4], 0x30
lea eax, [esp + 0x6c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004bcb10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x665dab
mov ecx, dword [ecx + 4]
jmp 0x665dab
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x665b3e
lea edi, [0xbb55c8]
mov eax, dword [esp + 0x34]
call fcn.0044cc20
jmp 0x665b16
mov eax, dword [esp + 0x34]
jmp 0x665b16
xor edx, edx
xor eax, eax
xor ecx, ecx
jmp 0x665b3e
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea eax, [0x771de0]
mov dword [esp], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
lea eax, [0x7edfe9]
mov dword [esp], eax
mov dword [esp + 4], 0x2a
lea eax, [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004bcb10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x665e35
mov ecx, dword [ecx + 4]
jmp 0x665e35
add esp, 0xac
ret
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00427510
ud2
mov dword [esp], 0
lea eax, [0x7de4d1]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xa
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [0x7dfcf6]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0xf
call fcn.0043bf80
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
lea eax, [0x771de0]
mov dword [esp], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call fcn.00407630
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00427510
ud2
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00427510
ud2
call fcn.0044b4c0
jmp fcn.00665a30