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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
xor r12d, r12d
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], 7
lea r8d, [r12 + 0x16]
lea rdx, str.FLiNGTrainerNamedPipe_
lea rcx, [rbp - 0x20]
call fcn.140005660
mov r8d, ebx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140030150
test al, al
je 0x140038356
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], 7
lea r8d, [r12 + 0x3a]
lea rdx, str._n0hQb
lea rcx, [rbp - 0x20]
call fcn.140005660
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140036da0
mov r8d, 0x4a5
lea rdx, [0x1400ca5e0]
lea rcx, [rdi + 0x458]
call fcn.140005660
mov r8d, 0x588
lea rdx, str._n_nNum_1___Edit_Food_nNum_2___Edit_Stones_nNum_3___Edit_Wood_nNum_4___Edit_Bronze_nNum_5___Edit_Gold_nNum_6___Infinite_Units_Movement_Only_works_in_the_campaign_map._nNum_7___Infinite_Units_Health_Only_works_in_the_campaign_map._nNum_8___One_Turn_Recruit_Activate_before_recruiting._nNum_9___One_Turn_Construction_Activate_before_selecting_buildings._nNum_0___One_Turn_Complete_Royal_Decrees_Takes_effect_when_you_open_the_royal_decrees_menu._nNum_.___Unlock_All_Royal_Decrees_Takes_effect_when_you_open_the_royal_decrees_menu._n_nAfter_unlocking_royal_decrees__you_will_need_to_save_and_reload_the_game_in_order_to_apply_their_effects._nNum____AI_Units_Cant_Move_Only_works_in_the_campaign_map._nNum_____Empty_AI_Units_Health_Only_works_in_the_campaign_map._n_nCtrlNum_1___Max_City_Happiness_Takes_effect_when_you_click_on_a_city._nCtrlNum_2___Max_City_Workforce_Takes_effect_when_you_click_on_a_city._nCtrlNum_3___Edit_Character_Exp_Takes_effect_when_you_open_the_character_details_menu._nCtrlNum_4___Edit_Character_Skill_Points_Takes_effect_when_you_open_the_character_details_menu._nCtrlNum_5___Diplomacy_Always_Succeed_Disable_this_option_after_you_are_done_with_diplomacy__otherwise_it_will_also_work_for_AI._nCtrlNum_6___Set_Game_Speed_n_nAltNum_1___God_Mode__In_Battle__nAltNum_2___Infinite_Ammo_nAltNum_3___Empty_Enemies_Ammo_nAltNum_4___Max_Morale_nAltNum_5___Empty_Enemies_Morale__Fast_Win__n_n
lea rcx, [rdi + 0x478]
call fcn.140005660
mov rcx, rdi
call fcn.140035bf0
mov rcx, rdi
call fcn.140035ed0
lea r13, [0x1400e36a0]
mov esi, dword [0x1400e37ac]
test esi, esi
je 0x14003803c
mov ebx, dword [0x1400e37a8]
test ebx, ebx
je 0x14003803c
mov rcx, r13
call fcn.140074f84
test eax, eax
jne 0x14003837d
mov dword [rbp + 0x50], 9
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
lea r8d, [r12 + 4]
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x50], esi
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
lea r8d, [r12 + 4]
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x50], ebx
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
lea r8d, [r12 + 4]
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call fcn.140074f8c
mov rcx, rdi
call fcn.140038400
lea rbx, [rdi + 0x578]
mov r8, rbx
lea rdx, str.Cover
mov ecx, 0x75
call fcn.140042410
mov rax, qword [rbx + 8]
cmp rax, qword [rbx]
je 0x1400380fd
mov rcx, r13
call fcn.140074f84
test eax, eax
jne 0x140038385
mov dword [rbp + 0x50], 3
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
lea r8d, [rax + 4]
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
mov dword [rbp + 0x50], eax
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
mov r8d, 4
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx]
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
mov r8d, 8
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call fcn.140074f8c
mov rcx, r13
call fcn.140074f84
test eax, eax
jne 0x14003838d
mov dword [rbp + 0x50], 5
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
lea r8d, [rax + 4]
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [0x140035810]
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
mov r8d, 8
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call fcn.140074f8c
lea r8, [rdi + 0x478]
lea rdx, [rdi + 0x458]
call fcn.14004ee70
mov qword [rbp + 0x58], r13
mov rcx, r13
call fcn.140074f84
test eax, eax
jne 0x140038395
mov dword [rbp + 0x50], 4
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
lea r8d, [rax + 4]
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rdi + 0x458]
lea rcx, [rbp - 0x20]
call fcn.14001dd80
mov rdx, rax
mov rcx, rdi
call fcn.1400305a0
lea rdx, [rdi + 0x478]
lea rcx, [rbp - 0x20]
call fcn.14001dd80
mov rdx, rax
mov rcx, rdi
call fcn.1400305a0
nop
mov rcx, r13
call fcn.140074f8c
mov ecx, 8
call fcn.1400761e4
mov qword [rax], rdi
mov qword [rbp + 0x48], rax
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x14003dc60]
xor edx, edx
xor ecx, ecx
call fcn.140085f7c
mov qword [rbp - 0x30], rax
test rax, rax
je 0x14003836e
cmp dword [rbp - 0x28], 0
je 0x14003839d
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.1400750d4
test eax, eax
jne 0x1400383a8
lea ecx, [rax + 8]
call fcn.1400761e4
mov qword [rax], rdi
mov qword [rbp + 0x48], rax
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x14003dc90]
xor edx, edx
xor ecx, ecx
call fcn.140085f7c
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400383eb
cmp dword [rbp - 0x28], 0
je 0x1400383b0
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.1400750d4
test eax, eax
jne 0x1400383bb
call fcn.140034290
mov ecx, 8
call fcn.1400761e4
mov qword [rax], rdi
mov qword [rbp + 0x48], rax
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x14003db00]
xor edx, edx
xor ecx, ecx
call fcn.140085f7c
mov qword [rbp - 0x40], rax
test rax, rax
je 0x1400383dc
cmp dword [rbp - 0x38], 0
je 0x1400383c3
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.1400750d4
test eax, eax
jne 0x1400383ce
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
cmp byte [0x1400e37c8], al
jne 0x14003834c
nop
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.1400354d0
cmp byte [0x1400e37c8], 0
je 0x140038330
cmp dword [rbp - 0x38], 0
jne 0x1400383d6
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp - 0x28], r12d
mov ecx, 6
call fcn.1400738f0
nop
mov ecx, eax
call fcn.1400738b4
int3
mov ecx, eax
call fcn.1400738b4
int3
mov ecx, eax
call fcn.1400738b4
int3
mov ecx, eax
call fcn.1400738b4
nop
mov ecx, 1
call fcn.1400738f0
int3
mov ecx, eax
call fcn.1400738b4
nop
mov ecx, 1
call fcn.1400738f0
int3
mov ecx, eax
call fcn.1400738b4
nop
mov ecx, 1
call fcn.1400738f0
int3
mov ecx, eax
call fcn.1400738b4
nop
call fcn.140085e30
nop
mov dword [rbp - 0x38], r12d
mov ecx, 6
call fcn.1400738f0
nop
mov dword [rbp - 0x28], r12d
mov ecx, 6
call fcn.1400738f0
int3