def transform_wiki_url(file_name: str) -> str:
    """
    Transforms attach url to original wiki url
    :param file_name: name of the file
    :return: file url
    >>> transform_wiki_url('1040017000.png')
    'http://gbf-wiki.com/attach2/696D67_313034303031373030302E706E67.png'
    >>> b'img'.hex().upper()
    '696D67'
    """
    url = r'http://gbf-wiki.com/attach2/696D67_{}.png'
    return url.format(file_name.encode('utf-8').hex().upper())