Function at 0x14009e5e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
cmp qword [rsp + 0xc0], 0
jg 0x14009e60a
xor eax, eax
jmp 0x14009e8e2
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14009e63c
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14009e8e2
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x38]
cmp qword [rax], 0
je 0x14009e67c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x50]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
jmp 0x14009e684
mov dword [rsp + 0x30], 0
movsxd rax, dword [rsp + 0x30]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x14009e7c6
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x40], rax
jae 0x14009e6b2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
jmp 0x14009e6bc
lea rax, [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
xor eax, eax
test eax, eax
je 0x14009e73d
mov qword [rsp + 0x38], 0
jmp 0x14009e705
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x38], rax
je 0x14009e73b
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
mov byte [rax], cl
jmp 0x14009e6f8
jmp 0x14009e751
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x50]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x50]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x38]
add rax, qword [rcx]
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x38]
mov qword [rcx], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x80], 0
je 0x14009e8d2
mov rcx, qword [rsp + 0xb0]
call fcn.14009fb50
mov qword [rsp + 0x80], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x14009e87f
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x48], 0xfff
je 0x14009e87a
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
jmp 0x14009e8e2
jmp 0x14009e7f5
cmp qword [rsp + 0x20], 0
jbe 0x14009e8d2
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
add rsp, 0x98
pop rdi
pop rsi
ret