Function at 0x5d5180
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 0x5d53f0
sub esp, 0x44
mov eax, dword [esp + 0x54]
test eax, eax
je 0x5d535c
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
call fcn.005d49f0
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
test al, al
je 0x5d52df
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x50]
movzx ebx, byte [eax]
mov byte [esp + 0x1f], bl
cmp bl, 0x2e
jne 0x5d51fb
mov ebp, dword [esp + 0x54]
dec ebp
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 1
add eax, ebp
jmp 0x5d51ff
mov esi, dword [esp + 0x54]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], eax
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.005d49f0
movzx eax, byte [esp + 0x14]
test al, al
je 0x5d5262
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jg 0x5d5249
movzx edx, byte [esp + 0x1f]
cmp dl, 0x2e
jne 0x5d5236
cmp eax, ecx
je 0x5d5249
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
xor edx, edx
jmp 0x5d5384
mov byte [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
add esp, 0x44
ret
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.00409d40
mov eax, dword [esp + 8]
lea ecx, [0x6f44e0]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x74c2dd]
mov dword [esp], eax
mov dword [esp + 4], 0x2c
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c1f50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x58], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
add esp, 0x44
ret
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.00409d40
mov eax, dword [esp + 8]
lea ecx, [0x6f44e0]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x74c2dd]
mov dword [esp], eax
mov dword [esp + 4], 0x2c
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c1f50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x58], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
add esp, 0x44
ret
mov byte [esp + 0x58], 1
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
add esp, 0x44
ret
mov ebx, dword [esp + 0x20]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
cmp edx, eax
jge 0x5d53d7
mov dword [esp + 0x20], edx
lea eax, [ecx + edx*8]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov ebp, dword [esp + 0x30]
lea esi, [ebp + edx*8]
mov edi, dword [esi]
mov esi, dword [esi + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], esi
call fcn.004d0a40
movzx eax, byte [esp + 0x10]
test al, al
jne 0x5d5375
mov byte [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
add esp, 0x44
ret
mov byte [esp + 0x58], 1
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
add esp, 0x44
ret
call fcn.00467a60
jmp fcn.005d5180