Function at 0x140001aa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14002f198]
xor rax, rsp
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
xor edi, edi
mov qword [rbp - 0x60], rdi
mov rsi, rcx
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call fcn.14000aa50
lea r8, [0x14001f8b0]
mov rdx, rsi
lea rcx, [rbp - 0x60]
mov dword [rax], edi
call fcn.14000ace0
test eax, eax
jne 0x140001cd2
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140001cd2
xor edx, edx
lea r8d, [rdi + 2]
call fcn.14000b900
test eax, eax
je 0x140001b2c
lea rdx, str.Failed_to_get_file_size__s_:__s_n
jmp 0x140001d11
mov rcx, qword [rbp - 0x60]
call fcn.14000bec0
movsxd rbx, eax
test eax, eax
jns 0x140001b80
call fcn.14000aa50
mov edx, 0x40
lea rcx, [rbp - 0x50]
mov r8d, dword [rax]
call fcn.14000ecb0
test eax, eax
je 0x140001b74
mov r9d, 0x3f
lea r8, str.Unknown_error
lea rcx, [rbp - 0x50]
lea edx, [r9 + 1]
call fcn.14000ed40
mov byte [rbp - 0x11], dil
lea rdx, str.Failed_to_get_file_size__s_:__s_n
jmp 0x140001d11
cmp ebx, 0x800000
jle 0x140001ba3
mov rcx, qword [0x14002fc48]
lea rdx, str.Update_image_size___ld__too_large_n
mov r8d, ebx
call fcn.1400018b0
jmp 0x140001d24
mov rcx, qword [rbp - 0x60]
xor r8d, r8d
xor edx, edx
call fcn.14000b900
test eax, eax
je 0x140001bf9
call fcn.14000aa50
mov edx, 0x40
lea rcx, [rbp - 0x50]
mov r8d, dword [rax]
call fcn.14000ecb0
test eax, eax
je 0x140001bed
mov r9d, 0x3f
lea r8, str.Unknown_error
lea rcx, [rbp - 0x50]
lea edx, [r9 + 1]
call fcn.14000ed40
mov byte [rbp - 0x11], dil
lea rdx, str.Failed_to_reset_file_position__s_:__s_n
jmp 0x140001d11
mov rax, 0xffffffffffffffff
mov rcx, rbx
add rcx, 4
cmovb rcx, rax
call fcn.14000a970
mov rdi, rax
test rax, rax
jne 0x140001c67
call fcn.14000aa50
lea edx, [rdi + 0x40]
lea rcx, [rbp - 0x50]
mov r8d, dword [rax]
call fcn.14000ecb0
test eax, eax
je 0x140001c4b
lea r9d, [rdi + 0x3f]
lea r8, str.Unknown_error
lea edx, [rdi + 0x40]
lea rcx, [rbp - 0x50]
call fcn.14000ed40
mov byte [rbp - 0x11], dil
mov rcx, qword [0x14002fc48]
lea r8, [rbp - 0x50]
lea rdx, str.Failed_to_allocate_memory__s_n
call fcn.1400018b0
jmp 0x140001d24
mov r9, qword [rbp - 0x60]
lea rcx, [rax + 4]
mov r8, rbx
mov edx, 1
call fcn.14000b5c0
cmp rax, rbx
je 0x140001cc2
call fcn.14000aa50
mov edx, 0x40
lea rcx, [rbp - 0x50]
mov r8d, dword [rax]
call fcn.14000ecb0
test eax, eax
je 0x140001cb9
mov r9d, 0x3f
lea r8, str.Unknown_error
lea rcx, [rbp - 0x50]
lea edx, [r9 + 1]
call fcn.14000ed40
mov byte [rbp - 0x11], 0
lea rdx, str.Failed_to_read_file__s_:__s_n
jmp 0x140001d11
mov dword [rdi], ebx
mov rcx, qword [rbp - 0x60]
call fcn.14000aed0
mov rax, rdi
jmp 0x140001d3c
call fcn.14000aa50
mov edx, 0x40
lea rcx, [rbp - 0x50]
mov r8d, dword [rax]
call fcn.14000ecb0
test eax, eax
je 0x140001d0a
mov r9d, 0x3f
lea r8, str.Unknown_error
lea rcx, [rbp - 0x50]
lea edx, [r9 + 1]
call fcn.14000ed40
mov byte [rbp - 0x11], dil
lea rdx, str.Failed_to_open_file__s_:__s_n
mov rcx, qword [0x14002fc48]
lea r9, [rbp - 0x50]
mov r8, rsi
call fcn.1400018b0
mov rcx, rdi
call fcn.14000a950
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140001d3a
call fcn.14000aed0
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400067e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret