Function at 0x14000ed90
Capabilities:
Get file version info
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
lea rdx, [0x1400807c0]
lea rcx, [0x140080400]
call fcn.14000bd80
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
xor r8d, r8d
lea rdx, [0x140069da8]
lea rcx, [rsp + 0x50]
call fcn.140002790
mov dword [rsp + 0x38], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.140059c20
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000eeef
cmp eax, 0x104
je 0x14000eeef
mov dword [rsp + 0x30], r15d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14000eeef
mov ecx, esi
call fcn.1400351f0
mov rdi, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.140059c20
mov dword [rsp + 0x34], r15d
mov r9, rdi
mov r8d, esi
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x70]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14000eee7
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x40]
lea rdx, str.StringFileInfo000004b0ProductVersion
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14000eee7
mov rdx, qword [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000eed1
lea rcx, [rsp + 0x50]
call fcn.1400022f0
nop
mov rcx, rdi
call fcn.140034f40
lea rdx, [rsp + 0x50]
lea rcx, [0x140080720]
call fcn.140001ea0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x14000ef43
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ef3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f076
call fcn.140034f40
lea rbx, [0x140080850]
mov qword [rsp + 0x48], rbx
mov rcx, rbx
call fcn.140034744
test eax, eax
jne 0x14000f07c
mov eax, dword [0x14008089c]
cmp eax, 0x7fffffff
je 0x14000f063
mov dword [rsp + 0x38], 0xa
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
mov r8d, 4
lea rdx, [rsp + 0x38]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0xa
mov qword [rsp + 0x68], reloc.OLEAUT32.dll_SafeArrayDestroy
movsd xmm0, qword [str.TRAINER_ID]
movsd qword [rsp + 0x50], xmm0
movzx eax, word [0x14006d050]
mov word [rsp + 0x58], ax
mov byte [rsp + 0x5a], 0
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.14000bb80
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
mov r8d, 4
lea rdx, [rsp + 0x30]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x30], 1
jne 0x14000f02f
lea rdx, [0x1400807e0]
lea rcx, [rsp + 0x50]
call fcn.140001fe0
mov rdx, rax
mov rcx, r14
call fcn.14000bb80
nop
mov rcx, rbx
call fcn.14003474c
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140034f20
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
dec eax
mov dword [0x14008089c], eax
mov ecx, 6
call fcn.140034608
int3
call fcn.14003bf44
int3
mov ecx, 5
call fcn.140034608
int3