Function at 0x1400395f0
Capabilities:
Create thread
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rdi, rcx
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
lea r8d, [r14 + 0x16]
lea rdx, str.FLiNGTrainerNamedPipe_
lea rcx, [rbp - 0x20]
call fcn.140006210
mov r8d, ebx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140032200
test al, al
je 0x140039b62
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
lea r8d, [r14 + 0x4d]
lea rdx, [0x1400cc000]
lea rcx, [rbp - 0x20]
call fcn.140006210
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140038020
lea r8d, [r14 + 0x24]
lea rdx, str.The_Legend_of_Heroes:_Kuro_no_Kiseki
lea rcx, [0x1400eb1c0]
call fcn.140020330
lea r8d, [r14 + 7]
lea rdx, str.6321241
lea rcx, [0x1400eb1a0]
call fcn.140020330
lea rcx, [rdi + 0x458]
cmp qword [rcx + 0x18], 0xc67
jb 0x1400396e3
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 0xc67
mov r8d, 0x18ce
lea rdx, [0x1400cc0a0]
mov rcx, rbx
call fcn.1400a1880
mov word [rbx + 0x18ce], r14w
jmp 0x1400396f4
lea r9, [0x1400cc0a0]
mov edx, 0xc67
call fcn.1400221f0
lea rcx, [rdi + 0x478]
cmp qword [rcx + 0x18], 0x15ef
jb 0x14003972f
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 0x15ef
mov r8d, 0x2bde
lea rdx, str._n_nNum_1___Infinite_HP_nNum_2___Infinite_EP_nNum_3___Infinite_CP_nNum_4___Infinite_Charge_Attacks_Only_works_in_field_real_time_battle._nNum_5___Infinite_S_Boosts_Only_works_in_AT_turn_based_battle._nNum_6___Instant_Action_Zero_Delay_Only_works_in_AT_turn_based_battle._n_nThis_option_will_temporarily_change_player_and_teammates_stat._If_you_want_to_restore_its_effect__please_disable_this_option_and_then_fight_a_battle._nNum_7___Max_Move_Range_Only_works_in_AT_turn_based_battle._n_nThis_option_will_temporarily_change_player_and_teammates_stat._If_you_want_to_restore_its_effect__please_disable_this_option_and_then_fight_a_battle._nNum_8___100__Hit_Chance_Only_works_in_AT_turn_based_battle._n_nThis_option_will_temporarily_change_player_and_teammates_stat._If_you_want_to_restore_its_effect__please_disable_this_option_and_then_fight_a_battle._nNum_9___100__Evade_Chance_Only_works_in_AT_turn_based_battle._n_nThis_option_will_temporarily_change_player_and_teammates_stat._If_you_want_to_restore_its_effect__please_disable_this_option_and_then_fight_a_battle._nNum_0___100__Critical_Chance_Only_works_in_AT_turn_based_battle._n_nThis_option_will_temporarily_change_player_and_teammates_stat._If_you_want_to_restore_its_effect__please_disable_this_option_and_then_fight_a_battle._nNum_.___One_Hit_Stun_nNum____Super_Damage_One_Hit_Kills_This_option_will_temporarily_change_player_and_teammates_stat._If_you_want_to_restore_its_effect__please_disable_this_option_and_then_fight_a_battle._n_nCtrlNum_1___Stealth_Mode_nCtrlNum_2___100__Drop_Rate_Enemies_may_have_0_to_2_possible_drop_items__but_each_enemy_will_only_drop_1_item_per_battle._If_an_enemy_has_2_possible_drop_items__it_will_randomly_drop_one_of_them._nCtrlNum_3___Infinite_Exp_Takes_effect_when_you_win_a_battle._nCtrlNum_4___Exp_Multiplier_nCtrlNum_5___Infinite_Hollow_Core_Exp_Takes_effect_when_you_win_a_battle._nCtrlNum_6___Hollow_Core_Exp_Multiplier_nCtrlNum_7___Sepith_Multiplier_Takes_effect_when_you_win_a_battle._nCtrlNum_8___Items_Dont_Decrease_Item_quantity_must_be_greater_than_1_and_the_decrease_amount_must_less_than_its_current_quantity_for_this_option_to_work._n_nIf_a_full_stack_of_item_is_removed_at_once__the_item_will_be_removed_from_your_inventory._nCtrlNum_9___Free_Time_Wont_Decrease_This_option_does_not_work_in_the_date_11_14_S1208__because_youll_need_to_spend_all_free_time_points_during_that_day_in_order_to_progress_the_story._n_nAltNum_1___Unlock_All_S_Skills_Takes_effect_when_you_equip_change_quartz._n_nIf_a_quartz_line_has_at_least_1_quartz_in_it__its_element_values_will_be_set_to_99_and_unlock_all_of_its_S_Skills._nAltNum_2___Unlock_All_Achievements_Takes_effect_when_you_open_the_achievement_menu._n_nNote_this_option_unlocks_in_game_achievements_and_rewards__not_platform__such_as_Steam__achievements._nAltNum_3___Max_Connect_Level_Takes_effect_when_connect_exp_increases__give_gifts_or_spend_free_time_together_._nAltNum_4___Max_Gourmet_Points_Takes_effect_when_gourmet_point_increases._nAltNum_5___Max_SP_ARKRIDE_Solutions_Office_Rank__Takes_effect_when_you_report_SP__each_completed_mission_will_give_you_500_bonus_SP__which_is_enough_to_max_out_the_ARKRIDE_Solutions_Office_rank._n_nAltNum_6___Max_Law_Alignment_Takes_effect_when_you_open_the_main_story_tab_in_the_note_screen._Or_when_you_gain_law_alignments._nAltNum_7___Max_Gray_Alignment_Takes_effect_when_you_open_the_main_story_tab_in_the_note_screen._Or_when_you_gain_gray_alignments._nAltNum_8___Max_Chaos_Alignment_Takes_effect_when_you_open_the_main_story_tab_in_the_note_screen._Or_when_you_gain_chaos_alignments._nAltNum_9___Set_Game_Speed_n_nF1___Edit_Mira_Takes_effect_when_you_open_the_main_menu._nF2___Edit_Sepith__Earth__Takes_effect_when_you_open_the_main_menu._nF3___Edit_Sepith__Water__Takes_effect_when_you_open_the_main_menu._nF4___Edit_Sepith__Fire__Takes_effect_when_you_open_the_main_menu._nF5___Edit_Sepith__Wind__Takes_effect_when_you_open_the_main_menu._nF6___Edit_Sepith__Time__Takes_effect_when_you_open_the
mov rcx, rbx
call fcn.1400a1880
mov word [rbx + 0x2bde], r14w
jmp 0x140039740
lea r9, str._n_nNum_1___Infinite_HP_nNum_2___Infinite_EP_nNum_3___Infinite_CP_nNum_4___Infinite_Charge_Attacks_Only_works_in_field_real_time_battle._nNum_5___Infinite_S_Boosts_Only_works_in_AT_turn_based_battle._nNum_6___Instant_Action_Zero_Delay_Only_works_in_AT_turn_based_battle._n_nThis_option_will_temporarily_change_player_and_teammates_stat._If_you_want_to_restore_its_effect__please_disable_this_option_and_then_fight_a_battle._nNum_7___Max_Move_Range_Only_works_in_AT_turn_based_battle._n_nThis_option_will_temporarily_change_player_and_teammates_stat._If_you_want_to_restore_its_effect__please_disable_this_option_and_then_fight_a_battle._nNum_8___100__Hit_Chance_Only_works_in_AT_turn_based_battle._n_nThis_option_will_temporarily_change_player_and_teammates_stat._If_you_want_to_restore_its_effect__please_disable_this_option_and_then_fight_a_battle._nNum_9___100__Evade_Chance_Only_works_in_AT_turn_based_battle._n_nThis_option_will_temporarily_change_player_and_teammates_stat._If_you_want_to_restore_its_effect__please_disable_this_option_and_then_fight_a_battle._nNum_0___100__Critical_Chance_Only_works_in_AT_turn_based_battle._n_nThis_option_will_temporarily_change_player_and_teammates_stat._If_you_want_to_restore_its_effect__please_disable_this_option_and_then_fight_a_battle._nNum_.___One_Hit_Stun_nNum____Super_Damage_One_Hit_Kills_This_option_will_temporarily_change_player_and_teammates_stat._If_you_want_to_restore_its_effect__please_disable_this_option_and_then_fight_a_battle._n_nCtrlNum_1___Stealth_Mode_nCtrlNum_2___100__Drop_Rate_Enemies_may_have_0_to_2_possible_drop_items__but_each_enemy_will_only_drop_1_item_per_battle._If_an_enemy_has_2_possible_drop_items__it_will_randomly_drop_one_of_them._nCtrlNum_3___Infinite_Exp_Takes_effect_when_you_win_a_battle._nCtrlNum_4___Exp_Multiplier_nCtrlNum_5___Infinite_Hollow_Core_Exp_Takes_effect_when_you_win_a_battle._nCtrlNum_6___Hollow_Core_Exp_Multiplier_nCtrlNum_7___Sepith_Multiplier_Takes_effect_when_you_win_a_battle._nCtrlNum_8___Items_Dont_Decrease_Item_quantity_must_be_greater_than_1_and_the_decrease_amount_must_less_than_its_current_quantity_for_this_option_to_work._n_nIf_a_full_stack_of_item_is_removed_at_once__the_item_will_be_removed_from_your_inventory._nCtrlNum_9___Free_Time_Wont_Decrease_This_option_does_not_work_in_the_date_11_14_S1208__because_youll_need_to_spend_all_free_time_points_during_that_day_in_order_to_progress_the_story._n_nAltNum_1___Unlock_All_S_Skills_Takes_effect_when_you_equip_change_quartz._n_nIf_a_quartz_line_has_at_least_1_quartz_in_it__its_element_values_will_be_set_to_99_and_unlock_all_of_its_S_Skills._nAltNum_2___Unlock_All_Achievements_Takes_effect_when_you_open_the_achievement_menu._n_nNote_this_option_unlocks_in_game_achievements_and_rewards__not_platform__such_as_Steam__achievements._nAltNum_3___Max_Connect_Level_Takes_effect_when_connect_exp_increases__give_gifts_or_spend_free_time_together_._nAltNum_4___Max_Gourmet_Points_Takes_effect_when_gourmet_point_increases._nAltNum_5___Max_SP_ARKRIDE_Solutions_Office_Rank__Takes_effect_when_you_report_SP__each_completed_mission_will_give_you_500_bonus_SP__which_is_enough_to_max_out_the_ARKRIDE_Solutions_Office_rank._n_nAltNum_6___Max_Law_Alignment_Takes_effect_when_you_open_the_main_story_tab_in_the_note_screen._Or_when_you_gain_law_alignments._nAltNum_7___Max_Gray_Alignment_Takes_effect_when_you_open_the_main_story_tab_in_the_note_screen._Or_when_you_gain_gray_alignments._nAltNum_8___Max_Chaos_Alignment_Takes_effect_when_you_open_the_main_story_tab_in_the_note_screen._Or_when_you_gain_chaos_alignments._nAltNum_9___Set_Game_Speed_n_nF1___Edit_Mira_Takes_effect_when_you_open_the_main_menu._nF2___Edit_Sepith__Earth__Takes_effect_when_you_open_the_main_menu._nF3___Edit_Sepith__Water__Takes_effect_when_you_open_the_main_menu._nF4___Edit_Sepith__Fire__Takes_effect_when_you_open_the_main_menu._nF5___Edit_Sepith__Wind__Takes_effect_when_you_open_the_main_menu._nF6___Edit_Sepith__Time__Takes_effect_when_you_open_the
mov edx, 0x15ef
call fcn.1400221f0
mov rcx, rdi
call fcn.140036cb0
mov rcx, rdi
call fcn.140036fa0
lea r15, [0x1400eb250]
mov esi, dword [0x1400eac28]
test esi, esi
je 0x14003980c
mov ebx, dword [0x1400eac2c]
test ebx, ebx
je 0x14003980c
mov rcx, r15
call fcn.1400791a8
test eax, eax
jne 0x140039b76
mov eax, dword [0x1400eb29c]
cmp eax, 0x7fffffff
je 0x140039b81
mov dword [rbp + 0x40], 9
mov dword [rbp + 0x38], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x38]
mov r8d, 4
lea rdx, [rbp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x40], esi
mov dword [rbp + 0x38], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x38]
mov r8d, 4
lea rdx, [rbp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x40], ebx
mov dword [rbp + 0x38], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x38]
mov r8d, 4
lea rdx, [rbp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r15
call fcn.1400791b0
mov rcx, rdi
call fcn.140039bf0
lea rbx, [rdi + 0x578]
mov r8, rbx
lea rdx, str.Cover
mov ecx, 0x75
call fcn.1400433e0
mov rax, qword [rbx + 8]
cmp rax, qword [rbx]
je 0x1400398e0
mov rcx, r15
call fcn.1400791a8
test eax, eax
jne 0x140039b76
mov eax, dword [0x1400eb29c]
cmp eax, 0x7fffffff
je 0x140039b81
mov dword [rbp + 0x40], 3
mov dword [rbp + 0x38], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x38]
mov r8d, 4
lea rdx, [rbp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
mov dword [rbp + 0x40], eax
mov dword [rbp + 0x38], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x38]
mov r8d, 4
lea rdx, [rbp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx]
mov qword [rbp + 0x40], rax
mov dword [rbp + 0x38], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x38]
mov r8d, 8
lea rdx, [rbp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r15
call fcn.1400791b0
mov rcx, r15
call fcn.1400791a8
test eax, eax
jne 0x140039b76
mov eax, dword [0x1400eb29c]
cmp eax, 0x7fffffff
je 0x140039b81
mov dword [rbp + 0x40], 5
mov dword [rbp + 0x38], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x38]
mov r8d, 4
lea rdx, [rbp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [0x140036990]
mov qword [rbp + 0x40], rax
mov dword [rbp + 0x38], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x38]
mov r8d, 8
lea rdx, [rbp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r15
call fcn.1400791b0
lea r8, [rdi + 0x478]
lea rdx, [rdi + 0x458]
call fcn.140050a10
mov qword [rbp + 0x48], r15
mov rcx, r15
call fcn.1400791a8
test eax, eax
jne 0x140039b76
mov eax, dword [0x1400eb29c]
cmp eax, 0x7fffffff
je 0x140039b81
mov dword [rbp + 0x40], 4
mov dword [rbp + 0x38], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x38]
mov r8d, 4
lea rdx, [rbp + 0x40]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rdi + 0x458]
lea rcx, [rbp - 0x20]
call fcn.14001f400
mov rdx, rax
mov rcx, rdi
call fcn.1400325f0
lea rdx, [rdi + 0x478]
lea rcx, [rbp - 0x20]
call fcn.14001f400
mov rdx, rax
mov rcx, rdi
call fcn.1400325f0
nop
mov rcx, r15
call fcn.1400791b0
mov ecx, 8
call fcn.14007a154
mov qword [rax], rdi
mov qword [rbp + 0x38], rax
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14003eb70]
xor edx, edx
xor ecx, ecx
call fcn.14008cc94
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140039bd9
cmp dword [rbp - 0x28], 0
je 0x140039bce
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.140079490
test eax, eax
jne 0x140039bce
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
lea ecx, [rax + 8]
call fcn.14007a154
mov qword [rax], rdi
mov qword [rbp + 0x38], rax
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14003eba0]
xor edx, edx
xor ecx, ecx
call fcn.14008cc94
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140039bbf
cmp dword [rbp - 0x28], 0
je 0x140039bb4
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.140079490
test eax, eax
jne 0x140039bb4
call fcn.1400358d0
mov ecx, 8
call fcn.14007a154
mov qword [rax], rdi
mov qword [rbp + 0x38], rax
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14003e9e0]
xor edx, edx
xor ecx, ecx
call fcn.14008cc94
mov qword [rbp - 0x40], rax
test rax, rax
je 0x140039ba5
cmp dword [rbp - 0x38], 0
je 0x140039b9a
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.140079490
test eax, eax
jne 0x140039b9a
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
cmp byte [rdi + 0x4b9], al
jne 0x140039b5c
nop dword [rax]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.140036660
cmp byte [rdi + 0x4b9], 0
je 0x140039b40
cmp dword [rbp - 0x38], 0
jne 0x140039b94
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 5
call fcn.1400790f8
int3
dec eax
mov dword [0x1400eb29c], eax
mov ecx, 6
call fcn.1400790f8
int3
call fcn.14008cb30
nop
mov ecx, 1
call fcn.1400790f8
nop
mov dword [rbp - 0x38], r14d
mov ecx, 6
call fcn.1400790f8
nop
mov ecx, 1
call fcn.1400790f8
nop
mov dword [rbp - 0x28], r14d
mov ecx, 6
call fcn.1400790f8
nop
mov ecx, 1
call fcn.1400790f8
nop
mov dword [rbp - 0x28], r14d
mov ecx, 6
call fcn.1400790f8
int3