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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51fa40
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
je 0x4d55ef
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4d55ef
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0xbc]
push 0x18
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], ecx
mov dword [esi + 0xb4], eax
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xcc], ebx
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 0x927cc0
lea eax, [esi + 0x4c]
mov dword [esp + 0x3c], ebx
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x30]
call fcn.005166d0
mov edi, dword [esp + 0x44]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x28]
push 1
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.00515e00
push 0x947ff0
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], eax
call fcn.0050f924
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x24]
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]
lea ecx, [esp + 0x44]
call fcn.0050f8b6
mov ecx, dword [esp + 0x28]
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
inc ecx
push ebx
mov dword [esi + 0xc8], ecx
call ebp
push 1
mov ebx, eax
call ebp
mov ecx, eax
mov eax, ebx
cdq
idiv dword [esp + 0x24]
sub eax, 5
cmp eax, 0xa
mov dword [esp + 0x18], eax
jge 0x4d5195
mov dword [esp + 0x18], 0xa
mov edx, dword [esp + 0x28]
mov eax, ecx
lea ebx, [edx + 5]
cdq
idiv ebx
cmp eax, 0x14
mov dword [esp + 0x44], eax
jle 0x4d51b4
mov dword [esp + 0x44], 0x14
jmp 0x4d51c1
cmp eax, 1
jge 0x4d51c1
mov dword [esp + 0x44], 1
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
cmp byte [eax], 0
je 0x4d55be
mov ebp, 1
mov eax, dword [0x94f978]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x88]
mov byte [esp + 0x3c], 1
cmp eax, ebp
jne 0x4d5200
lea ecx, [esp + 0x48]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.004d5670
jmp 0x4d520f
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004d56f0
add esp, 8
cmp eax, ebp
jne 0x4d551b
mov edx, dword [esp + 0x48]
xor ebx, ebx
cmp dword [edx - 8], ebx
jne 0x4d5237
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], bl
call fcn.0050f8b6
jmp 0x4d55a1
lea ecx, [esp + 0x48]
call fcn.0050fd6c
mov eax, dword [esp + 0x48]
cmp byte [eax], 0x2f
jne 0x4d527f
mov eax, dword [eax - 8]
xor ebp, ebp
dec eax
lea ecx, [esp + 0x48]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0050c756
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], 2
call fcn.0050f9a3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 1
call fcn.0050f8b6
mov eax, dword [esp + 0x48]
push 0x947fec
push eax
call fcn.004fe3e4
add esp, 8
test eax, eax
je 0x4d54d3
mov ecx, dword [esp + 0x48]
push str.bold
push ecx
call fcn.004fe3e4
add esp, 8
test eax, eax
je 0x4d54d3
mov edx, dword [esp + 0x48]
push 0x947fe0
push edx
call fcn.004fe3e4
add esp, 8
test eax, eax
je 0x4d54c7
mov eax, dword [esp + 0x48]
push str.italic
push eax
call fcn.004fe3e4
add esp, 8
test eax, eax
je 0x4d54c7
mov ecx, dword [esp + 0x48]
push 0x947fd4
push ecx
call fcn.004fe3e4
add esp, 8
test eax, eax
je 0x4d54bb
mov edx, dword [esp + 0x48]
push str.underline
push edx
call fcn.004fe3e4
add esp, 8
test eax, eax
je 0x4d54bb
mov eax, dword [esp + 0x48]
push 0x947fc4
push eax
call fcn.004fe3e4
add esp, 8
test eax, eax
je 0x4d54af
mov ecx, dword [esp + 0x48]
push str.strikeout
push ecx
call fcn.004fe3e4
add esp, 8
test eax, eax
je 0x4d54af
push str.color
lea ecx, [esp + 0x4c]
call fcn.0050c84a
test eax, eax
je 0x4d5476
push 0x947fac
lea ecx, [esp + 0x4c]
call fcn.0050c84a
test eax, eax
je 0x4d5476
mov edx, dword [esp + 0x48]
push 0x947fa8
push edx
call fcn.004fe3e4
add esp, 8
test eax, eax
jne 0x4d53c5
mov ecx, dword [esi + 0xc8]
mov edx, dword [esi + 0xb0]
mov eax, dword [esi + 0xb8]
add edx, ecx
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], edx
mov eax, dword [esi + 0xd0]
mov dword [esi + 0xcc], ebx
inc eax
mov dword [esi + 0xd0], eax
jmp 0x4d558e
mov edx, dword [esp + 0x48]
push 0x947fa4
push edx
call fcn.004fe3e4
add esp, 8
test eax, eax
jne 0x4d5406
fild dword [esi + 0xc8]
mov eax, dword [esi + 0xb8]
mov dword [esi + 0xac], eax
fmul qword [0x927cb8]
fiadd dword [esi + 0xb0]
call fcn.004fdc38
mov dword [esi + 0xb0], eax
jmp 0x4d53ad
push str.backcolor
lea ecx, [esp + 0x4c]
call fcn.0050c84a
test eax, eax
jne 0x4d543c
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0050f62b
call fcn.004d5790
add esp, 4
mov dword [esi + 0xd4], eax
jmp 0x4d558e
push str.bordercolor
lea ecx, [esp + 0x4c]
call fcn.0050c84a
test eax, eax
jne 0x4d558e
push ecx
lea eax, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0050f62b
call fcn.004d5790
add esp, 4
mov dword [esi + 0xd8], eax
jmp 0x4d558e
cmp ebp, ebx
je 0x4d54a0
push ecx
lea edx, [esp + 0x4c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0050f62b
call fcn.004d5790
mov edx, dword [edi]
add esp, 4
mov ecx, edi
push eax
call dword [edx + 0x30]
jmp 0x4d558e
mov edx, dword [edi]
xor eax, eax
push eax
mov ecx, edi
call dword [edx + 0x30]
jmp 0x4d558e
lea eax, [esi + 0x4c]
push ebp
push eax
call fcn.004d5660
jmp 0x4d54dd
lea eax, [esi + 0x4c]
push ebp
push eax
call fcn.004d5650
jmp 0x4d54dd
lea eax, [esi + 0x4c]
push ebp
push eax
call fcn.004d5640
jmp 0x4d54dd
lea eax, [esi + 0x4c]
push ebp
push eax
call fcn.004d5610
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
add esp, 8
push ecx
mov ecx, edi
call dword [eax + 0x28]
lea ecx, [esp + 0x2c]
call fcn.00516727
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x30]
call fcn.005166d0
mov edx, dword [edi]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call dword [edx + 0x28]
mov dword [esp + 0x14], eax
jmp 0x4d558e
test eax, eax
jne 0x4d558e
cmp dword [esi + 0x88], ebp
jne 0x4d5573
push 0x947f88
push str.lt_
lea ecx, [esp + 0x50]
call fcn.0050c55d
push 0x947f7c
push str.gt_
lea ecx, [esp + 0x50]
call fcn.0050c55d
push str.lt_
push str._lt_
lea ecx, [esp + 0x50]
call fcn.0050c55d
push str.gt_
push str._gt_
lea ecx, [esp + 0x50]
call fcn.0050c55d
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
push edi
mov ecx, esi
call fcn.004d4d40
cmp eax, ebp
je 0x4d55b0
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 0
call fcn.0050f8b6
mov ebp, 1
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0
jne 0x4d51d7
jmp 0x4d55be
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 0
call fcn.0050f8b6
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, edi
call fcn.00515e00
mov dword [esp + 0x2c], 0x927ca0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 3
call fcn.00516727
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 8