import idaapi
import idautils
import idc

alias = {
'zya844': 'qisdir',
'zya1126': 'xrefchar',
'zya665': 'leading_zero_important',
'zya827': 'qfindclose',
'zya532': 'getn_hidden_range',
'zya262': 'fopenRT',
'zya854': 'qmutex_unlock',
'zya1012': 'set_stroff_path',
'zya859': 'qsem_wait',
'zya591': 'idcv_int64',
'zya324': 'get_dtype_by_size',
'zya753': 'next_idcv_attr',
'zya773': 'pack_dq',
'zya545': 'hexplace_t__clone',
'zya204': 'enumplace_t__clone',
'zya562': 'hexplace_t__serialize',
'zya57': 'b2a_width',
'zya1039': 'simpleline_place_t__makeplace',
'zya672': 'linearray_t_ctr',
'zya936': 'run_plugin',
'zya813': 'qalloc_or_throw',
'zya397': 'get_idati',
'zya167': 'del_segm',
'zya68': 'bookmarks_t_find_index',
'zya912': 'reg_str_set',
'zya732': 'netnode_qhashfirst',
'zya982': 'set_lzero',
'zya829': 'qfindnext',
'zya644': 'is_off',
'zya915': 'reg_update_strlist',
'zya678': 'llong_scan',
'zya143': 'create_zip_linput',
'zya717': 'netnode_charshift',
'zya187': 'dstr_tinfo',
'zya833': 'qfputs',
'zya814': 'qatexit',
'zya244': 'find_extlang',
'zya49': 'attach_custom_data_format',
'zya276': 'func_item_iterator_decode_prev_insn',
'zya1114': 'vadd_extra_line',
'zya634': 'is_invsign',
'zya327': 'get_dword',
'zya29': 'alloc_type_ordinals',
'zya560': 'hexplace_t__print',
'zya589': 'idb_utf8',
'zya974': 'set_func_cmt',
'zya872': 'qstrupr',
'zya147': 'decode_preceding_insn',
'zya252': 'find_regvar',
'zya861': 'qsscanf',
'zya251': 'find_plugin',
'zya551': 'hexplace_t__enter',
'zya901': 'rebuild_nlist',
'zya293': 'get_64bit',
'zya1046': 'simpleline_place_t__toea',
'zya337': 'get_enum_cmt',
'zya07': 'add_enum_member',
'zya781': 'parse_reg_name',
'zya820': 'qerrcode',
'zya267': 'forget_problem',
'zya1095': 'unhook_from_notification_point',
'zya270': 'free_idcv',
'zya687': 'lochist_t_deregister_live',
'zya1120': 'vshow_hex',
'zya1048': 'skip_spaces',
'zya296': 'get_array_parameters',
'zya878': 'qtime64',
'zya1037': 'simpleline_place_t__id',
'zya1051': 'str2ea',
'zya106': 'check_and_create_flat_jump_table',
'zya1092': 'trim_jtable',
'zya882': 'qustrlen',
'zya99': 'callui',
'zya811': 'put_word',
'zya714': 'netnode_altadjust',
'zya40': 'apply_named_type',
'zya393': 'get_idasgn_desc',
'zya406': 'get_item_flag',
'zya840': 'qgetcwd',
'zya477': 'get_root_filename',
'zya973': 'set_frame_size',
'zya898': 'reanalyze_callers',
'zya572': 'idaplace_t__compare',
'zya213': 'enumplace_t__makeplace',
'zya657': 'is_valid_cp',
'zya929': 'reorder_dummy_names',
'zya473': 'get_radix',
'zya392': 'get_idainfo_by_type',
'zya706': 'make_name_public',
'zya573': 'idaplace_t__copyfrom',
'zya689': 'lochist_t_get',
'zya658': 'is_valid_utf8',
'zya527': 'get_word',
'zya381': 'get_func_by_frame',
'zya685': 'lochist_t_clear',
'zya921': 'register_custom_fixup',
'zya58': 'base2file',
'zya94': 'calc_prefix_color',
'zya531': 'getn_func',
'zya59': 'base64_decode',
'zya1113': 'utf8_utf16',
'zya38': 'apply_cdecl',
'zya389': 'get_hidden_range',
'zya370': 'get_fixup',
'zya146': 'decode_insn',
'zya454': 'get_ordinal_from_idb_type',
'zya653': 'is_stroff',
'zya576': 'idaplace_t__enter',
'zya593': 'idcv_string',
'zya1044': 'simpleline_place_t__rebase',
'zya491': 'get_selector_qty',
'zya395': 'get_idasgn_qty',
'zya350': 'get_enum_qty',
'zya11': 'add_idc_func',
'zya311': 'get_custom_data_type',
'zya429': 'get_name_expr',
'zya95': 'calc_reference_data',
'zya151': 'del_debug_names',
'zya1117': 'visit_patched_bytes',
'zya70': 'bookmarks_t_get_desc',
'zya910': 'reg_read_strlist',
'zya384': 'get_func_name',
'zya777': 'parse_dbgopts',
'zya402': 'get_import_module_name',
'zya1104': 'update_extra_cmt',
'zya922': 'register_loc_converter',
'zya154': 'del_enum_member',
'zya622': 'is_database_flag',
'zya237': 'find_code',
'zya419': 'get_mappings_qty',
'zya229': 'eval_idc_snippet',
'zya1034': 'simpleline_place_t__ending',
'zya160': 'del_items',
'zya819': 'qdirname',
'zya804': 'print_type',
'zya715': 'netnode_altshift',
'zya310': 'get_custom_data_formats',
'zya822': 'qexit',
'zya855': 'qrealloc',
'zya761': 'num_flag',
'zya14': 'add_qword',
'zya18': 'add_segm_ex',
'zya55': 'b2a32',
'zya905': 'reg_delete_subkey',
'zya86': 'calc_def_align',
'zya881': 'quote_cmdline_arg',
'zya594': 'ieee_realcvt',
'zya455': 'get_ordinal_qty',
'zya91': 'calc_max_item_end',
'zya513': 'get_struc_qty',
'zya119': 'clr_op_type',
'zya287': 'gen_simple_call_chart',
'zya357': 'get_file_type_name',
'zya447': 'get_nsec_stamp',
'zya312': 'get_custom_data_type_ids',
'zya646': 'is_public_name',
'zya965': 'set_enum_hidden',
'zya720': 'netnode_delblob',
'zya611': 'invalidate_visea_cache',
'zya1123': 'xrefblk_t_first_to',
'zya778': 'parse_decl',
'zya313': 'get_custom_refinfo',
'zya933': 'retrieve_custom_argloc',
'zya463': 'get_predef_insn_cmt',
'zya440': 'get_next_serial_enum_member',
'zya431': 'get_named_type',
'zya439': 'get_next_seg',
'zya774': 'pack_ds',
'zya897': 'realtoasc',
'zya654': 'is_suspop',
'zya886': 'qvsnprintf',
'zya06': 'add_enum',
'zya498': 'get_sreg_range_num',
'zya249': 'find_not_func',
'zya458': 'get_path',
'zya896': 'read_regargs',
'zya371': 'get_fixup_desc',
'zya776': 'parse_config_value',
'zya470': 'get_problem_name',
'zya1003': 'set_segm_base',
'zya129': 'create_32bit_data',
'zya994': 'set_op_type',
'zya650': 'is_spec_segm',
'zya574': 'idaplace_t__deserialize',
'zya161': 'del_mapping',
'zya946': 'serialize_tinfo',
'zya400': 'get_idp_name',
'zya1013': 'set_struc_align',
'zya1106': 'update_func',
'zya623': 'is_debugger_memory',
'zya01': 'add_cref',
'zya628': 'is_fltnum',
'zya661': 'itext',
'zya130': 'create_align',
'zya1098': 'unpack_dq',
'zya836': 'qfseek',
'zya257': 'first_idcv_attr',
'zya445': 'get_nlist_size',
'zya564': 'hexplace_t__touval',
'zya183': 'deref_idcv',
'zya497': 'get_sreg_range',
'zya489': 'get_segment_combination',
'zya471': 'get_qerrno',
'zya993': 'set_op_tinfo',
'zya176': 'del_value',
'zya51': 'auto_apply_type',
'zya958': 'set_default_dataseg',
'zya259': 'fopenA',
'zya798': 'print_decls',
'zya795': 'print_auto_state',
'zya03': 'add_dword',
'zya396': 'get_idasgn_title',
'zya597': 'inf',
'zya599': 'init_database',
'zya783': 'patch_bytes',
'zya284': 'gen_fix_fixups',
'zya369': 'get_first_serial_enum_member',
'zya220': 'enumplace_t__toea',
'zya1111': 'user2bin',
'zya217': 'enumplace_t__print',
'zya321': 'get_default_radix',
'zya488': 'get_segment_cmt',
'zya763': 'op_custfmt',
'zya479': 'get_segm_base',
'zya546': 'hexplace_t__compare',
'zya540': 'h2ti',
'zya943': 'segm_adjust_ea',
'zya916': 'regcomp',
'zya139': 'create_qflow_chart',
'zya358': 'get_fileregion_ea',
'zya418': 'get_mapping',
'zya196': 'eclose',
'zya504': 'get_strlist_options',
'zya1125': 'xrefblk_t_next_to',
'zya847': 'qlseek',
'zya849': 'qmake_full_path',
'zya903': 'reg_bin_op',
'zya112': 'clear_strlist',
'zya949': 'set_auto_state',
'zya309': 'get_custom_data_format',
'zya584': 'idaplace_t__print',
'zya82': 'calc_bg_color',
'zya1121': 'winerr',
'zya980': 'set_immd',
'zya1006': 'set_segm_name',
'zya1103': 'unregister_custom_fixup',
'zya286': 'gen_rand_buf',
'zya367': 'get_first_fixup_ea',
'zya341': 'get_enum_member',
'zya577': 'idaplace_t__generate',
'zya17': 'add_segm',
'zya556': 'hexplace_t__name',
'zya670': 'lexcompare_tinfo',
'zya209': 'enumplace_t__enter',
'zya1071': 'structplace_t__prev',
'zya676': 'linearray_t_set_place',
'zya294': 'get_aflags',
'zya824': 'qfgets',
'zya165': 'del_numbered_type',
'zya735': 'netnode_qsupstr',
'zya805': 'process_archive',
'zya486': 'get_segm_qty',
'zya372': 'get_fixup_value',
'zya266': 'for_all_extlangs',
'zya132': 'create_filename_cmt',
'zya295': 'get_alias_target',
'zya891': 'rangeset_t_has_common',
'zya54': 'auto_mark_range',
'zya00': 'add_auto_stkpnt',
'zya283': 'gen_file',
'zya317': 'get_debug_name_ea',
'zya75': 'build_anon_type_name',
'zya460': 'get_place_class_id',
'zya425': 'get_member_struc',
'zya613': 'invoke_plugin',
'zya563': 'hexplace_t__toea',
'zya180': 'delete_wrong_stkvar_ops',
'zya1022': 'set_visible_segm',
'zya547': 'hexplace_t__copyfrom',
'zya246': 'find_idc_func',
'zya500': 'get_stkvar',
'zya390': 'get_hidden_range_qty',
'zya860': 'qsnprintf',
'zya863': 'qstr2user',
'zya883': 'qvector_reserve',
'zya913': 'reg_subkey_children',
'zya723': 'netnode_getblob',
'zya386': 'get_func_qty',
'zya503': 'get_strinfo',
'zya716': 'netnode_altval',
'zya620': 'is_custfmt',
'zya210': 'enumplace_t__generate',
'zya876': 'qthread_kill',
'zya166': 'del_regvar',
'zya739': 'netnode_supdel',
'zya306': 'get_compilers',
'zya298': 'get_auto_state',
'zya837': 'qfsize',
'zya427': 'get_name_base_ea',
'zya736': 'netnode_rename',
'zya1043': 'simpleline_place_t__print',
'zya138': 'create_outctx',
'zya493': 'get_spd',
'zya612': 'invoke_callbacks',
'zya184': 'deserialize_tinfo',
'zya832': 'qfputc',
'zya225': 'eseek',
'zya258': 'flush_buffers',
'zya28': 'align_up_to_stack',
'zya1047': 'simpleline_place_t__touval',
'zya141': 'create_tinfo',
'zya550': 'hexplace_t__ending',
'zya794': 'print_argloc',
'zya391': 'get_ida_subdirs',
'zya1021': 'set_visible_func',
'zya566': 'hook_to_notification_point',
'zya281': 'gen_complex_call_chart',
'zya696': 'lochist_t_size',
'zya71': 'bookmarks_t_mark',
'zya530': 'getn_fchunk',
'zya241': 'find_defined',
'zya235': 'file2base',
'zya543': 'hexplace_t__adjust',
'zya923': 'reload_file',
'zya1059': 'structplace_t__clone',
'zya155': 'del_frame',
'zya959': 'set_default_encoding_idx',
'zya845': 'qlgetz',
'zya170': 'del_stkpnt',
'zya722': 'netnode_get_name',
'zya285': 'gen_flow_graph',
'zya289': 'generate_disasm_line',
'zya603': 'insn_add_dref',
'zya315': 'get_data_value',
'zya278': 'func_parent_iterator_set',
'zya1110': 'upload_idb',
'zya1083': 'tag_skipcode',
'zya292': 'get_32bit',
'zya703': 'make_linput',
'zya906': 'reg_delete_tree',
'zya377': 'get_frame_retsize',
'zya852': 'qmutex_free',
'zya1082': 'tag_remove',
'zya36': 'append_struct_fields',
'zya786': 'peek_auto_queue',
'zya796': 'print_cdata',
'zya775': 'pack_dw',
'zya1084': 'tag_strlen',
'zya728': 'netnode_inited',
'zya1030': 'simpleline_place_t__clone',
'zya02': 'add_dref',
'zya869': 'qstrncat',
'zya66': 'bitrange_t_inject_using_bitrange',
'zya602': 'insn_add_cref',
'zya1055': 'stristr',
'zya857': 'qsem_free',
'zya771': 'optimize_argloc',
'zya459': 'get_place_class',
'zya450': 'get_offset_expr',
'zya698': 'lock_segm',
'zya542': 'has_insn_feature',
'zya834': 'qfread',
'zya942': 'search_path',
'zya277': 'func_item_iterator_next',
'zya398': 'get_idcv_attr',
'zya303': 'get_byte',
'zya645': 'is_problem_present',
'zya729': 'netnode_kill',
'zya33': 'append_disp',
'zya605': 'insn_create_op_data',
'zya109': 'choose_named_type',
'zya110': 'cleanup_argloc',
'zya606': 'insn_create_stkvar',
'zya121': 'compact_numbered_types',
'zya437': 'get_next_hidden_range',
'zya853': 'qmutex_lock',
'zya1018': 'set_tinfo',
'zya520': 'get_tinfo_size',
'zya972': 'set_forced_operand',
'zya25': 'aes_crypt_cbc',
'zya1023': 'set_xrefpos',
'zya919': 'regfree',
'zya1094': 'under_debugger',
'zya953': 'set_compiler',
'zya517': 'get_tinfo_details',
'zya660': 'is_weak_name',
'zya1105': 'update_fpd',
'zya951': 'set_bmask_name',
'zya441': 'get_nice_colored_name',
'zya757': 'node2ea',
'zya100': 'can_be_off32',
'zya242': 'find_defjump_from_table',
'zya316': 'get_debug_name',
'zya892': 'rangeset_t_intersect',
'zya838': 'qftell',
'zya174': 'del_struc_members',
'zya955': 'set_database_flag',
'zya823': 'qfclose',
'zya909': 'reg_int_op',
'zya1020': 'set_type_alias',
'zya1041': 'simpleline_place_t__next',
'zya552': 'hexplace_t__generate',
'zya991': 'set_notcode',
'zya353': 'get_extra_cmt',
'zya192': 'dump_func_type_data',
'zya724': 'netnode_hashdel',
'zya663': 'l_compare',
'zya742': 'netnode_supfirst',
'zya664': 'launch_process',
'zya484': 'get_segm_num',
'zya219': 'enumplace_t__serialize',
'zya1035': 'simpleline_place_t__enter',
'zya137': 'create_multirange_qflow_chart',
'zya452': 'get_op_tinfo',
'zya1036': 'simpleline_place_t__generate',
'zya673': 'linearray_t_down',
'zya202': 'enumplace_t__adjust',
'zya537': 'getsysfile',
'zya918': 'regexec',
'zya924': 'remember_problem',
'zya617': 'is_bnot',
'zya1127': 'zip_deflate',
'zya1065': 'structplace_t__generate',
'zya609': 'invalidate_dbgmem_config',
'zya469': 'get_problem_desc',
'zya555': 'hexplace_t__makeplace',
'zya983': 'set_manual_insn',
'zya1058': 'structplace_t__beginning',
'zya721': 'netnode_exist',
'zya1102': 'unregister_custom_data_format',
'zya474': 'get_refinfo',
'zya158': 'del_idasgn',
'zya282': 'gen_decorate_name',
'zya268': 'format_c_number',
'zya274': 'func_has_stkframe_hole',
'zya1122': 'xrefblk_t_first_from',
'zya26': 'aes_setkey_dec',
'zya986': 'set_member_tinfo',
'zya380': 'get_func_bitness',
'zya604': 'insn_add_off_drefs',
'zya979': 'set_idcv_attr',
'zya481': 'get_segm_by_sel',
'zya1042': 'simpleline_place_t__prev',
'zya1080': 'tag_off',
'zya772': 'pack_dd',
'zya683': 'load_til_header',
'zya533': 'getn_selector',
'zya1107': 'update_hidden_range',
'zya839': 'qfwrite',
'zya911': 'reg_str_get',
'zya858': 'qsem_post',
'zya675': 'linearray_t_ending',
'zya899': 'reanalyze_function',
'zya615': 'is_auto_enabled',
'zya762': 'op_adds_xrefs',
'zya557': 'hexplace_t__next',
'zya807': 'put_bytes',
'zya713': 'nbits',
'zya485': 'get_segm_para',
'zya227': 'eval_expr_long',
'zya625': 'is_defarg',
'zya181': 'demangle',
'zya214': 'enumplace_t__name',
'zya867': 'qstrftime64',
'zya565': 'hide_name',
'zya747': 'netnode_supstr',
'zya841': 'qgetenv',
'zya741': 'netnode_supdel_range',
'zya87': 'calc_default_sizeof_ldbl',
'zya914': 'reg_subkey_exists',
'zya610': 'invalidate_dbgmem_contents',
'zya233': 'extract_name',
'zya376': 'get_frame',
'zya884': 'qvfprintf',
'zya764': 'op_enum',
'zya226': 'eval_expr',
'zya989': 'set_node_info',
'zya846': 'qlread',
'zya19': 'add_sourcefile',
'zya189': 'dto_copy_to_inf',
'zya709': 'mem2base',
'zya162': 'del_member_tinfo',
'zya718': 'netnode_charval',
'zya47': 'atoea',
'zya740': 'netnode_supdel_all',
'zya600': 'init_kernel',
'zya961': 'set_entry_forwarder',
'zya521': 'get_user_idadir',
'zya992': 'set_numbered_type',
'zya586': 'idaplace_t__serialize',
'zya507': 'get_struc',
'zya186': 'disable_flags',
'zya97': 'calc_thunk_func_target',
'zya624': 'is_debugger_on',
'zya737': 'netnode_set',
'zya1009': 'set_segment_translations',
'zya932': 'resolve_typedef',
'zya864': 'qstrdup',
'zya920': 'register_custom_data_format',
'zya83': 'calc_c_cpp_name',
'zya770': 'open_linput',
'zya08': 'add_frame',
'zya326': 'get_dtype_size',
'zya927': 'rename_encoding',
'zya607': 'internal_register_place_class',
'zya630': 'is_func_locked',
'zya42': 'apply_tinfo',
'zya335': 'get_entry_qty',
'zya98': 'call_idc_func',
'zya515': 'get_struct_operand',
'zya12': 'add_idc_gvar',
'zya866': 'qstrftime',
'zya997': 'set_processor_type',
'zya1108': 'update_segm',
'zya333': 'get_entry_name',
'zya815': 'qbasename',
'zya207': 'enumplace_t__deserialize',
'zya198': 'enable_auto',
'zya799': 'print_fpval',
'zya695': 'lochist_t_set',
'zya30': 'allocate_selector',
'zya539': 'guess_tinfo',
'zya908': 'reg_flush',
'zya330': 'get_encoding_name',
'zya260': 'fopenM',
'zya568': 'idadir',
'zya92': 'calc_number_of_children',
'zya751': 'new_til',
'zya608': 'interr',
'zya809': 'put_qword',
'zya738': 'netnode_setblob',
'zya580': 'idaplace_t__makeplace',
'zya1038': 'simpleline_place_t__leave',
'zya619': 'is_char',
'zya810': 'put_utf8_char',
'zya228': 'eval_idc_expr',
'zya399': 'get_idp_descs',
'zya05': 'add_entry',
'zya299': 'get_basic_file_type',
'zya308': 'get_current_idasgn',
'zya1050': 'split_sreg_range',
'zya1061': 'structplace_t__copyfrom',
'zya1033': 'simpleline_place_t__deserialize',
'zya831': 'qfopen',
'zya636': 'is_lzero',
'zya1109': 'update_snapshot_attributes',
'zya755': 'next_that',
'zya250': 'find_notype',
'zya328': 'get_ea_name',
'zya413': 'get_license_info',
'zya451': 'get_offset_expression',
'zya64': 'bin_search',
'zya1097': 'unpack_dd',
'zya305': 'get_cmt',
'zya182': 'demangle_name',
'zya873': 'qthread_create',
'zya1100': 'unpack_dw',
'zya677': 'linearray_t_up',
'zya662': 'jvalue_t_clear',
'zya640': 'is_miniidb',
'zya212': 'enumplace_t__leave',
'zya638': 'is_manual',
'zya356': 'get_file_ext',
'zya1128': 'qsleep',
'zya56': 'b2a64',
'zya758': 'node_iterator_goup',
'zya325': 'get_dtype_flag',
'zya917': 'regerror',
'zya416': 'get_mangled_name_type',
'zya69': 'bookmarks_t_get',
'zya126': 'convert_encoding',
'zya279': 'func_tail_iterator_set',
'zya163': 'del_named_type',
'zya995': 'set_opinfo',
'zya826': 'qfilesize',
'zya1053': 'str2reg',
'zya561': 'hexplace_t__rebase',
'zya1024': 'setup_graph_subsystem',
'zya448': 'get_numbered_type',
'zya1004': 'set_segm_class',
'zya1049': 'skip_utf8',
'zya374': 'get_flags_ex',
'zya411': 'get_last_serial_enum_member',
'zya926': 'remove_tinfo_pointer',
'zya682': 'load_nonbinary_file',
'zya240': 'find_data',
'zya195': 'eadd',
'zya32': 'append_cmt',
'zya1063': 'structplace_t__ending',
'zya667': 'lex_get_file_line',
'zya67': 'bookmarks_t_erase',
'zya387': 'get_func_ranges',
'zya490': 'get_segment_translations',
'zya1129': 'qmkdir',
'zya726': 'netnode_hashval',
'zya679': 'lnar_size',
'zya1067': 'structplace_t__leave',
'zya111': 'cleanup_name',
'zya1118': 'visit_snapshot_tree',
'zya621': 'is_database_ext',
'zya939': 'save_struc',
'zya941': 'search',
'zya442': 'get_nlist_ea',
'zya733': 'netnode_qhashnext',
'zya483': 'get_segm_name',
'zya247': 'find_imm',
'zya171': 'del_stroff_path',
'zya125': 'compile_idc_snippet',
'zya1124': 'xrefblk_t_next_from',
'zya567': 'http_request',
'zya438': 'get_next_member_idx',
'zya27': 'align_down_to_stack',
'zya354': 'get_fchunk',
'zya404': 'get_item_color',
'zya1007': 'set_segm_start',
'zya264': 'fopenWT',
'zya426': 'get_member_tinfo',
'zya544': 'hexplace_t__beginning',
'zya699': 'lookup_loc_converter',
'zya668': 'lex_get_token',
'zya690': 'lochist_t_get_current',
'zya77': 'build_range_strlist',
'zya144': 'dbg',
'zya52': 'auto_cancel',
'zya101': 'can_define_item',
'zya990': 'set_noret_insn',
'zya501': 'get_stock_tinfo',
'zya744': 'netnode_supprev',
'zya476': 'get_reg_name',
'zya817': 'qcopyfile',
'zya382': 'get_func_chunknum',
'zya118': 'clr_node_info',
'zya1040': 'simpleline_place_t__name',
'zya875': 'qthread_join',
'zya862': 'qstpncpy',
'zya208': 'enumplace_t__ending',
'zya320': 'get_default_encoding_idx',
'zya88': 'calc_file_crc32',
'zya1073': 'structplace_t__rebase',
'zya750': 'netnode_valstr',
'zya727': 'netnode_hashval_long',
'zya655': 'is_trusted_idb',
'zya870': 'qstrncpy',
'zya711': 'move_segm',
'zya15': 'add_regarg',
'zya461': 'get_plugin_options',
'zya554': 'hexplace_t__leave',
'zya175': 'del_til',
'zya347': 'get_enum_member_serial',
'zya148': 'decode_prev_insn',
'zya1062': 'structplace_t__deserialize',
'zya681': 'load_ids_module',
'zya671': 'linearray_t_beginning',
'zya588': 'idaplace_t__touval',
'zya843': 'qisabspath',
'zya482': 'get_segm_class',
'zya1115': 'validate_name',
'zya803': 'print_tinfo',
'zya743': 'netnode_supnext',
'zya300': 'get_best_fit_member',
'zya569': 'idaplace_t__adjust',
'zya581': 'idaplace_t__name',
'zya632': 'is_ident',
'zya216': 'enumplace_t__prev',
'zya1096': 'unmake_linput',
'zya601': 'init_plugins',
'zya812': 'qalloc',
'zya197': 'ecreate',
'zya802': 'print_strlit_type',
'zya519': 'get_tinfo_property',
'zya931': 'request_refresh',
'zya63': 'bf_set_key',
'zya13': 'add_mapping',
'zya394': 'get_idasgn_header_by_short_name',
'zya1088': 'term_plugins',
'zya34': 'append_func_tail',
'zya1029': 'simpleline_place_t__beginning',
'zya587': 'idaplace_t__toea',
'zya629': 'is_forced_operand',
'zya548': 'hexplace_t__deserialize',
'zya22': 'add_test_feature',
'zya648': 'is_seg',
'zya319': 'get_debugger_plugins',
'zya23': 'add_til',
'zya478': 'get_scalar_bt',
'zya1093': 'type_flag',
'zya523': 'get_view_options',
'zya686': 'lochist_t_current_index',
'zya149': 'define_stkvar',
'zya152': 'del_dref',
'zya1000': 'set_refinfo',
'zya894': 'read_config',
'zya1116': 'verror',
'zya570': 'idaplace_t__beginning',
'zya996': 'set_path',
'zya874': 'qthread_free',
'zya1005': 'set_segm_end',
'zya436': 'get_next_func_addr',
'zya322': 'get_default_reftype',
'zya96': 'calc_stkvar_struc_offset',
'zya169': 'del_sreg_range',
'zya760': 'num2str_uint64',
'zya692': 'lochist_t_jump',
'zya704': 'make_name_auto',
'zya643': 'is_numop0',
'zya20': 'add_struc',
'zya642': 'is_numop',
'zya185': 'destroy_lexer',
'zya127': 'copy_argloc',
'zya830': 'qflush',
'zya669': 'lex_init_file',
'zya492': 'get_sp_delta',
'zya877': 'qthread_same',
'zya203': 'enumplace_t__beginning',
'zya136': 'create_lexer',
'zya1031': 'simpleline_place_t__compare',
'zya385': 'get_func_num',
'zya937': 'sanitize_file_name',
'zya218': 'enumplace_t__rebase',
'zya981': 'set_item_color',
'zya117': 'clr_lzero',
'zya954': 'set_cp_validity',
'zya79': 'build_stkvar_name',
'zya614': 'is_attached_custom_data_format',
'zya255': 'find_tinfo_udt_member',
'zya10': 'add_hidden_range',
'zya977': 'set_group_selector',
'zya1075': 'structplace_t__toea',
'zya934': 'revert_byte',
'zya1076': 'structplace_t__touval',
'zya466': 'get_prev_func_addr',
'zya53': 'auto_is_ok',
'zya48': 'atos',
'zya409': 'get_last_pfxlen',
'zya159': 'del_idc_func',
'zya65': 'bitrange_t_extract_using_bitrange',
'zya784': 'patch_fixup_value',
'zya254': 'find_suspop',
'zya290': 'generate_disassembly',
'zya211': 'enumplace_t__id',
'zya748': 'netnode_supval',
'zya102': 'cfg_get_cc_parm',
'zya271': 'free_loaders_list',
'zya1001': 'set_regvar_cmt',
'zya746': 'netnode_supshift',
'zya627': 'is_enum_hidden',
'zya506': 'get_stroff_path',
'zya331': 'get_encoding_qty',
'zya269': 'format_cdata',
'zya888': 'rangeset_t_add2',
'zya72': 'bookmarks_t_size',
'zya1070': 'structplace_t__next',
'zya559': 'hexplace_t__prev',
'zya907': 'reg_exists',
'zya535': 'getnseg',
'zya104': 'change_segment_status',
'zya388': 'get_group_selector',
'zya201': 'enum_import_names',
'zya780': 'parse_json',
'zya801': 'print_operand',
'zya383': 'get_func_cmt',
'zya1054': 'strarray',
'zya534': 'getn_sreg_range',
'zya1056': 'strrpl',
'zya133': 'create_generic_linput',
'zya984': 'set_member_cmt',
'zya808': 'put_dword',
'zya730': 'netnode_lower_bound',
'zya998': 'set_purged',
'zya952': 'set_cmt',
'zya420': 'get_max_strlit_length',
'zya323': 'get_dirty_infos',
'zya511': 'get_struc_last_offset',
'zya453': 'get_opinfo',
'zya578': 'idaplace_t__id',
'zya928': 'rename_regvar',
'zya708': 'match_jpt',
'zya318': 'get_debug_names',
'zya113': 'clear_tinfo_t',
'zya585': 'idaplace_t__rebase',
'zya647': 'is_ret_insn',
'zya749': 'netnode_valobj',
'zya595': 'import_module',
'zya641': 'is_name_defined_locally',
'zya522': 'get_utf8_char',
'zya821': 'qerrstr',
'zya651': 'is_special_member',
'zya496': 'get_sreg',
'zya164': 'del_node_info',
'zya1028': 'simpleline_place_t__adjust',
'zya475': 'get_refinfo_descs',
'zya1026': 'show_auto',
'zya1027': 'show_name',
'zya1101': 'unpack_xleb128',
'zya415': 'get_loader_name_from_dll',
'zya194': 'ea2str',
'zya178': 'delete_extra_cmts',
'zya865': 'qstrerror',
'zya759': 'num2str_uint32',
'zya579': 'idaplace_t__leave',
'zya31': 'append_abi_opts',
'zya190': 'dto_init',
'zya944': 'segtype',
'zya128': 'copy_tinfo_t',
'zya693': 'lochist_t_register_live',
'zya509': 'get_struc_first_offset',
'zya725': 'netnode_hashset',
'zya1066': 'structplace_t__id',
'zya256': 'find_unknown',
'zya222': 'equal_bytes',
'zya444': 'get_nlist_name',
'zya887': 'rangeset_t_add',
'zya462': 'get_plugins',
'zya618': 'is_call_insn',
'zya108': 'choose_local_tinfo',
'zya114': 'close_linput',
'zya378': 'get_free_disk_space',
'zya880': 'qunlink',
'zya78': 'build_snapshot_tree',
'zya947': 'set_abits',
'zya957': 'set_debug_name',
'zya1057': 'structplace_t__adjust',
'zya571': 'idaplace_t__clone',
'zya904': 'reg_delete',
'zya1099': 'unpack_ds',
'zya940': 'save_tinfo',
'zya745': 'netnode_supset',
'zya691': 'lochist_t_init',
'zya273': 'func_does_return',
'zya245': 'find_func_bounds',
'zya1112': 'utf16_utf8',
'zya702': 'lreadbytes',
'zya666': 'lex_define_macro',
'zya816': 'qcalloc',
'zya707': 'make_name_weak',
'zya177': 'delete_all_xrefs_from',
'zya850': 'qmakepath',
'zya16': 'add_regvar',
'zya206': 'enumplace_t__copyfrom',
'zya188': 'dto_copy_from_inf',
'zya950': 'set_bmask_cmt',
'zya793': 'prev_visea',
'zya223': 'eread',
'zya970': 'set_file_ext',
'zya352': 'get_errdesc',
'zya518': 'get_tinfo_pdata',
'zya468': 'get_problem',
'zya430': 'get_name_value',
'zya304': 'get_bytes',
'zya1074': 'structplace_t__serialize',
'zya487': 'get_segment_alignment',
'zya935': 'root_node',
'zya590': 'idcv_float',
'zya680': 'load_binary_file',
'zya656': 'is_uname',
'zya480': 'get_segm_by_name',
'zya987': 'set_member_type',
'zya856': 'qsem_create',
'zya243': 'find_error',
'zya731': 'netnode_qgetblob',
'zya659': 'is_varsize_item',
'zya1045': 'simpleline_place_t__serialize',
'zya649': 'is_spec_ea',
'zya344': 'get_enum_member_cmt',
'zya355': 'get_fchunk_qty',
'zya598': 'inform_idc_about_debthread',
'zya215': 'enumplace_t__next',
'zya122': 'compare_arglocs',
'zya1091': 'trim',
'zya265': 'for_all_arglocs',
'zya538': 'guess_func_cc',
'zya224': 'errorexit',
'zya134': 'create_hit_counter',
'zya705': 'make_name_non_public',
'zya379': 'get_func',
'zya90': 'calc_max_align',
'zya948': 'set_array_parameters',
'zya239': 'find_custom_fixup',
'zya1064': 'structplace_t__enter',
'zya885': 'qvprintf',
'zya107': 'check_spoiled_jpt',
'zya652': 'is_stkvar',
'zya21': 'add_struc_member',
'zya1068': 'structplace_t__makeplace',
'zya1014': 'set_struc_cmt',
'zya792': 'prev_that',
'zya280': 'fwritebytes',
'zya1052': 'str2ea_ex',
'zya401': 'get_immvals',
'zya1087': 'term_kernel',
'zya956': 'set_dbgmem_source',
'zya131': 'create_data',
'zya39': 'apply_idasgn_to',
'zya1002': 'set_segm_addressing',
'zya373': 'get_fixups',
'zya261': 'fopenRB',
'zya142': 'create_xrefs_from',
'zya234': 'fc_calc_block_type',
'zya150': 'del_cref',
'zya1019': 'set_tinfo_property',
'zya403': 'get_import_module_qty',
'zya84': 'calc_crc32',
'zya1079': 'tag_advance',
'zya115': 'closing_comment',
'zya848': 'qlsize',
'zya74': 'btoa64',
'zya60': 'batch',
'zya879': 'qtmpnam',
'zya889': 'rangeset_t_contains',
'zya871': 'qstrtok',
'zya421': 'get_member',
'zya674': 'linearray_t_dtr',
'zya893': 'rangeset_t_sub',
'zya985': 'set_member_name',
'zya272': 'free_til',
'zya04': 'add_encoding',
'zya765': 'op_offset',
'zya105': 'change_storage_type',
'zya46': 'atob64',
'zya769': 'op_stroff',
'zya412': 'get_last_struc_idx',
'zya301': 'get_bmask_cmt',
'zya842': 'qgetline',
'zya536': 'getseg',
'zya410': 'get_last_seg',
'zya495': 'get_sptr',
'zya423': 'get_member_by_name',
'zya938': 'save_database',
'zya553': 'hexplace_t__id',
'zya710': 'memrev',
'zya999': 'set_qerrno',
'zya1086': 'term_database',
'zya231': 'extend_sign',
'zya232': 'extract_module_from_archive',
'zya582': 'idaplace_t__next',
'zya179': 'delete_unreferenced_stkvars',
'zya890': 'rangeset_t_find_range',
'zya359': 'get_fileregion_offset',
'zya797': 'print_charlit',
'zya930': 'replace_tabs',
'zya633': 'is_in_nlist',
'zya719': 'netnode_check',
'zya1081': 'tag_on',
'zya592': 'idcv_object',
'zya1025': 'setup_selector',
'zya467': 'get_prev_seg',
'zya825': 'qfileexist',
'zya788': 'plan_and_wait',
'zya457': 'get_original_word',
'zya43': 'apply_tinfo_to_stkarg',
'zya960': 'set_default_sreg_value',
'zya1008': 'set_segment_cmt',
'zya1032': 'simpleline_place_t__copyfrom',
'zya124': 'compile_idc_file',
'zya221': 'enumplace_t__touval',
'zya502': 'get_strid',
'zya93': 'calc_offset_base',
'zya818': 'qctime_utc',
'zya1119': 'vloader_failure',
'zya575': 'idaplace_t__ending',
'zya35': 'append_snprintf',
'zya528': 'get_xrefpos',
'zya635': 'is_loaded',
'zya828': 'qfindfirst',
'zya499': 'get_sreg_ranges_qty',
'zya193': 'ea2node',
'zya988': 'set_name',
'zya307': 'get_current_extlang',
'zya41': 'apply_once_tinfo_and_name',
'zya1060': 'structplace_t__compare',
'zya76': 'build_loaders_list',
'zya895': 'read_ioports',
'zya443': 'get_nlist_idx',
'zya583': 'idaplace_t__prev',
'zya368': 'get_first_seg',
'zya263': 'fopenWB',
'zya494': 'get_special_folder',
'zya512': 'get_struc_next_offset',
'zya422': 'get_member_by_fullname',
'zya230': 'expand_struc',
'zya925': 'remove_func_tail',
'zya787': 'ph',
'zya541': 'has_external_refs',
'zya446': 'get_node_info',
'zya81': 'build_strlist',
'zya766': 'op_offset_ex',
'zya806': 'put_byte',
'zya62': 'bf_crypt_cbc',
'zya297': 'get_auto_display',
'zya73': 'btoa32',
'zya116': 'clr_abits',
'zya339': 'get_enum_id',
'zya248': 'find_jtable_size',
'zya1069': 'structplace_t__name',
'zya329': 'get_encoding_bpu',
'zya700': 'lower_type',
'zya205': 'enumplace_t__compare',
'zya734': 'netnode_qhashstr',
'zya50': 'auto_apply_tail',
'zya712': 'move_segm_start',
'zya414': 'get_loader_name',
'zya85': 'calc_dataseg',
'zya963': 'set_enum_cmt',
'zya516': 'get_tinfo',
'zya09': 'add_func_ex',
'zya191': 'dummy_name_ea',
'zya199': 'enable_numbered_types',
'zya314': 'get_data_elsize',
'zya971': 'set_fixup',
'zya236': 'find_byte',
'zya549': 'hexplace_t__ea2str',
'zya835': 'qfree',
'zya697': 'lock_func_range',
'zya701': 'lread',
'zya120': 'code_highlight_block',
'zya868': 'qstrlwr',
'zya505': 'get_strlit_contents',
'zya694': 'lochist_t_save',
'zya684': 'lochist_t_back',
'zya123': 'compare_tinfo',
'zya44': 'asctoreal',
'zya45': 'ash',
'zya800': 'print_idcv',
'zya558': 'hexplace_t__out_one_item',
'zya1072': 'structplace_t__print',
'zya37': 'apply_callee_tinfo',
'zya89': 'calc_idasgn_state',
'zya631': 'is_ghost_enum',
'zya288': 'gen_use_arg_tinfos',
'zya756': 'next_visea',
'zya637': 'is_main_thread',
'zya688': 'lochist_t_fwd',
'zya851': 'qmutex_create',
'zya80': 'build_stkvar_xrefs',
'zya1078': 'swap_value',
'zya291': 'get_16bit',
}

def do_rename(z, name, prefix, suffix):
    if prefix == None:
        prefix = ""
    if suffix == None:
        suffix = ""
    z = "%s%s%s" % (prefix, z, suffix)
    name = "%s%s%s" % (prefix, name, suffix)
    eaaddr = LocByName(z)
    if eaaddr != BADADDR:
        #idc.MakeCode(eaaddr)
        #idc.MakeFunction(eaaddr)
        #idc.MakeNameEx(eaaddr, name, idc.SN_NOWARN)
        idc.MakeNameEx(eaaddr, name, 0)

if __name__ == "__main__":
    for i in alias:
        print "renaming %s -> %s" % (i, alias[i])
        name = "Z_%s" % alias[i]
        do_rename(i, name, None, None)
        do_rename(i, name, ".", None)
        do_rename(i, name, None, "_ptr")
        do_rename(i, name, None, "_0")
        do_rename(i, name, "j_.", None)
