Function at 0x140037420
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.1400053b0
mov r8d, ebx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140030e50
test al, al
je 0x140037962
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
lea r8d, [r14 + 0x40]
lea rdx, str._n0o
lea rcx, [rbp - 0x20]
call fcn.1400053b0
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140035e50
lea rcx, [rdi + 0x458]
cmp qword [rcx + 0x18], 0x403
jb 0x1400374e5
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 0x403
mov r8d, 0x806
lea rdx, [0x1400c70c0]
mov rcx, rbx
call fcn.14009d880
mov word [rbx + 0x806], r14w
jmp 0x1400374f6
lea r9, [0x1400c70c0]
mov edx, 0x403
call fcn.140020fa0
lea rcx, [rdi + 0x478]
cmp qword [rcx + 0x18], 0x5c8
jb 0x140037531
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 0x5c8
mov r8d, 0xb90
lea rdx, str._n_nNum_1___God_Mode_Ignore_Hits_Only_works_for_characters__not_spaceship__Use__Spaceship:_Infinite_Health__option_for_spaceship_instead_._nNum_2___Infinite_Health_Takes_effect_when_you_receive_damage._n_nOnly_works_for_characters__not_spaceship__Use__Spaceship:_Infinite_Health__option_for_spaceship_instead_._nNum_3___Infinite_Shield_Takes_effect_when_you_receive_damage._nNum_4___Max_Huddle_Gauge_Takes_effect_when_huddle_gauge_value_increases._nNum_5___Weapon_No_Overheat_Only_works_for_characters__not_spaceship__Use__Spaceship:_No_Overheat__option_for_spaceship_instead_._nNum_6___Skills_Instant_Cooldown_nNum_7___Max_Momentum_nNum_8___Momentum_Multiplier_nNum_9___One_Hit_Stagger_nNum_0___One_Hit_Kill_Only_works_for_characters__not_spaceship._nNum_.___Damage_Multiplier_Only_works_for_characters__not_spaceship._n_nShiftF1___Spaceship:_Infinite_Health_Takes_effect_when_spaceship_health_value_changes._n_nNote__this_option_cant_prevent_fatal_damage__e.g._fatal_collision___the_spaceship_will_still_be_destroyed_if_it_receives_fatal_damage._nShiftF2___Spaceship:_No_Overheat_n_nCtrlNum_1___Infinite_XP_Youll_gain_99999_XP_and_gain_99_levels_after_you_win_a_battle__it_only_takes_effect_once_each_time_you_activate_this_option._nCtrlNum_2___XP_Multiplier_nCtrlNum_3___Edit_Ability_Points_nCtrlNum_4___Edit_Basic_Components_nCtrlNum_5___Edit_Advanced_Components_nCtrlNum_6___Edit_Money__Units__Takes_effect_when_money_unit_value_updates._nCtrlNum_7___Set_Game_Speed_n_n
mov rcx, rbx
call fcn.14009d880
mov word [rbx + 0xb90], r14w
jmp 0x140037542
lea r9, str._n_nNum_1___God_Mode_Ignore_Hits_Only_works_for_characters__not_spaceship__Use__Spaceship:_Infinite_Health__option_for_spaceship_instead_._nNum_2___Infinite_Health_Takes_effect_when_you_receive_damage._n_nOnly_works_for_characters__not_spaceship__Use__Spaceship:_Infinite_Health__option_for_spaceship_instead_._nNum_3___Infinite_Shield_Takes_effect_when_you_receive_damage._nNum_4___Max_Huddle_Gauge_Takes_effect_when_huddle_gauge_value_increases._nNum_5___Weapon_No_Overheat_Only_works_for_characters__not_spaceship__Use__Spaceship:_No_Overheat__option_for_spaceship_instead_._nNum_6___Skills_Instant_Cooldown_nNum_7___Max_Momentum_nNum_8___Momentum_Multiplier_nNum_9___One_Hit_Stagger_nNum_0___One_Hit_Kill_Only_works_for_characters__not_spaceship._nNum_.___Damage_Multiplier_Only_works_for_characters__not_spaceship._n_nShiftF1___Spaceship:_Infinite_Health_Takes_effect_when_spaceship_health_value_changes._n_nNote__this_option_cant_prevent_fatal_damage__e.g._fatal_collision___the_spaceship_will_still_be_destroyed_if_it_receives_fatal_damage._nShiftF2___Spaceship:_No_Overheat_n_nCtrlNum_1___Infinite_XP_Youll_gain_99999_XP_and_gain_99_levels_after_you_win_a_battle__it_only_takes_effect_once_each_time_you_activate_this_option._nCtrlNum_2___XP_Multiplier_nCtrlNum_3___Edit_Ability_Points_nCtrlNum_4___Edit_Basic_Components_nCtrlNum_5___Edit_Advanced_Components_nCtrlNum_6___Edit_Money__Units__Takes_effect_when_money_unit_value_updates._nCtrlNum_7___Set_Game_Speed_n_n
mov edx, 0x5c8
call fcn.140020fa0
mov rcx, rdi
call fcn.140034ae0
mov rcx, rdi
call fcn.140034dd0
lea r15, [0x1400df250]
mov esi, dword [0x1400dec28]
test esi, esi
je 0x14003760e
mov ebx, dword [0x1400dec2c]
test ebx, ebx
je 0x14003760e
mov rcx, r15
call fcn.1400751a8
test eax, eax
jne 0x140037976
mov eax, dword [0x1400df29c]
cmp eax, 0x7fffffff
je 0x140037981
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.1400751b0
mov rcx, rdi
call fcn.1400379f0
lea rbx, [rdi + 0x578]
mov r8, rbx
lea rdx, str.Cover
mov ecx, 0x75
call fcn.140041180
mov rax, qword [rbx + 8]
cmp rax, qword [rbx]
je 0x1400376e2
mov rcx, r15
call fcn.1400751a8
test eax, eax
jne 0x140037976
mov eax, dword [0x1400df29c]
cmp eax, 0x7fffffff
je 0x140037981
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.1400751b0
mov rcx, r15
call fcn.1400751a8
test eax, eax
jne 0x140037976
mov eax, dword [0x1400df29c]
cmp eax, 0x7fffffff
je 0x140037981
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, [0x1400347c0]
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.1400751b0
lea r8, [rdi + 0x478]
lea rdx, [rdi + 0x458]
call fcn.14004e8c0
mov qword [rbp + 0x48], r15
mov rcx, r15
call fcn.1400751a8
test eax, eax
jne 0x140037976
mov eax, dword [0x1400df29c]
cmp eax, 0x7fffffff
je 0x140037981
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.14001e150
mov rdx, rax
mov rcx, rdi
call fcn.140031240
lea rdx, [rdi + 0x478]
lea rcx, [rbp - 0x20]
call fcn.14001e150
mov rdx, rax
mov rcx, rdi
call fcn.140031240
nop
mov rcx, r15
call fcn.1400751b0
mov ecx, 8
call fcn.140076154
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, [0x14003c760]
xor edx, edx
xor ecx, ecx
call fcn.140088c94
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400379d9
cmp dword [rbp - 0x28], 0
je 0x1400379ce
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.140075490
test eax, eax
jne 0x1400379ce
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
lea ecx, [rax + 8]
call fcn.140076154
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, [0x14003c790]
xor edx, edx
xor ecx, ecx
call fcn.140088c94
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400379bf
cmp dword [rbp - 0x28], 0
je 0x1400379b4
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.140075490
test eax, eax
jne 0x1400379b4
lea ecx, [rax + 8]
call fcn.140076154
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, [0x14003c5d0]
xor edx, edx
xor ecx, ecx
call fcn.140088c94
mov qword [rbp - 0x40], rax
test rax, rax
je 0x1400379a5
cmp dword [rbp - 0x38], 0
je 0x14003799a
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.140075490
test eax, eax
jne 0x14003799a
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
cmp byte [rdi + 0x4b8], al
jne 0x14003795c
nop word [rax + rax]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.1400344d0
cmp byte [rdi + 0x4b8], 0
je 0x140037940
cmp dword [rbp - 0x38], 0
jne 0x140037994
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 5
call fcn.1400750f8
int3
dec eax
mov dword [0x1400df29c], eax
mov ecx, 6
call fcn.1400750f8
int3
call fcn.140088b30
nop
mov ecx, 1
call fcn.1400750f8
nop
mov dword [rbp - 0x38], r14d
mov ecx, 6
call fcn.1400750f8
nop
mov ecx, 1
call fcn.1400750f8
nop
mov dword [rbp - 0x28], r14d
mov ecx, 6
call fcn.1400750f8
nop
mov ecx, 1
call fcn.1400750f8
nop
mov dword [rbp - 0x28], r14d
mov ecx, 6
call fcn.1400750f8
int3