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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51db08
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00490540
test eax, eax
je 0x492167
mov eax, dword [esi + 0x54]
mov ebp, dword [esi + 0x4c]
sub eax, ebp
mov ebp, dword [esi + 0x48]
cdq
mov ecx, eax
mov eax, dword [esi + 0x50]
xor ecx, edx
sub eax, ebp
mov edi, dword [esi + 0x54]
sub ecx, edx
cdq
xor eax, edx
inc ecx
sub eax, edx
mov edx, dword [esi + 0x4c]
inc eax
cmp edx, edi
jl 0x491f95
mov edx, edi
mov ebx, dword [esi + 0x48]
mov ebp, dword [esi + 0x50]
cmp ebx, ebp
jl 0x491fa1
mov ebx, ebp
push ecx
push eax
push edx
lea eax, [esp + 0x54]
push ebx
push eax
mov ecx, esi
call fcn.00492d80
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x492167
push esi
lea ecx, [esp + 0x5c]
call fcn.00516428
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
push eax
lea edx, [esp + 0x5c]
xor ebp, ebp
push ecx
push edx
mov dword [esp + 0x80], ebp
call fcn.004a88f0
mov ecx, dword [esi + 0x1c]
add esp, 0xc
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x38]
push 2
push edx
push eax
call dword [sym.imp.GDI32.dll_DPtoLP]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00491e90
mov esi, dword [eax]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [sym.imp.GDI32.dll_LPtoDP]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x60]
add edx, esi
push 2
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x3c]
add ecx, edi
push edx
push eax
mov dword [esp + 0x48], ecx
call ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x9236d0
lea ecx, [esp + 0x38]
mov byte [esp + 0x74], 1
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x14]
call fcn.005166d0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x58]
push edx
call fcn.00515d6a
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x28]
push 2
push ecx
push edx
call ebx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
inc edx
inc ecx
mov dword [esp + 0x2c], ecx
push 1
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2c], edx
call fcn.00515ee7
push 0xffffff
push 2
push ebp
lea ecx, [esp + 0x24]
call fcn.0051673d
lea eax, [esp + 0x18]
lea ecx, [esp + 0x58]
push eax
mov byte [esp + 0x78], 2
call fcn.00515d24
push 5
lea ecx, [esp + 0x5c]
mov esi, eax
call fcn.00515ce8
push 7
lea ecx, [esp + 0x5c]
call fcn.00515e5c
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Rectangle]
push esi
lea ecx, [esp + 0x5c]
call fcn.00515d24
push ebp
lea ecx, [esp + 0x5c]
call fcn.00516151
mov esi, 0x9236b8
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 3
call fcn.00516727
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 4
call fcn.00516727
lea ecx, [esp + 0x58]
mov dword [esp + 0x74], 0xffffffff
call fcn.0051649a
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret