Function at 0x509760
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 0x509b48
sub esp, 0x44
mov ebx, dword [esp + 0x48]
test byte [ebx], al
mov ebp, dword [esp + 0x58]
movzx esi, byte [esp + 0x5c]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, ebp
mov edx, 0xff
mov dword [esp + 0x2c], edx
xor ebp, ebp
mov dword [esp + 0x28], ebp
xor edx, edx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x24], edx
mov ebp, edx
jmp 0x5097d4
mov edx, dword [esp + 0x58]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
mov edi, dword [esp + 0x54]
mov ebp, esi
movzx esi, byte [esp + 0x5c]
cmp eax, ebp
jle 0x5099eb
jbe 0x509b3e
mov dword [esp + 0x3c], ebx
movzx edx, byte [ecx + ebp]
mov dword [esp + 0x38], edx
and edx, 0xc0
lea ebx, [ebp + 1]
test edx, edx
jne 0x50983c
mov esi, dword [esp + 0x38]
test esi, esi
je 0x5098ba
lea edx, [ebp + esi + 1]
cmp eax, edx
jl 0x50989a
cmp edi, edx
jb 0x509b35
cmp edx, ebx
jb 0x509b2c
sub edi, ebp
lea ebp, [edi - 1]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebx, ebp
add ebx, ecx
xor ebp, ebp
jmp 0x509a11
cmp edx, 0xc0
jne 0x5099cb
xchg esi, eax
test al, al
xchg esi, eax
je 0x5099ab
cmp eax, ebx
jle 0x50998b
jbe 0x509a07
movzx ebx, byte [ebp + ecx + 1]
mov edx, edi
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x509874
add ebp, 2
jmp 0x509878
mov ebp, dword [esp + 0x24]
inc edi
cmp edi, 0xa
jg 0x50996b
mov esi, dword [esp + 0x38]
xor esi, 0xc0
shl esi, 8
or esi, ebx
mov ebx, dword [esp + 0x2c]
jmp 0x5097b5
mov eax, dword [0x9672c8]
mov ecx, dword [0x9672cc]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x509916
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5098d5
mov eax, 1
mov ecx, dword [esp + 0x3c]
jmp 0x509911
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x6f4820]
mov dword [esp + 0x10], eax
call fcn.0044e6e0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, ebx
mov ebx, dword [esp + 0x30]
mov byte [eax + ecx - 1], 0x2e
cmp eax, 0xfe
jg 0x50994b
mov ecx, dword [esp + 0x48]
mov byte [ecx + 0xff], al
mov eax, dword [esp + 0x20]
test eax, eax
je 0x509933
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
add esp, 0x44
ret
mov eax, dword [0x967300]
mov ecx, dword [0x967304]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x9672d8]
mov ecx, dword [0x9672dc]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x9672e0]
mov ecx, dword [0x9672e4]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x967340]
mov ecx, dword [0x967344]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x9672d0]
mov ecx, dword [0x9672d4]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x9672c0]
mov ecx, dword [0x9672c4]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov ecx, eax
mov eax, ebx
call fcn.00468ed0
inc ebp
cmp ebp, esi
jge 0x509a3e
lea edi, [ebp + ebx]
cmp byte [edi], 0x2e
jne 0x509a10
mov eax, dword [0x9672e8]
mov ecx, dword [0x9672ec]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov dword [esp + 0x34], edx
mov ebp, dword [esp + 0x28]
lea edi, [ebp + esi]
mov ecx, dword [esp + 0x2c]
cmp ecx, edi
jae 0x509a96
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
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 + 0x38]
mov ecx, eax
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x3c]
lea edx, [eax + ebp]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.004697f0
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jb 0x509ace
mov ecx, eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
jmp 0x509b00
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x6f4820]
mov dword [esp + 0x10], eax
call fcn.0044e6e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov byte [ecx + eax - 1], 0x2e
mov esi, dword [esp + 0x34]
mov ebx, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
jmp 0x5097b5
mov eax, ebx
mov ecx, edx
call fcn.00468f30
mov ecx, edx
mov edx, edi
call fcn.00468f10
mov ecx, eax
mov eax, ebp
call fcn.00468ed0
nop
call fcn.00467a60
jmp fcn.00509760