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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x14]
cmp eax, dword [ecx + 8]
jbe 0x4f7be2
sub esp, 0x94
mov eax, dword [esp + 0xa8]
lea ecx, [eax - 2]
cmp ecx, 0x3c
ja 0x4f7bc9
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x4f77fb
mov eax, dword [esp + 0x98]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xa0]
mov dword [esp + 8], eax
call fcn.004f2d80
mov eax, dword [esp + 0xc]
cvtsi2sd xmm0, eax
movsd qword [esp + 0x80], xmm0
mov eax, dword [esp + 0xa8]
cvtsi2sd xmm1, eax
movsd qword [esp], xmm1
call fcn.004a4bb0
movsd xmm0, qword [esp + 0x80]
divsd xmm0, qword [esp + 8]
cvttsd2si eax, xmm0
lea ecx, [eax + 1]
movzx edx, byte [esp + 0xa4]
test dl, dl
je 0x4f7769
lea ecx, [eax + 2]
mov dword [esp + 0x60], ecx
lea eax, [0x6f4820]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044e560
mov eax, dword [esp + 0xa8]
mov ecx, eax
neg eax
and eax, ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x90], edx
cmp ecx, eax
jne 0x4f77e9
bsf ecx, ecx
mov dword [esp + 0x34], ecx
mov ebx, 1
shl ebx, cl
nop
mov ebp, dword [esp + 0x98]
mov esi, dword [ebp]
cmp ecx, 0x20
sbb edi, edi
mov dword [esp + 0x68], edi
and ebx, edi
lea eax, [ebx - 1]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x78], eax
mov eax, 1
mov dword [esp + 0x5c], eax
mov eax, 0x20
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x78]
jmp 0x4f7a07
mov eax, 0xffffffff
xor edx, edx
div ecx
mov edx, ecx
mov ebx, 1
jmp 0x4f7838
lea eax, [0x6efb00]
mov dword [esp], eax
call fcn.0040c500
mov eax, dword [esp + 4]
mov byte [eax], 0x30
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], 1
mov dword [esp + 0xb4], 1
add esp, 0x94
ret
imul ecx, edx
inc ebx
cmp ecx, eax
jbe 0x4f7834
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
call fcn.004f82b0
nop
mov eax, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], edx
mov ebx, dword [esp + 0x9c]
cmp ebx, 1
jne 0x4f789f
mov dword [esp + 0x6c], 0
mov ebp, 1
lea esi, [esp + 0x6c]
mov edi, 1
jmp 0x4f78de
lea eax, [0x6f5360]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x30], eax
mov dword [esp + 8], eax
call fcn.0044e560
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x9c]
mov ebp, ebx
mov esi, eax
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x8c]
cmp ebx, ebp
jl 0x4f78e4
mov ebx, ebp
mov edx, dword [esp + 0x98]
cmp edx, esi
je 0x4f792b
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x88], esi
mov dword [esp], esi
mov dword [esp + 4], edx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.004697f0
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x3c]
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
mov edx, dword [esp + 0x90]
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0xa8]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
call fcn.004f7bf0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x90]
xor edx, edx
jmp 0x4f798d
inc edx
cmp edx, eax
jae 0x4f79f5
lea ebx, [edx + ecx]
cmp byte [ebx], 0x30
je 0x4f798c
movzx ebx, byte [esp + 0xa4]
test bl, bl
je 0x4f79b3
lea ebx, [edx - 1]
cmp eax, ebx
jbe 0x4f79ec
mov byte [edx + ecx - 1], 0x2d
jmp 0x4f79b5
mov ebx, edx
cmp ebx, eax
ja 0x4f79e3
sub eax, ebx
mov edx, eax
neg eax
sar eax, 0x1f
and ebx, eax
lea eax, [ebx + ecx]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], edx
add esp, 0x94
ret
mov ecx, eax
mov eax, ebx
call fcn.00468f30
mov ecx, eax
mov eax, ebx
call fcn.00468ed0
mov ecx, eax
mov eax, edx
call fcn.00468ed0
inc edi
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x9c]
mov edi, dword [esp + 0x5c]
cmp ebp, edi
jg 0x4f7b70
jmp 0x4f7ad2
test ebp, ebp
jne 0x4f7a41
mov ebp, dword [esp + 0x98]
mov esi, dword [ebp + edi*4]
mov dword [esp + 0x70], eax
mov eax, 0x20
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x70]
jmp 0x4f79fe
mov edx, dword [esp + 0x98]
mov ecx, dword [edx + edi*4]
mov dword [esp + 0x64], ecx
mov ecx, ebp
mov edx, dword [esp + 0x64]
shl edx, cl
cmp ecx, 0x20
sbb ecx, ecx
and ecx, edx
or esi, ecx
and esi, eax
cmp esi, 0x3e
jae 0x4f7ba8
lea edx, [ebx - 1]
mov ecx, ebp
lea ebp, [0x750714]
movzx esi, byte [ebp + esi]
mov ebp, dword [esp + 0x60]
cmp ebp, edx
jbe 0x4f7b9f
mov ebp, dword [esp + 0x90]
xchg esi, eax
mov byte [ebx + ebp - 1], al
xchg esi, eax
mov ebp, dword [esp + 0x98]
mov esi, dword [ebp + edi*4]
mov ebp, dword [esp + 0x34]
sub ebp, ecx
mov ecx, ebp
shr esi, cl
lea ebx, [ecx - 0x20]
neg ebx
cmp ecx, 0x20
sbb ebp, ebp
and esi, ebp
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x50], ebx
mov ebx, edx
mov edx, dword [esp + 0x90]
jmp 0x4f79fe
mov dword [esp + 0x58], eax
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0x60]
jmp 0x4f7afa
xchg esi, eax
mov byte [ebx + edx - 1], al
xchg esi, eax
mov esi, dword [esp + 0x40]
shr esi, cl
mov ebx, dword [esp + 0x68]
and esi, ebx
mov ebp, ebx
mov ebx, eax
mov eax, dword [esp + 0x58]
test esi, esi
je 0x4f7b1d
mov dword [esp + 0x40], esi
and esi, eax
cmp esi, 0x3e
jae 0x4f7b3b
lea eax, [ebx - 1]
lea ebp, [0x750714]
movzx esi, byte [ebp + esi]
cmp edi, eax
ja 0x4f7ae0
jmp 0x4f7b34
movzx ebp, byte [esp + 0xa4]
xchg ebp, eax
test al, al
xchg ebp, eax
mov eax, edi
mov ecx, edx
mov edx, ebx
jmp 0x4f79a3
mov ecx, edi
call fcn.00468ed0
mov eax, esi
mov ecx, 0x3e
call fcn.00468ee0
xchg esi, eax
mov byte [ebx + edx - 1], al
xchg esi, eax
mov esi, dword [esp + 0x40]
shr esi, cl
mov ebx, dword [esp + 0x68]
and esi, ebx
mov ebx, dword [esp + 0x50]
sub ebx, ecx
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x50], ebx
mov ebx, edi
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x50]
cmp ebp, ecx
jb 0x4f7a1f
mov dword [esp + 0x40], esi
and esi, eax
cmp esi, 0x3e
jae 0x4f7bbd
lea edi, [ebx - 1]
lea ebp, [0x750714]
movzx esi, byte [ebp + esi]
mov ebp, dword [esp + 0x60]
cmp ebp, edi
ja 0x4f7b47
jmp 0x4f7bb4
mov eax, edx
mov ecx, ebp
call fcn.00468ed0
mov eax, esi
mov ecx, 0x3e
call fcn.00468ee0
mov eax, edi
mov ecx, ebp
call fcn.00468ed0
mov eax, esi
mov ecx, 0x3e
call fcn.00468ee0
lea eax, [0x6f44e0]
mov dword [esp], eax
lea eax, [0x7b0868]
mov dword [esp + 4], eax
call fcn.00438b10
nop
call fcn.00467a60
jmp fcn.004f76c0