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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51ce18
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
je 0x48624a
cmp dword [ebx + 4], esi
je 0x48624a
mov ebp, dword [esp + 0x7c]
cmp ebp, 3
je 0x48624a
mov eax, dword [esp + 0x80]
cmp eax, esi
je 0x486072
mov edi, dword [eax + 4]
cmp edi, esi
jne 0x48607c
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, eax
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x28]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0x28
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], 1
mov word [esp + 0x52], 0x18
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
call fcn.00516428
mov ebx, dword [esp + 0x18]
push esi
push edi
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
call edi
push ebx
mov dword [esp + 0x84], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0x28
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
cmp ebp, esi
jne 0x486113
mov ecx, dword [esp + 0x80]
push esi
push ecx
push ebx
call edi
jmp 0x486239
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x48]
push 0
mov dword [esp + 0x14], eax
mov ecx, 0xa
lea esi, [esp + 0x44]
mov edi, eax
push eax
mov eax, dword [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 4]
push 0
push edx
push 0
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov esi, dword [esp + 0x10]
mov ecx, 0xa
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x54]
test esi, esi
jne 0x486192
mov eax, dword [esp + 0x4e]
and eax, 0xffff
imul eax, dword [esp + 0x44]
add eax, 0x1f
and al, 0xe0
cdq
and edx, 7
add eax, edx
mov esi, eax
mov eax, dword [esp + 0x7c]
sar esi, 3
imul esi, dword [esp + 0x48]
test eax, eax
je 0x486192
lea edx, [esi + esi*2]
mov esi, edx
shr esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call edi
lea eax, [esi + 0x28]
push 2
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov esi, eax
test esi, esi
je 0x486221
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
push 0
push eax
add eax, ecx
push eax
mov eax, dword [esp + 0x84]
push edx
push 0
mov ecx, dword [eax + 4]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edx, dword [esp + 0x80]
push 0
push edx
push ebx
mov ebp, eax
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call edi
test ebp, ebp
jne 0x4861fb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x486239
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
call fcn.0051649a
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x80]
push 0
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
call fcn.0051649a
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret