Function at 0x14003ae90
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x10], rdx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor esi, esi
xor r14d, r14d
and dword [rbp - 0x10], esi
mov r12, r9
and dword [rbp - 0xc], esi
mov r13, r8
xor ebx, ebx
mov r15, rcx
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
lea edi, [rsi + 4]
cmp rcx, rax
je 0x14003af00
test byte [rcx + 0x1c], dil
je 0x14003af00
cmp byte [rcx + 0x19], 5
jb 0x14003af00
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008cd68]
mov edx, 0x139
call fcn.1400042fc
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14003af5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14003b22c
test byte [rcx + 0x1c], dil
je 0x14003b22c
cmp byte [rcx + 0x19], 2
jb 0x14003b22c
mov edx, 0x13a
jmp 0x14003b219
and qword [rsp + 0x20], rbx
lea r9, [rbp - 0xc]
mov r8d, edi
lea rdx, [rbp - 0x10]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003afc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14003b22c
test byte [rcx + 0x1c], dil
je 0x14003b22c
cmp byte [rcx + 0x19], 2
jb 0x14003b22c
mov edx, 0x13b
jmp 0x14003b219
cmp dword [rbp - 0xc], edi
je 0x14003b018
mov r9d, 0x26
mov ebx, r9d
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14003b2a8
test byte [rcx + 0x1c], dil
je 0x14003b2a8
cmp byte [rcx + 0x19], 2
jb 0x14003b2a8
mov edx, 0x13c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008cd68]
call fcn.140023570
jmp 0x14003b2a8
mov ecx, dword [rbp - 0x10]
call fcn.140069c6c
mov rsi, rax
test rax, rax
jne 0x14003b061
lea ebx, [rax + 8]
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14003b2a8
test byte [rcx + 0x1c], dil
je 0x14003b2a8
cmp byte [rcx + 0x19], 2
jb 0x14003b2a8
mov r9d, dword [rbp - 0x10]
mov edx, 0x13d
jmp 0x14003b003
mov r8d, dword [rbp - 0x10]
lea r9, [rbp - 0xc]
and qword [rsp + 0x20], rbx
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003b0c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14003b22c
test byte [rcx + 0x1c], dil
je 0x14003b22c
cmp byte [rcx + 0x19], 2
jb 0x14003b22c
mov edx, 0x13e
jmp 0x14003b219
mov eax, dword [rbp - 0xc]
cmp dword [rbp - 0x10], eax
je 0x14003b10d
mov r9d, 0x26
mov ebx, r9d
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14003b279
test byte [rcx + 0x1c], dil
je 0x14003b279
cmp byte [rcx + 0x19], 2
jb 0x14003b279
mov edx, 0x13f
jmp 0x14003b269
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14003b168
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14003b22c
test byte [rcx + 0x1c], 4
je 0x14003b22c
cmp byte [rcx + 0x19], 2
jb 0x14003b22c
mov edx, 0x140
jmp 0x14003b219
sub edi, dword [rbp - 0x10]
sub edi, 8
mov ecx, edi
call fcn.140069c6c
mov r14, rax
test rax, rax
jne 0x14003b1c5
lea ebx, [rax + 8]
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14003b279
test byte [rcx + 0x1c], 4
je 0x14003b279
cmp byte [rcx + 0x19], 2
jb 0x14003b279
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008cd68]
mov edx, 0x141
call fcn.1400042fc
jmp 0x14003b279
and qword [rsp + 0x20], rbx
lea r9, [rbp - 0xc]
mov r8d, edi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14003b237
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14003b22c
test byte [rcx + 0x1c], 4
je 0x14003b22c
cmp byte [rcx + 0x19], 2
jb 0x14003b22c
mov edx, 0x142
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008cd68]
mov r9d, ebx
call fcn.140023570
test ebx, ebx
je 0x14003b2a8
test rsi, rsi
je 0x14003b281
jmp 0x14003b279
cmp edi, dword [rbp - 0xc]
je 0x14003b290
mov r9d, 0x26
mov ebx, r9d
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
cmp rcx, rax
je 0x14003b279
test byte [rcx + 0x1c], 4
je 0x14003b279
cmp byte [rcx + 0x19], 2
jb 0x14003b279
mov edx, 0x143
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008cd68]
call fcn.140023570
mov rcx, rsi
call fcn.140069d30
test r14, r14
je 0x14003b2a8
mov rcx, r14
call fcn.140069d30
jmp 0x14003b2a8
mov rax, qword [rbp + 0x38]
mov qword [r12], r14
mov qword [rax], rsi
mov eax, dword [rbp - 0x10]
mov dword [r13], eax
mov rax, qword [rbp + 0x50]
mov dword [rax], edi
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret