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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov rax, qword [0x1401120c0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
lea rdx, [0x140126ca0]
lea rcx, [0x1401268c0]
call fcn.140045d2c
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
xor r8d, r8d
lea rdx, [0x1400edb28]
lea rcx, [rsp + 0x50]
call fcn.1400060ec
mov dword [rsp + 0x40], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.1400adca0
mov ebx, 0x104
mov r8d, ebx
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14004989b
cmp eax, ebx
je 0x14004989b
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 0x14004989b
mov ecx, esi
call fcn.140088094
mov rdi, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], r15
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.1400adca0
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 0x140049893
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
lea rdx, str.StringFileInfo000004b0ProductVersion
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140049893
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14001a6a0
nop
mov rcx, rdi
call fcn.140087a40
lea rcx, [0x140126be0]
call fcn.14001b224
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [0x140126be0], xmm0
movups xmm1, xmmword [rsp + 0x60]
movaps xmmword [0x140126bf0], xmm1
lea rdi, [0x140126d30]
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call fcn.140086500
test eax, eax
jne 0x1400499fa
mov eax, dword [0x140126d7c]
cmp eax, 0x7fffffff
je 0x1400499e7
mov ebx, 0xa
mov edx, ebx
mov rcx, r14
call fcn.140053bbc
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], reloc.OLEAUT32.dll_SafeArrayDestroy
movsd xmm0, qword [str.TRAINER_ID]
movsd qword [rsp + 0x50], xmm0
movzx eax, word [0x1400f6c70]
mov word [rsp + 0x58], ax
mov byte [rsp + 0x5a], r15b
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400454f0
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
lea r8d, [rbx - 6]
lea rdx, [rsp + 0x30]
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x30], 1
jne 0x1400499b3
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
lea rdx, [0x140126cc0]
cmp qword [0x140126cd8], 0xf
cmova rdx, qword [0x140126cc0]
mov r8, qword [0x140126cd0]
lea rcx, [rsp + 0x50]
call fcn.140013624
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400454f0
nop
mov rcx, rdi
call fcn.140086508
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140087a20
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 [0x140126d7c], eax
mov ecx, 6
call fcn.1400864a4
int3
mov ecx, 5
call fcn.1400864a4
int3