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

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebx
push ebp
mov ebx, ecx
push esi
dec eax
push edi
mov dword [esp + 0x14], ebx
je 0x4d22ce
dec eax
je 0x4d22bc
dec eax
jne 0x4d22ce
mov dword [esp + 0x10], 0x947780
mov dword [esp + 0x38], 0x743c00
jmp 0x4d22de
mov dword [esp + 0x10], 0x947710
mov dword [esp + 0x38], 0x66237
jmp 0x4d22de
mov dword [esp + 0x10], 0x9476a0
mov dword [esp + 0x38], 0x733c00
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
test eax, eax
je 0x4d2303
cmp eax, 2
jne 0x4d2433
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebp, eax
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push ebp
push edx
push eax
call dword [sym.imp.USER32.dll_FrameRect]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4d2359
cmp eax, 1
jne 0x4d2345
jmp 0x4d2359
cmp eax, 2
jne 0x4d234c
jmp 0x4d2359
xor edx, edx
cmp eax, 3
setne dl
add edx, 3
mov eax, edx
mov ebp, dword [esp + 0x10]
mov ecx, dword [edi + 4]
shl eax, 4
add eax, ebp
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.004d24a0
push 0xfffffffffffffffe
lea edx, [esp + 0x1c]
push 0xfffffffffffffffe
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [edi + 4]
add ebp, 0x60
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, ebx
call fcn.004d24a0
mov ebp, dword [ebx + 0x3c]
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.GDI32.dll_SetPixel]
push ebp
push edx
push eax
push ecx
call ebx
mov edx, dword [esi + 0xc]
mov eax, dword [esi]
mov ecx, dword [edi + 4]
dec edx
push ebp
push edx
push eax
push ecx
call ebx
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov ecx, dword [edi + 4]
push ebp
dec eax
push edx
push eax
push ecx
call ebx
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 4]
dec edx
push ebp
dec eax
push edx
push eax
push ecx
call ebx
mov edx, dword [esi + 4]
mov ebp, dword [esp + 0x38]
mov eax, dword [esi]
mov ecx, dword [edi + 4]
inc edx
push ebp
inc eax
push edx
push eax
push ecx
call ebx
mov edx, dword [esi + 0xc]
mov eax, dword [esi]
mov ecx, dword [edi + 4]
sub edx, 2
push ebp
inc eax
push edx
push eax
push ecx
call ebx
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 4]
inc edx
push ebp
sub eax, 2
push edx
push eax
push ecx
call ebx
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 4]
sub edx, 2
push ebp
sub eax, 2
push edx
push eax
push ecx
call ebx
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x14]
test eax, eax
je 0x4d243c
cmp eax, 1
jne 0x4d2492
mov edx, dword [esp + 0x40]
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
add ebx, 0x158
test ebx, ebx
jne 0x4d2459
xor eax, eax
jmp 0x4d245c
mov eax, dword [ebx + 4]
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ecx
call ebx
mov edx, dword [edi + 4]
push 1
push edx
mov ebp, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 4]
push 0x25
push esi
push 0xffffffffffffffff
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextA]
mov edx, dword [edi + 4]
push ebp
push edx
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c