Function at 0x140002f90
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xa8
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rbp - 9], rax
mov r13d, r9d
mov r15, r8
mov r14, rdx
mov r12, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xor edi, edi
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x41], rdi
xor r8d, r8d
lea rdx, [0x14004b553]
lea rcx, [rbp - 0x59]
call fcn.140012be0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], rdi
xor r8d, r8d
lea rdx, [0x14004b553]
lea rcx, [rbp - 0x39]
call fcn.140012be0
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140003033
lea rcx, str.File_does_not_exist
call fcn.1400019f0
mov ebx, edi
jmp 0x14000316f
mov rdi, 0xffffffffffffffff
mov rsi, rdi
nop dword [rax]
inc rsi
cmp byte [r14 + rsi], 0
jne 0x140003040
mov rax, qword [rbp - 0x41]
cmp rsi, rax
ja 0x140003078
lea rbx, [rbp - 0x59]
cmp rax, 0xf
cmova rbx, qword [rbp - 0x59]
mov qword [rbp - 0x49], rsi
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.14003dcb0
mov byte [rbx + rsi], 0
jmp 0x140003090
mov r9, r14
mov rdx, rsi
lea rcx, [rbp - 0x59]
call fcn.140012ce0
nop word [rax + rax]
inc rdi
cmp byte [r15 + rdi], 0
jne 0x140003090
mov rax, qword [rbp - 0x21]
cmp rdi, rax
ja 0x1400030c8
lea rbx, [rbp - 0x39]
cmp rax, 0xf
cmova rbx, qword [rbp - 0x39]
mov qword [rbp - 0x29], rdi
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call fcn.14003dcb0
mov byte [rbx + rdi], 0
jmp 0x1400030d7
mov r9, r15
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140012ce0
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000311b
lea rcx, str.Failed_to_open_file_for_reading
call fcn.1400019f0
mov ebx, edi
jmp 0x14000316f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
jne 0x140003144
lea rcx, str.Failed_to_get_file_size
call fcn.1400019f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, edi
jmp 0x14000316f
mov dword [rbp - 0x19], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [rbp - 0x15], r13d
mov eax, dword [rbp + 0x77]
mov dword [rbp - 0x11], eax
mov dword [rbp - 0xd], 1
lea rdx, [rbp - 0x59]
mov rcx, r12
call fcn.140003220
mov ebx, eax
mov rdx, qword [rbp - 0x21]
cmp rdx, 0xf
jbe 0x1400031a6
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400031a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000320f
call fcn.14001a090
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], 0xf
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x1400031ed
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400031e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000320f
call fcn.14001a090
mov eax, ebx
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14001a070
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400271a4
int3