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

Disassembly:
push 0xffffffffffffffff
push 0x51cfa4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push ebp
mov ebp, dword [esp + 0xb8]
push esi
cmp ebp, 2
push edi
mov dword [esp + 0x30], ecx
jl 0x487ba0
mov ecx, dword [esp + 0xb8]
cmp dword [ecx], 0
jle 0x487ba0
mov eax, dword [ecx + 4]
test eax, eax
jle 0x487ba0
mov esi, dword [ecx]
mov edi, eax
cmp dword [esp + 0xb0], 1
jne 0x487a5e
mov eax, dword [esp + 0xac]
mov ecx, edi
mov edx, eax
push ecx
lea ecx, [esp + 0x24]
mov ebx, dword [edx]
mov dword [esp + 0x38], ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0x3c], ebx
mov ebx, dword [edx + 8]
mov dword [esp + 0x40], ebx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x44], edx
mov edx, dword [eax]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov eax, esi
push eax
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
jmp 0x487ad6
mov ecx, dword [esp + 0xac]
mov ebp, ecx
mov edx, dword [ebp]
mov dword [esp + 0x20], edx
mov ebx, dword [ebp + 4]
mov dword [esp + 0x24], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
sub eax, edx
mov ebp, dword [ebp + 0xc]
cdq
sub eax, edx
mov dword [esp + 0x2c], ebp
sar eax, 1
cmp esi, eax
jle 0x487a90
mov esi, eax
mov eax, ebp
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jle 0x487a9f
mov edi, eax
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x34], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x3c], edx
mov ecx, edi
mov edx, esi
mov dword [esp + 0x40], eax
neg ecx
neg edx
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov ebp, dword [esp + 0xc0]
test esi, esi
jle 0x487ba0
test edi, edi
jle 0x487ba0
mov ebx, dword [esp + 0xc4]
mov eax, 0x10624dd3
imul ebx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xfffffffc
add edx, 2
mov eax, edx
test bl, 1
mov dword [esp + 0x94], eax
je 0x487b23
mov dword [esp + 0x14], 1
jmp 0x487b2d
mov dword [esp + 0x14], 0xffffffff
neg eax
mov dword [esp + 0x54], eax
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov eax, edx
mov dword [esp + 0x10], ebp
shr eax, 0x1f
add edx, eax
mov edi, edx
and edi, 1
je 0x487b55
lea ecx, [ebp + ebp - 1]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x58]
call fcn.00464430
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0
lea esi, [edx*4]
push esi
call fcn.00464450
mov ebp, eax
test ebp, ebp
jne 0x487bbd
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0x58], 0x923294
call fcn.00464630
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret 0x24
mov eax, 0x66666667
mov ecx, dword [esp + 0xc0]
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
test dl, 1
je 0x487bfd
lea edx, [ecx - 1]
test edx, edx
jl 0x487c16
mov eax, dword [esp + 0xbc]
mov ecx, ebp
lea eax, [eax + edx*4]
inc edx
mov ebx, dword [eax]
sub eax, 4
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x487bee
jmp 0x487c16
mov eax, dword [esp + 0xbc]
lea edx, [ecx*4]
push edx
push eax
push ebp
call fcn.004ca3c0
add esp, 0xc
test edi, edi
je 0x487c3b
mov ecx, dword [esp + 0xc0]
lea edx, [ecx - 1]
test edx, edx
jle 0x487c3b
mov eax, ebp
lea ecx, [esi + ebp - 4]
mov esi, dword [eax]
add eax, 4
mov dword [ecx], esi
sub ecx, 4
dec edx
jne 0x487c2e
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0xc8]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0xb4]
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
push ebx
push eax
mov dword [esp + 0x54], ecx
push ebp
push 1
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x48]
push esi
push ecx
mov ecx, dword [esp + 0x48]
push edi
mov dword [esp + 0x6c], edx
call fcn.00487780
test eax, eax
je 0x487b84
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x14]
push ebx
push ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x58], eax
push ebp
push edx
lea eax, [esp + 0x54]
push esi
push eax
push edi
call fcn.00487780
test eax, eax
je 0x487b84
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ecx, dword [edi + 4]
push eax
push ecx
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_GetClipRgn]
mov esi, eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x34]
dec esi
mov dword [esp + 0x84], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x24]
neg esi
mov dword [esp + 0x90], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], edx
sbb esi, esi
mov dword [esp + 0x80], eax
inc esi
mov dword [esp + 0x88], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x9232ac
push 2
lea edx, [esp + 0x70]
push 5
push edx
mov byte [esp + 0xac], 1
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
lea ecx, [esp + 0x1c]
call fcn.005166d0
lea eax, [esp + 0x18]
push 1
push eax
mov ecx, edi
call fcn.0051630e
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x94]
push ebx
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0xb8]
push edx
push ebp
push eax
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push edi
call fcn.00487780
test eax, eax
jne 0x487de0
mov dword [esp + 0x18], method.CGdiObject.virtual_0
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 2
call fcn.00516727
jmp 0x487b84
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x28]
cmp esi, 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x88], edx
mov dword [esp + 0x78], eax
jne 0x487e45
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x487e4e
push 0
mov ecx, edi
call fcn.00516151
lea ecx, [esp + 0x18]
call fcn.00516727
push 2
lea edx, [esp + 0x70]
push 5
push edx
call dword [sym.imp.GDI32.dll_CreatePolygonRgn]
push eax
lea ecx, [esp + 0x1c]
call fcn.005166d0
lea eax, [esp + 0x18]
push 1
push eax
mov ecx, edi
call fcn.0051630e
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x54]
push ebx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0xb8]
push eax
push ebp
push ecx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x54]
push edx
push eax
push edi
call fcn.00487780
test eax, eax
jne 0x487ed3
mov dword [esp + 0x18], method.CGdiObject.virtual_0
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 3
call fcn.00516727
jmp 0x487b84
cmp esi, 1
jne 0x487ee9
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
jmp 0x487ef2
push 0
mov ecx, edi
call fcn.00516151
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x18], 0x9232a0
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 4
call fcn.00516727
lea ecx, [esp + 0x58]
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0x58], 0x923294
call fcn.00464630
mov eax, 1
jmp 0x487ba2