Function at 0x140037d60
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.140004ac0
mov r8d, ebx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140030970
test al, al
je 0x1400382a2
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
lea r8d, [r14 + 0x28]
lea rdx, [0x1400c8650]
lea rcx, [rbp - 0x20]
call fcn.140004ac0
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140036790
lea rcx, [rdi + 0x458]
cmp qword [rcx + 0x18], 0x3a9
jb 0x140037e25
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 0x3a9
mov r8d, 0x752
lea rdx, [0x1400c7ef0]
mov rcx, rbx
call fcn.14009e2e0
mov word [rbx + 0x752], r14w
jmp 0x140037e36
lea r9, [0x1400c7ef0]
mov edx, 0x3a9
call fcn.140020960
lea rcx, [rdi + 0x478]
cmp qword [rcx + 0x18], 0x51d
jb 0x140037e71
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 0x51d
mov r8d, 0xa3a
lea rdx, str._n_nNum_1___Infinite_Fuel_When_activated__fuel_wont_decrease._nNum_2___Infinite_ERS_Battery_nNum_3___Max_Tyre_Condition_When_activated__condition_will_be_locked_at_99_or_100_._nNum_4___Max_Engine_Condition_When_activated__condition_will_be_locked_at_99_or_100_._nNum_5___Max_ERS_Condition_When_activated__condition_will_be_locked_at_99_or_100_._nNum_6___Max_Gearbox_Condition_When_activated__condition_will_be_locked_at_99_or_100_._nNum_7___Edit_Tyre_Temperature_Note_tyre_temperature_is_capped_at_180_degree_celsius._nNum_8___Edit_Powertrain_Temperature_Note_powertrain_temperature_is_capped_between_1_and_255_degree_celsius._nNum_9___Set_Game_Speed_nNum_0___Weak_AI_This_option_will_decrease_AIs_tyre_condition__making_them_go_back_to_the_pit_more_frequently._nNum_.___Empty_AI_Fuel_This_option_will_empty_AIs_fuel__and_make_them_retire_from_the_race_early._n_nCtrlNum_1___Add_Money_Takes_effect_when_you_gain_or_spend_money._nCtrlNum_2___Money__Cost_Cap_Wont_Decrease_nCtrlNum_3___Money_Multiplier_Note_the_display_gain_value_is_not_affected__but_the_actual_amount_of_money_you_are_getting_is_multiplied._nCtrlNum_4___Infinite_CFD_MAU_Hours_Takes_effect_after_you_design_or_research_car_parts._nCtrlNum_5___Infinite_Wind_Tunnel_Hours_Takes_effect_after_you_design_or_research_car_parts._n_n
mov rcx, rbx
call fcn.14009e2e0
mov word [rbx + 0xa3a], r14w
jmp 0x140037e82
lea r9, str._n_nNum_1___Infinite_Fuel_When_activated__fuel_wont_decrease._nNum_2___Infinite_ERS_Battery_nNum_3___Max_Tyre_Condition_When_activated__condition_will_be_locked_at_99_or_100_._nNum_4___Max_Engine_Condition_When_activated__condition_will_be_locked_at_99_or_100_._nNum_5___Max_ERS_Condition_When_activated__condition_will_be_locked_at_99_or_100_._nNum_6___Max_Gearbox_Condition_When_activated__condition_will_be_locked_at_99_or_100_._nNum_7___Edit_Tyre_Temperature_Note_tyre_temperature_is_capped_at_180_degree_celsius._nNum_8___Edit_Powertrain_Temperature_Note_powertrain_temperature_is_capped_between_1_and_255_degree_celsius._nNum_9___Set_Game_Speed_nNum_0___Weak_AI_This_option_will_decrease_AIs_tyre_condition__making_them_go_back_to_the_pit_more_frequently._nNum_.___Empty_AI_Fuel_This_option_will_empty_AIs_fuel__and_make_them_retire_from_the_race_early._n_nCtrlNum_1___Add_Money_Takes_effect_when_you_gain_or_spend_money._nCtrlNum_2___Money__Cost_Cap_Wont_Decrease_nCtrlNum_3___Money_Multiplier_Note_the_display_gain_value_is_not_affected__but_the_actual_amount_of_money_you_are_getting_is_multiplied._nCtrlNum_4___Infinite_CFD_MAU_Hours_Takes_effect_after_you_design_or_research_car_parts._nCtrlNum_5___Infinite_Wind_Tunnel_Hours_Takes_effect_after_you_design_or_research_car_parts._n_n
mov edx, 0x51d
call fcn.140020960
mov rcx, rdi
call fcn.140035420
mov rcx, rdi
call fcn.140035710
lea r15, [0x1400de250]
mov esi, dword [0x1400ddc28]
test esi, esi
je 0x140037f4e
mov ebx, dword [0x1400ddc2c]
test ebx, ebx
je 0x140037f4e
mov rcx, r15
call fcn.140075c08
test eax, eax
jne 0x1400382b6
mov eax, dword [0x1400de29c]
cmp eax, 0x7fffffff
je 0x1400382c1
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.140075c10
mov rcx, rdi
call fcn.140038330
lea rbx, [rdi + 0x578]
mov r8, rbx
lea rdx, str.Cover
mov ecx, 0x75
call fcn.140041b20
mov rax, qword [rbx + 8]
cmp rax, qword [rbx]
je 0x140038022
mov rcx, r15
call fcn.140075c08
test eax, eax
jne 0x1400382b6
mov eax, dword [0x1400de29c]
cmp eax, 0x7fffffff
je 0x1400382c1
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.140075c10
mov rcx, r15
call fcn.140075c08
test eax, eax
jne 0x1400382b6
mov eax, dword [0x1400de29c]
cmp eax, 0x7fffffff
je 0x1400382c1
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, [0x140035100]
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.140075c10
lea r8, [rdi + 0x478]
lea rdx, [rdi + 0x458]
call fcn.14004f150
mov qword [rbp + 0x48], r15
mov rcx, r15
call fcn.140075c08
test eax, eax
jne 0x1400382b6
mov eax, dword [0x1400de29c]
cmp eax, 0x7fffffff
je 0x1400382c1
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.14001db10
mov rdx, rax
mov rcx, rdi
call fcn.140030d60
lea rdx, [rdi + 0x478]
lea rcx, [rbp - 0x20]
call fcn.14001db10
mov rdx, rax
mov rcx, rdi
call fcn.140030d60
nop
mov rcx, r15
call fcn.140075c10
mov ecx, 8
call fcn.140076bb4
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, [0x14003d2b0]
xor edx, edx
xor ecx, ecx
call fcn.1400896f4
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140038319
cmp dword [rbp - 0x28], 0
je 0x14003830e
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.140075ef0
test eax, eax
jne 0x14003830e
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
lea ecx, [rax + 8]
call fcn.140076bb4
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, [0x14003d2e0]
xor edx, edx
xor ecx, ecx
call fcn.1400896f4
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400382ff
cmp dword [rbp - 0x28], 0
je 0x1400382f4
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.140075ef0
test eax, eax
jne 0x1400382f4
call fcn.140034040
mov ecx, 8
call fcn.140076bb4
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, [0x14003d120]
xor edx, edx
xor ecx, ecx
call fcn.1400896f4
mov qword [rbp - 0x40], rax
test rax, rax
je 0x1400382e5
cmp dword [rbp - 0x38], 0
je 0x1400382da
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.140075ef0
test eax, eax
jne 0x1400382da
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
cmp byte [rdi + 0x4b9], al
jne 0x14003829c
nop
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.140034dd0
cmp byte [rdi + 0x4b9], 0
je 0x140038280
cmp dword [rbp - 0x38], 0
jne 0x1400382d4
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 5
call fcn.140075b58
int3
dec eax
mov dword [0x1400de29c], eax
mov ecx, 6
call fcn.140075b58
int3
call fcn.140089590
nop
mov ecx, 1
call fcn.140075b58
nop
mov dword [rbp - 0x38], r14d
mov ecx, 6
call fcn.140075b58
nop
mov ecx, 1
call fcn.140075b58
nop
mov dword [rbp - 0x28], r14d
mov ecx, 6
call fcn.140075b58
nop
mov ecx, 1
call fcn.140075b58
nop
mov dword [rbp - 0x28], r14d
mov ecx, 6
call fcn.140075b58
int3