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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51eb68
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x5c]
mov eax, dword [eax - 8]
test eax, eax
jne 0x4aad36
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4aaded
push esi
lea ecx, [esp + 0x34]
call fcn.00516428
lea edx, [esi + 0x90]
lea ecx, [esp + 0x30]
push edx
mov dword [esp + 0x50], 0
call fcn.00515d24
mov ebp, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x5c]
xor ebx, ebx
xor edi, edi
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4aad89
mov ecx, dword [eax - 8]
lea edx, [esp + 0x18]
push edx
push ecx
push eax
mov eax, dword [esp + 0x44]
push eax
call ebp
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4aadba
mov eax, ecx
lea edx, [esp + 0x18]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x44]
push eax
call ebp
mov eax, dword [esp + 0x18]
cmp eax, ebx
jle 0x4aadb0
mov ebx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
jle 0x4aadba
mov edi, eax
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x34]
call fcn.00515d24
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + eax]
add edi, ecx
add ebx, ecx
lea ecx, [esp + 0x30]
lea edx, [edi + eax*2 + 2]
mov dword [esp + 0x14], edx
call fcn.0051649a
jmp 0x4aadf1
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x3c]
mov eax, 0x92492493
imul ecx
add edx, ecx
mov dword [esi + 0x40], 7
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov edi, edx
mov ecx, 7
cdq
idiv ecx
mov dword [esi + 0x44], edi
test edx, edx
je 0x4aae25
inc edi
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x44]
mov ecx, dword [esi + 0x4c]
imul edx, eax
imul eax, dword [esi + 0x40]
mov ebp, dword [esp + 0x24]
lea edi, [esi + 0x80]
shl ecx, 1
add edx, ecx
add eax, ecx
mov ecx, dword [esp + 0x20]
add edx, ebp
add eax, ecx
push edx
push eax
mov eax, ebp
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4aaecb
mov edx, dword [edi + 8]
mov ecx, dword [edi]
sub edx, ecx
cmp ebx, edx
jle 0x4aae88
mov eax, ecx
add eax, ebx
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x4c]
mov ebx, dword [edi + 8]
mov edx, dword [edi]
lea ebp, [esi + 0x70]
lea ecx, [eax + eax]
sub ebx, edx
mov edx, dword [esp + 0x14]
sub ebx, ecx
add ecx, edx
push ecx
lea ecx, [eax + ebx]
push ecx
push eax
push eax
push ebp
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esi + 0x4c]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0xc]
shl edx, 1
sub edx, eax
mov eax, dword [esi + 0x8c]
add edx, ecx
add eax, edx
mov dword [esi + 0x8c], eax
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4aaf3e
mov ecx, dword [edi + 8]
mov edx, dword [edi]
sub ecx, edx
cmp ebx, ecx
jle 0x4aaee8
add edx, ebx
mov dword [esi + 0x88], edx
mov eax, dword [esi + 0x4c]
mov ebp, dword [edi + 4]
lea ebx, [esi + 0x60]
lea ecx, [eax + eax]
mov edx, ecx
mov ecx, dword [edi + 8]
sub ecx, edx
mov edx, dword [edi]
sub ecx, edx
mov edx, dword [edi + 0xc]
sub edx, ebp
mov ebp, dword [esp + 0x14]
add edx, eax
add ecx, eax
add edx, ebp
mov ebp, dword [edi + 4]
push edx
mov edx, dword [edi + 0xc]
sub edx, ebp
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0x4c]
mov ebp, dword [ebx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [esi + 0x8c]
shl eax, 1
sub eax, ebp
add eax, edx
add ecx, eax
mov dword [esi + 0x8c], ecx
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call ebp
push 0
mov ebx, eax
call ebp
mov ecx, dword [esi + 0x88]
mov ebp, dword [sym.imp.USER32.dll_OffsetRect]
cmp ecx, eax
jle 0x4aaf66
sub eax, ecx
push 0
push eax
push edi
call ebp
mov eax, dword [edi]
test eax, eax
jge 0x4aaf74
neg eax
push 0
push eax
push edi
call ebp
mov eax, dword [esi + 0x8c]
cmp eax, ebx
jle 0x4aaf86
sub ebx, eax
push ebx
push 0
push edi
call ebp
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi]
sub edx, eax
push 1
push edx
mov edx, dword [edi + 8]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.00513d1a
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret