Function at 0x140012f38
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x2e0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400e30b0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rdi, rcx
or r14, 0xffffffffffffffff
mov qword [rsp + 0x70], r14
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x140012f84
mov rax, qword [rcx]
xor esi, esi
mov qword [rcx + 0x10], rsi
mov word [rax], si
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0xc0]
call fcn.1400659b0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x140012fcc
lfence
jmp 0x140013440
movdqa xmm0, xmmword [0x1400c6410]
movdqu xmmword [rsp + 0xb0], xmm0
mov word [rsp + 0xa0], si
lea rax, [rsp + 0xc0]
mov r8, r14
inc r8
cmp word [rax + r8*2], si
jne 0x140012ff0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xa0]
call fcn.140004670
nop
mov r8d, 0x10
lea rdx, str.NVIDIA_accounts
lea rcx, [rsp + 0xa0]
call fcn.140003440
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 8
cmovae rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x70], rax
cmp rax, r14
jne 0x1400130a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea rcx, [rsp + 0xa0]
call fcn.1400045e4
mov eax, ebx
jmp 0x140013440
xor eax, eax
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x140013416
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140013416
mov qword [rsp + 0x90], rsi
mov r14d, 0xf
mov qword [rsp + 0x98], r14
mov byte [rsp + 0x80], sil
mov edx, eax
test eax, eax
jne 0x140013102
mov qword [rsp + 0x90], rdx
mov byte [rsp + rdx + 0x80], sil
jmp 0x140013115
lfence
xor r8d, r8d
lea rcx, [rsp + 0x80]
call fcn.1400047d8
mov dword [rsp + 0x44], esi
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 0x10
cmovae rdx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x14001338d
mov eax, dword [rsp + 0x44]
cmp qword [rsp + 0x60], rax
jne 0x14001338d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rsi
mov qword [rsp + 0x48], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movsxd rdx, dword [rsp + 0x90]
mov byte [rsp + 0x40], sil
test edx, edx
je 0x1400131ac
lfence
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.1400139c8
mov edx, dword [rsp + 0x90]
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
sub rax, r8
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x80]
cmp qword [rsp + 0x98], 0x10
cmovae rcx, qword [rsp + 0x80]
lea r9, [rsp + 0x68]
call fcn.140012de0
test eax, eax
jne 0x1400132b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013247
mov rdx, qword [rsp + 0x58]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140013234
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001346a
call fcn.140046b80
mov qword [rsp + 0x48], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x14001328a
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013285
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013470
call fcn.140046b80
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], r14
mov byte [rsp + 0x80], sil
lea rcx, [rsp + 0xa0]
call fcn.1400045e4
mov eax, ebx
jmp 0x140013440
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
sub r8, rdx
shr r8, 1
mov rcx, rdi
call fcn.140004670
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001331e
mov rdx, qword [rsp + 0x58]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14001330b
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001346a
call fcn.140046b80
mov qword [rsp + 0x48], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x140013361
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001335c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013470
call fcn.140046b80
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], r14
mov byte [rsp + 0x80], sil
lea rcx, [rsp + 0xa0]
call fcn.1400045e4
xor eax, eax
jmp 0x140013440
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rdx, qword [rsp + 0x98]
cmp rdx, 0x10
jb 0x1400133ed
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400133e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013470
call fcn.140046b80
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], r14
mov byte [rsp + 0x80], sil
lea rcx, [rsp + 0xa0]
call fcn.1400045e4
mov eax, ebx
jmp 0x140013440
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xa0]
call fcn.1400045e4
mov eax, 0x570
jmp 0x140013440
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140046b20
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call fcn.14006b7b8
nop
call fcn.14006b7b8
int3