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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rdi, rcx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rsi
lea r8d, [rsi + 0x16]
lea rdx, str.FLiNGTrainerNamedPipe_
lea rcx, [rbp - 0x20]
call fcn.140005d6c
mov r8d, ebx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400442a8
test al, al
je 0x14004a86a
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rsi
lea r8d, [rsi + 0x38]
lea rdx, [0x1400f83c0]
lea rcx, [rbp - 0x20]
call fcn.140005d6c
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140049100
lea rcx, [rdi + 0x458]
lea rdx, [0x1400f9160]
call fcn.140019d04
lea rcx, [rdi + 0x478]
lea rdx, str._n_nNum_1___God_Mode_Ignore_Hits_Note__if_you_fail_QTE_or_in_some_rare_occasions__your_character_may_get_stuck._You_can_temporarily_disable_this_option_and_let_the_opponent_attack_you_to_fix_this_issue._nNum_2___Infinite_HP_nNum_3___Infinite_Ki_nNum_4___Infinite_Skill_Count_nNum_5___Infinite_Sparking__Mode_Duration_nNum_6___No_Switch_Character_Cooldown_nNum_7___Max_Combo_Takes_effect_when_hit_count_increases._nNum_8___Empty_AI_Ki_nNum_9___Empty_AI_Skill_Count_nNum_0___Super_Damage_One_Hit_Kills_nNum_.___Damage_Multiplier_nNum____Defense_Multiplier_n_nCtrlNum_1___Edit_Zeni_Takes_effect_in_the_shop._nCtrlNum_2___Zeni_Multiplier_Takes_effect_when_you_receive_zeni_reward._n_nNote__the_display_zeni_reward_amount_is_not_affected__but_the_actual_amount_of_zeni_you_will_get_is_multiplied._nCtrlNum_3___Infinite_Exp_Takes_effect_when_you_win_a_battle._n_nNote__the_max_player_level_is_20__may_be_different_in_other_game_versions._nCtrlNum_4___Exp_Multiplier_Takes_effect_when_you_win_a_battle._n_nNote__the_max_player_level_is_20__may_be_different_in_other_game_versions._nCtrlNum_5___Max_Character_Proficiency_Takes_effect_when_you_win_a_battle._nCtrlNum_6___Proficiency_Multiplier_Takes_effect_when_you_win_a_battle._nCtrlNum_7___Summon_Dragons_Without_Dragon_Balls_When_activated__you_can_summon_dragons_even_if_you_dont_have_enough_dragon_balls._nCtrlNum_8___Set_Player_Speed_Note__if_player_speed_is_too_high__some_attacks_may_not_be_able_to_hit_the_opponent_due_to_character_animation_issues._nCtrlNum_9___Set_AI_Speed_Note__this_option_may_sometimes_affect_player_speed__you_can_use__Set_Player_Speed__to_reset_player_speed._nCtrlNum_0___Set_Game_Speed_n_n
call fcn.140019d04
mov rcx, rdi
call fcn.1400482a4
mov rcx, rdi
call fcn.140048558
mov edx, dword [0x140120df0]
test edx, edx
je 0x14004a699
mov r8d, dword [0x140120df4]
test r8d, r8d
je 0x14004a699
mov rcx, rdi
call fcn.14004b410
mov rcx, rdi
call fcn.14004a8ec
mov rcx, rdi
call fcn.14004ac34
lea rcx, [0x140120c00]
call fcn.140084d60
test eax, eax
jne 0x14004a888
mov eax, dword [0x140120c4c]
cmp eax, 0x7fffffff
je 0x14004a893
mov edx, 5
mov rcx, rdi
call fcn.140051e8c
lea rax, [0x140047f24]
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x28]
mov ebx, 8
mov r8d, ebx
lea rdx, [rbp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x140120c00]
call fcn.140084d68
mov rcx, rdi
call fcn.14004ad28
mov ecx, ebx
call fcn.1400862d4
mov qword [rax], rdi
mov qword [rbp + 0x28], rax
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14004e818]
xor edx, edx
xor ecx, ecx
call fcn.14009a2f4
mov qword [rbp - 0x30], rax
test rax, rax
je 0x14004a87a
cmp dword [rbp - 0x28], esi
je 0x14004a8de
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.140085610
test eax, eax
jne 0x14004a8de
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov ecx, ebx
call fcn.1400862d4
mov qword [rax], rdi
mov qword [rbp + 0x28], rax
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14004e848]
xor edx, edx
xor ecx, ecx
call fcn.14009a2f4
mov qword [rbp - 0x30], rax
test rax, rax
je 0x14004a8d0
cmp dword [rbp - 0x28], esi
je 0x14004a8c5
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.140085610
test eax, eax
jne 0x14004a8c5
call fcn.14004708c
mov ecx, ebx
call fcn.1400862d4
mov qword [rax], rdi
mov qword [rbp + 0x28], rax
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x14004e6ec]
xor edx, edx
xor ecx, ecx
call fcn.14009a2f4
mov qword [rbp - 0x40], rax
test rax, rax
je 0x14004a8b7
cmp dword [rbp - 0x38], esi
je 0x14004a8ac
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.140085610
test eax, eax
jne 0x14004a8ac
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
jmp 0x14004a85c
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.140047d00
cmp byte [0x140120df8], sil
je 0x14004a849
cmp dword [rbp - 0x38], esi
jne 0x14004a8a6
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp - 0x28], esi
mov ecx, 6
call fcn.140084d04
nop
mov ecx, 5
call fcn.140084d04
int3
dec eax
mov dword [0x140120c4c], eax
mov ecx, 6
call fcn.140084d04
int3
call fcn.14009a190
nop
mov ecx, 1
call fcn.140084d04
nop
mov dword [rbp - 0x38], esi
mov ecx, 6
call fcn.140084d04
nop
mov ecx, 1
call fcn.140084d04
nop
mov dword [rbp - 0x28], esi
mov ecx, 6
call fcn.140084d04
nop
mov ecx, 1
call fcn.140084d04
int3