Function at 0x140045040
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400fd480]
xor rax, rsp
mov qword [rbp + 8], rax
xor r14d, r14d
lea rdx, [0x1400ffdc0]
mov r8, qword [0x1400ffdd0]
cmp qword [0x1400ffdd8], 0xf
jbe 0x140045091
mov rdx, qword [0x1400ffdc0]
add r8, rdx
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
cmp rdx, r8
jne 0x1400450bc
movdqa xmm0, xmmword [0x1400bee90]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r14w
jmp 0x1400450cc
mov r9, r8
sub r9, rdx
lea rcx, [rbp - 0x78]
call fcn.1400048a0
nop
lea rcx, [rbp - 0x18]
call fcn.1400536c0
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x12
jb 0x14004511d
lea rsi, [rcx + 0x12]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 7
jbe 0x140045100
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x24
lea rdx, str._trainer_settings_
call fcn.1400b4590
mov word [rdi + rsi*2], r14w
jmp 0x140045143
mov qword [rsp + 0x20], SafeArrayUnaccessData
lea r9, str._trainer_settings_
movzx r8d, byte [rsp + 0x30]
mov edx, 0x12
mov rcx, rbx
call fcn.140006ad0
mov rbx, rax
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
lea r9, [rbp - 0x78]
lea r8, [rsp + 0x68]
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.14000a290
nop
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x1400451c6
lea rax, [rcx + 4]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp rdx, 7
cmova rax, qword [rsp + 0x48]
movabs rdx, 0x69006e0069002e
mov qword [rax + rcx*2], rdx
mov word [rax + rcx*2 + 8], r14w
lea rax, [rsp + 0x48]
jmp 0x1400451eb
mov qword [rsp + 0x20], 4
lea r9, str..ini
movzx r8d, byte [rsp + 0x30]
mov edx, 4
lea rcx, [rsp + 0x48]
call fcn.140006ad0
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14004525b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045256
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400456a4
call fcn.14008ffa8
movdqa xmm0, xmmword [0x1400bee90]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x1400452b1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400452ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400456aa
call fcn.14008ffa8
nop
mov rdx, qword [rbp]
cmp rdx, 7
jbe 0x1400452f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400452ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400456b0
call fcn.14008ffa8
movdqa xmm0, xmmword [0x1400bee90]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], r14w
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140045343
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004533e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400456b6
call fcn.14008ffa8
lea rcx, [rbp - 0x38]
call fcn.140053c90
test al, al
je 0x140045639
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movdqa xmm1, xmmword [0x1400beea0]
movdqu xmmword [rsp + 0x78], xmm1
mov byte [rsp + 0x68], 0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [reloc.OLEAUT32.dll_SafeArrayDestroy]
movdqu xmmword [rsp + 0x58], xmm1
movsd xmm0, qword [str.GamePassExePath]
movsd qword [rsp + 0x48], xmm0
mov eax, dword [0x1400c2da0]
mov dword [rsp + 0x50], eax
movzx eax, word [0x1400c2da4]
mov word [rsp + 0x54], ax
movzx eax, byte [0x1400c2da6]
mov byte [rsp + 0x56], al
mov byte [rsp + 0x57], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
movdqa xmm1, xmmword [reloc.OLEAUT32.dll_SysStringLen]
movdqu xmmword [rbp - 0x68], xmm1
mov eax, dword [str.Bypass]
mov dword [rbp - 0x78], eax
movzx eax, word [0x1400c2dac]
mov word [rbp - 0x74], ax
mov byte [rbp - 0x72], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x58]
call fcn.140045f10
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x14004543e
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045439
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400456bc
call fcn.14008ffa8
movdqa xmm0, xmmword [0x1400beea0]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14004548c
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045487
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400456c2
call fcn.14008ffa8
movdqa xmm0, xmmword [0x1400beea0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x1400454db
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400454d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400456c8
call fcn.14008ffa8
movdqa xmm0, xmmword [0x1400beea0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
cmp qword [rbp - 0x48], 3
jbe 0x1400455e8
mov rbx, qword [0x1400ff8d8]
lea rdi, [0x1400ffec0]
mov qword [rsp + 0x40], rdi
mov rcx, rdi
call fcn.14008de0c
test eax, eax
jne 0x1400456ce
cmp dword [0x1400fff0c], 0x7fffffff
je 0x1400456d9
lea edx, [rax + 0xa]
mov rcx, rbx
call fcn.14004efe0
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], r14
mov ecx, 0x20
call fcn.14008ff6c
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], SafeArrayUnaccessData
mov qword [rbp - 0x80], 0x1f
movups xmm0, xmmword [str.SET_GAMEPASS_EXE_PATH]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400c31e8]
mov dword [rax + 0x10], ecx
movzx ecx, byte [0x1400c31ec]
mov byte [rax + 0x14], cl
mov byte [rax + 0x15], 0
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.140049ff0
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x38]
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x34], 1
jne 0x1400455df
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x18]
call fcn.14000a160
mov rdx, rax
mov rcx, rbx
call fcn.14004a0f0
nop
mov rcx, rdi
call fcn.14008de14
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x140045628
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045623
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400456ee
call fcn.14008ffa8
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r14w
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x140045675
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045670
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004569e
call fcn.14008ffa8
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140090420
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140096dc4
nop
call fcn.140096dc4
nop
call fcn.140096dc4
nop
call fcn.140096dc4
nop
call fcn.140096dc4
nop
call fcn.140096dc4
nop
call fcn.140096dc4
nop
call fcn.140096dc4
int3
mov ecx, 5
call fcn.14008e088
int3
mov dword [0x1400fff0c], 0x7ffffffe
mov ecx, 6
call fcn.14008e088
nop
call fcn.140096dc4
int3