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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51fa10
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
je 0x4d5052
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4d5052
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0xd0]
cmp ecx, eax
jl 0x4d4d94
mov eax, 1
jmp 0x4d5054
lea ecx, [esp + 0x20]
call fcn.0050e94a
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x3c], 0
mov edi, ebx
mov ecx, ebx
mov edx, dword [esp + 0x28]
mov bl, byte [edi]
cmp bl, 0xd
je 0x4d4e05
cmp bl, 0xa
je 0x4d4e05
test bl, bl
je 0x4d4e05
cmp bl, 0x80
jbe 0x4d4dce
mov al, byte [edi + 1]
test al, al
je 0x4d4dce
inc edi
inc edi
test edx, edx
jne 0x4d4ddb
mov eax, dword [esi + 0xcc]
jmp 0x4d4ddd
xor eax, eax
sub eax, ecx
add eax, edi
cmp eax, ebp
jl 0x4d4db1
mov bl, byte [edi]
cmp bl, 0xd
je 0x4d4db1
cmp bl, 0xa
je 0x4d4db1
push ecx
push edx
lea ecx, [esp + 0x28]
mov byte [edi], 0
call fcn.0050eb26
mov byte [edi], bl
mov ecx, edi
jmp 0x4d4dad
cmp edi, ecx
jne 0x4d4e31
mov al, byte [edi]
cmp al, 0xd
je 0x4d4e13
cmp al, 0xa
jne 0x4d4e16
inc edi
jmp 0x4d4e09
cmp byte [edi], 0
je 0x4d4e60
push 0x96c97c
push edx
lea ecx, [esp + 0x28]
call fcn.0050eb26
mov ecx, edi
jmp 0x4d4dad
push ecx
push edx
lea ecx, [esp + 0x28]
mov byte [edi], 0
call fcn.0050eb26
test bl, bl
mov byte [edi], bl
je 0x4d4e5c
mov al, byte [edi + 1]
inc edi
cmp al, 0xa
jne 0x4d4e55
mov al, byte [edi + 1]
inc edi
cmp al, 0xa
je 0x4d4e4d
mov ecx, edi
jmp 0x4d4dad
mov edx, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x48], edx
test edx, edx
jle 0x4d5024
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x24]
mov eax, dword [esi + 0xd0]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jge 0x4d5028
dec ecx
cmp eax, ecx
jne 0x4d4e9a
mov ecx, dword [esp + 0x48]
dec ecx
cmp ebx, ecx
jne 0x4d4f78
mov eax, dword [ebp + ebx*4]
lea edx, [esp + 0x10]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xac]
mov eax, dword [eax + ebx*4]
mov ebp, dword [eax - 8]
mov dword [esp + 0x4c], ebp
mov ebp, dword [edi]
push dword [esp + 0x4c]
push eax
push ecx
push edx
mov ecx, edi
call dword [ebp + 0x5c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0xac]
add edx, ecx
mov ecx, dword [esi + 0xb4]
mov eax, edx
mov dword [esi + 0xac], edx
cmp eax, ecx
jle 0x4d4efe
mov dword [esi + 0xb4], eax
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x24]
dec edx
cmp ebx, edx
jge 0x4d4f66
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0xb8]
inc ecx
mov dword [esi + 0xac], eax
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xcc], 0
mov ecx, dword [ebp + ebx*4]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4d4f52
fild dword [esi + 0xc8]
fmul qword [0x927cb0]
fiadd dword [esi + 0xb0]
call fcn.004fdc38
jmp 0x4d4f60
mov edx, dword [esi + 0xc8]
mov eax, dword [esi + 0xb0]
add eax, edx
mov dword [esi + 0xb0], eax
mov eax, dword [esp + 0x48]
inc ebx
cmp ebx, eax
jl 0x4d4e76
jmp 0x4d5028
push 0x947f60
lea ecx, [esp + 0x54]
call fcn.0050f924
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x40], 1
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xac]
mov ebp, dword [edi]
mov ebx, dword [edx - 8]
push ebx
push edx
push eax
push ecx
mov ecx, edi
call dword [ebp + 0x5c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0xac]
mov edi, dword [esi + 0xd0]
add edx, ecx
mov ecx, dword [esi + 0xb4]
mov eax, edx
inc edi
cmp eax, ecx
mov dword [esi + 0xd0], edi
mov dword [esi + 0xac], edx
jle 0x4d4ff2
mov dword [esi + 0xb4], eax
mov edx, dword [esi + 0xb8]
lea ecx, [esp + 0x50]
mov dword [esi + 0xac], edx
mov byte [esp + 0x3c], 0
call fcn.0050f8b6
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0050e97d
mov eax, 1
jmp 0x4d5054
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], 0xffffffff
mov ecx, dword [ebp + eax*4 - 4]
mov eax, dword [ecx - 8]
mov ecx, dword [esi + 0xcc]
add ecx, eax
mov dword [esi + 0xcc], ecx
lea ecx, [esp + 0x20]
call fcn.0050e97d
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0x10