Function at 0x140058870
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.140004dc0
mov r8d, ebx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140051480
test al, al
je 0x140058db2
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
lea r8d, [r14 + 0x29]
lea rdx, str._n0_N
lea rcx, [rbp - 0x20]
call fcn.140004dc0
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400572a0
lea rcx, [rdi + 0x458]
cmp qword [rcx + 0x18], 0x1e3
jb 0x140058935
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 0x1e3
mov r8d, 0x3c6
lea rdx, [0x140112720]
mov rcx, rbx
call fcn.1400c6340
mov word [rbx + 0x3c6], r14w
jmp 0x140058946
lea r9, [0x140112720]
mov edx, 0x1e3
call fcn.140020c80
lea rcx, [rdi + 0x478]
cmp qword [rcx + 0x18], 0x311
jb 0x140058981
mov rbx, qword [rcx]
mov qword [rcx + 0x10], 0x311
mov r8d, 0x622
lea rdx, str._n_nNum_1___Infinite_Health_Takes_effect_when_health_value_changes._nNum_2___Infinite_Stamina_nNum_3___Infinite_Food_nNum_4___Infinite_Water_nNum_5___Zero_Dirtiness_nNum_6___Set_Game_Speed_nNum_7___Set_Item_Amount_Money_Takes_effect_when_item_amount_or_money_value_changes._nNum_8___Zero_Weight_Max_Weight_Limit_If_youre_overburdened_before_using_this_option__youll_need_to_pick_up_drop_something_in_order_to_remove_the_overburdened_effect._nNum_9___Set_Player_Speed_nNum_0___Set_Movement_Speed_Note_you_may_receive_collision_fall_damage_if_running_too_fast_or_jumping_too_high__you_can_use__Infinite_Health__to_prevent_death._nNum_.___Set_Jump_Height_Note_you_may_receive_collision_fall_damage_if_running_too_fast_or_jumping_too_high__you_can_use__Infinite_Health__to_prevent_death._n_n
mov rcx, rbx
call fcn.1400c6340
mov word [rbx + 0x622], r14w
jmp 0x140058992
lea r9, str._n_nNum_1___Infinite_Health_Takes_effect_when_health_value_changes._nNum_2___Infinite_Stamina_nNum_3___Infinite_Food_nNum_4___Infinite_Water_nNum_5___Zero_Dirtiness_nNum_6___Set_Game_Speed_nNum_7___Set_Item_Amount_Money_Takes_effect_when_item_amount_or_money_value_changes._nNum_8___Zero_Weight_Max_Weight_Limit_If_youre_overburdened_before_using_this_option__youll_need_to_pick_up_drop_something_in_order_to_remove_the_overburdened_effect._nNum_9___Set_Player_Speed_nNum_0___Set_Movement_Speed_Note_you_may_receive_collision_fall_damage_if_running_too_fast_or_jumping_too_high__you_can_use__Infinite_Health__to_prevent_death._nNum_.___Set_Jump_Height_Note_you_may_receive_collision_fall_damage_if_running_too_fast_or_jumping_too_high__you_can_use__Infinite_Health__to_prevent_death._n_n
mov edx, 0x311
call fcn.140020c80
mov rcx, rdi
call fcn.140055f30
mov rcx, rdi
call fcn.140056220
lea r15, [0x14013caa0]
mov esi, dword [0x14013c298]
test esi, esi
je 0x140058a5e
mov ebx, dword [0x14013c294]
test ebx, ebx
je 0x140058a5e
mov rcx, r15
call fcn.14009c510
test eax, eax
jne 0x140058dc6
mov eax, dword [0x14013caec]
cmp eax, 0x7fffffff
je 0x140058dd1
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.14009c518
mov rcx, rdi
call fcn.140058e40
lea rbx, [rdi + 0x578]
mov r8, rbx
lea rdx, str.Cover
mov ecx, 0x75
call fcn.140062310
mov rax, qword [rbx + 8]
cmp rax, qword [rbx]
je 0x140058b32
mov rcx, r15
call fcn.14009c510
test eax, eax
jne 0x140058dc6
mov eax, dword [0x14013caec]
cmp eax, 0x7fffffff
je 0x140058dd1
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.14009c518
mov rcx, r15
call fcn.14009c510
test eax, eax
jne 0x140058dc6
mov eax, dword [0x14013caec]
cmp eax, 0x7fffffff
je 0x140058dd1
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, [0x140055c10]
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.14009c518
lea r8, [rdi + 0x478]
lea rdx, [rdi + 0x458]
call fcn.14006f8c0
mov qword [rbp + 0x48], r15
mov rcx, r15
call fcn.14009c510
test eax, eax
jne 0x140058dc6
mov eax, dword [0x14013caec]
cmp eax, 0x7fffffff
je 0x140058dd1
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.14001de90
mov rdx, rax
mov rcx, rdi
call fcn.140051870
lea rdx, [rdi + 0x478]
lea rcx, [rbp - 0x20]
call fcn.14001de90
mov rdx, rax
mov rcx, rdi
call fcn.140051870
nop
mov rcx, r15
call fcn.14009c518
mov ecx, 8
call fcn.14009d594
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, [0x14005daa0]
xor edx, edx
xor ecx, ecx
call fcn.1400b15b4
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140058e29
cmp dword [rbp - 0x28], 0
je 0x140058e1e
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.14009c8d0
test eax, eax
jne 0x140058e1e
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
lea ecx, [rax + 8]
call fcn.14009d594
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, [0x14005dad0]
xor edx, edx
xor ecx, ecx
call fcn.1400b15b4
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140058e0f
cmp dword [rbp - 0x28], 0
je 0x140058e04
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.14009c8d0
test eax, eax
jne 0x140058e04
call fcn.140054b50
mov ecx, 8
call fcn.14009d594
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, [0x14005d910]
xor edx, edx
xor ecx, ecx
call fcn.1400b15b4
mov qword [rbp - 0x40], rax
test rax, rax
je 0x140058df5
cmp dword [rbp - 0x38], 0
je 0x140058dea
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.14009c8d0
test eax, eax
jne 0x140058dea
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
cmp byte [rdi + 0x4b9], al
jne 0x140058dac
nop
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.1400558e0
cmp byte [rdi + 0x4b9], 0
je 0x140058d90
cmp dword [rbp - 0x38], 0
jne 0x140058de4
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 5
call fcn.14009c460
int3
dec eax
mov dword [0x14013caec], eax
mov ecx, 6
call fcn.14009c460
int3
call fcn.1400b1450
nop
mov ecx, 1
call fcn.14009c460
nop
mov dword [rbp - 0x38], r14d
mov ecx, 6
call fcn.14009c460
nop
mov ecx, 1
call fcn.14009c460
nop
mov dword [rbp - 0x28], r14d
mov ecx, 6
call fcn.14009c460
nop
mov ecx, 1
call fcn.14009c460
nop
mov dword [rbp - 0x28], r14d
mov ecx, 6
call fcn.14009c460
int3