Function at 0x140059030
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.140005870
mov r8d, ebx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140051c40
test al, al
je 0x140059572
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
lea r8d, [r14 + 0x38]
lea rdx, [0x140114000]
lea rcx, [rbp - 0x20]
call fcn.140005870
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140057a60
lea rcx, [rdi + 0x458]
cmp qword [rcx + 0x18], 0x7e6
jb 0x1400590f5
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 0x7e6
mov r8d, 0xfcc
lea rdx, [0x140113030]
mov rcx, rbx
call fcn.1400c70c0
mov word [rbx + 0xfcc], r14w
jmp 0x140059106
lea r9, [0x140113030]
mov edx, 0x7e6
call fcn.140021470
lea rcx, [rdi + 0x478]
cmp qword [rcx + 0x18], 0xcfe
jb 0x140059141
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 0xcfe
mov r8d, 0x19fc
lea rdx, str._n_nNum_1___Infinite_HP_Takes_effect_when_HP_value_updates._nNum_2___Infinite_MP_Takes_effect_when_MP_value_updates._nNum_3___Max_Magatsuhi_Gauge_Takes_effect_when_magatsuhi_gauge_value_updates._nNum_4___Infinite_Actions_Note__you_will_need_to_temporarily_disable_this_option_if_you_get_ambushed_or_during_enemys_turn._nNum_5___100__Drop_Rate_Note__item_wont_drop_if_the_item_amount_is_equal_or_greater_than_the_maximum_amount._nNum_6___Stealth_Mode_nNum_7___Set_Player_Speed_nNum_8___Set_Movement_Speed_nNum_9___Set_Jump_Height_nNum_0___Super_Damage_One_Hit_Kills_If_you_want_to_disable_this_option_after_it_took_effect__you_may_need_to_wait_until_the_battle_ends_in_order_to_cancel_its_effect._nNum_.___Damage_Multiplier_If_you_want_to_disable_this_option_after_it_took_effect__you_may_need_to_wait_until_the_battle_ends_in_order_to_cancel_its_effect._nNum____Defense_Multiplier_If_you_want_to_disable_this_option_after_it_took_effect__you_may_need_to_wait_until_the_battle_ends_in_order_to_cancel_its_effect._n_nCtrlNum_1___Edit_Money_nCtrlNum_2___Money_Multiplier_Takes_effect_when_winning_battles._nCtrlNum_3___Edit_Glory_nCtrlNum_4___Obtain_All_Consumables_Takes_effect_when_opening_the_items_menu._n_nNote__items_that_have_infinite_usage_are_not_included._nCtrlNum_5___Obtain_All_Relics_Takes_effect_when_opening_the_items_menu._nCtrlNum_6___Obtain_All_Essences_Takes_effect_when_opening_the_essence_menu._n_nNote__some_essences_maybe_marked_as_absent_in_the_essence_menu__but_they_are_still_usable_in_essence_fusion._n_nAltNum_1___Infinite_Exp_Takes_effect_when_winning_battles._nAltNum_2___Exp_Multiplier_Takes_effect_when_winning_battles._nAltNum_3___Set_Game_Speed_n_nEdit_Player_Stats_n_nAltNum_4___Edit_Player:_Strength_Open_the_players_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_5___Edit_Player:_Vitality_Open_the_players_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_6___Edit_Player:_Magic_Open_the_players_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_7___Edit_Player:_Agility_Open_the_players_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_8___Edit_Player:_Luck_Open_the_players_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._n_nEdit_Demon_Stats_n_nAltNum_9___Edit_Demon:_Strength_Open_a_demons_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_0___Edit_Demon:_Vitality_Open_a_demons_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_.___Edit_Demon:_Magic_Open_a_demons_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum____Edit_Demon:_Agility_Open_a_demons_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_____Edit_Demon:_Luck_Open_a_demons_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._n_n
mov rcx, rbx
call fcn.1400c70c0
mov word [rbx + 0x19fc], r14w
jmp 0x140059152
lea r9, str._n_nNum_1___Infinite_HP_Takes_effect_when_HP_value_updates._nNum_2___Infinite_MP_Takes_effect_when_MP_value_updates._nNum_3___Max_Magatsuhi_Gauge_Takes_effect_when_magatsuhi_gauge_value_updates._nNum_4___Infinite_Actions_Note__you_will_need_to_temporarily_disable_this_option_if_you_get_ambushed_or_during_enemys_turn._nNum_5___100__Drop_Rate_Note__item_wont_drop_if_the_item_amount_is_equal_or_greater_than_the_maximum_amount._nNum_6___Stealth_Mode_nNum_7___Set_Player_Speed_nNum_8___Set_Movement_Speed_nNum_9___Set_Jump_Height_nNum_0___Super_Damage_One_Hit_Kills_If_you_want_to_disable_this_option_after_it_took_effect__you_may_need_to_wait_until_the_battle_ends_in_order_to_cancel_its_effect._nNum_.___Damage_Multiplier_If_you_want_to_disable_this_option_after_it_took_effect__you_may_need_to_wait_until_the_battle_ends_in_order_to_cancel_its_effect._nNum____Defense_Multiplier_If_you_want_to_disable_this_option_after_it_took_effect__you_may_need_to_wait_until_the_battle_ends_in_order_to_cancel_its_effect._n_nCtrlNum_1___Edit_Money_nCtrlNum_2___Money_Multiplier_Takes_effect_when_winning_battles._nCtrlNum_3___Edit_Glory_nCtrlNum_4___Obtain_All_Consumables_Takes_effect_when_opening_the_items_menu._n_nNote__items_that_have_infinite_usage_are_not_included._nCtrlNum_5___Obtain_All_Relics_Takes_effect_when_opening_the_items_menu._nCtrlNum_6___Obtain_All_Essences_Takes_effect_when_opening_the_essence_menu._n_nNote__some_essences_maybe_marked_as_absent_in_the_essence_menu__but_they_are_still_usable_in_essence_fusion._n_nAltNum_1___Infinite_Exp_Takes_effect_when_winning_battles._nAltNum_2___Exp_Multiplier_Takes_effect_when_winning_battles._nAltNum_3___Set_Game_Speed_n_nEdit_Player_Stats_n_nAltNum_4___Edit_Player:_Strength_Open_the_players_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_5___Edit_Player:_Vitality_Open_the_players_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_6___Edit_Player:_Magic_Open_the_players_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_7___Edit_Player:_Agility_Open_the_players_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_8___Edit_Player:_Luck_Open_the_players_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._n_nEdit_Demon_Stats_n_nAltNum_9___Edit_Demon:_Strength_Open_a_demons_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_0___Edit_Demon:_Vitality_Open_a_demons_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_.___Edit_Demon:_Magic_Open_a_demons_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum____Edit_Demon:_Agility_Open_a_demons_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._nAltNum_____Edit_Demon:_Luck_Open_a_demons_stats_menu__then_activate_this_option__then_leave_and_re_enter_the_stats_menu_to_see_the_updated_stat_value._n_n
mov edx, 0xcfe
call fcn.140021470
mov rcx, rdi
call fcn.1400566f0
mov rcx, rdi
call fcn.1400569e0
lea r15, [0x140142aa0]
mov esi, dword [0x140142298]
test esi, esi
je 0x14005921e
mov ebx, dword [0x140142294]
test ebx, ebx
je 0x14005921e
mov rcx, r15
call fcn.14009d3a0
test eax, eax
jne 0x140059586
mov eax, dword [0x140142aec]
cmp eax, 0x7fffffff
je 0x140059591
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.14009d3a8
mov rcx, rdi
call fcn.140059600
lea rbx, [rdi + 0x578]
mov r8, rbx
lea rdx, str.Cover
mov ecx, 0x75
call fcn.140062ad0
mov rax, qword [rbx + 8]
cmp rax, qword [rbx]
je 0x1400592f2
mov rcx, r15
call fcn.14009d3a0
test eax, eax
jne 0x140059586
mov eax, dword [0x140142aec]
cmp eax, 0x7fffffff
je 0x140059591
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.14009d3a8
mov rcx, r15
call fcn.14009d3a0
test eax, eax
jne 0x140059586
mov eax, dword [0x140142aec]
cmp eax, 0x7fffffff
je 0x140059591
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, [0x1400563d0]
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.14009d3a8
lea r8, [rdi + 0x478]
lea rdx, [rdi + 0x458]
call fcn.140070080
mov qword [rbp + 0x48], r15
mov rcx, r15
call fcn.14009d3a0
test eax, eax
jne 0x140059586
mov eax, dword [0x140142aec]
cmp eax, 0x7fffffff
je 0x140059591
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.14001e680
mov rdx, rax
mov rcx, rdi
call fcn.140052030
lea rdx, [rdi + 0x478]
lea rcx, [rbp - 0x20]
call fcn.14001e680
mov rdx, rax
mov rcx, rdi
call fcn.140052030
nop
mov rcx, r15
call fcn.14009d3a8
mov ecx, 8
call fcn.14009e424
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, [0x14005e260]
xor edx, edx
xor ecx, ecx
call fcn.1400b2444
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400595e9
cmp dword [rbp - 0x28], 0
je 0x1400595de
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.14009d760
test eax, eax
jne 0x1400595de
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
lea ecx, [rax + 8]
call fcn.14009e424
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, [0x14005e290]
xor edx, edx
xor ecx, ecx
call fcn.1400b2444
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400595cf
cmp dword [rbp - 0x28], 0
je 0x1400595c4
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.14009d760
test eax, eax
jne 0x1400595c4
call fcn.140055310
mov ecx, 8
call fcn.14009e424
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, [0x14005e0d0]
xor edx, edx
xor ecx, ecx
call fcn.1400b2444
mov qword [rbp - 0x40], rax
test rax, rax
je 0x1400595b5
cmp dword [rbp - 0x38], 0
je 0x1400595aa
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.14009d760
test eax, eax
jne 0x1400595aa
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
cmp byte [rdi + 0x4b9], al
jne 0x14005956c
nop
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.1400560a0
cmp byte [rdi + 0x4b9], 0
je 0x140059550
cmp dword [rbp - 0x38], 0
jne 0x1400595a4
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 5
call fcn.14009d2f0
int3
dec eax
mov dword [0x140142aec], eax
mov ecx, 6
call fcn.14009d2f0
int3
call fcn.1400b22e0
nop
mov ecx, 1
call fcn.14009d2f0
nop
mov dword [rbp - 0x38], r14d
mov ecx, 6
call fcn.14009d2f0
nop
mov ecx, 1
call fcn.14009d2f0
nop
mov dword [rbp - 0x28], r14d
mov ecx, 6
call fcn.14009d2f0
nop
mov ecx, 1
call fcn.14009d2f0
nop
mov dword [rbp - 0x28], r14d
mov ecx, 6
call fcn.14009d2f0
int3