Function at 0x1400ba360
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
jle 0x1400ba3a5
mov r14, r8
mov r12, rdx
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je case.default.0x1400ba39e
mov rcx, rdi
mov rdx, r12
mov r8, r14
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 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]
xor r14d, r14d
jmp 0x1400ba644
mov eax, dword [0x1406ce4b0]
mov ecx, dword [0x1406ce4b4]
mov rdx, qword [rdi + 0x38]
mov rdx, qword [rdx]
test rdx, rdx
je 0x1400ba40d
mov rbx, qword [rdi + 0x50]
movsxd rsi, dword [rbx]
test rsi, rsi
je 0x1400ba40d
cmp rsi, r14
cmovae rsi, r14
mov rcx, r12
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, rsi
shl r8, 0x20
cmp dword [0x1406ce4b4], 0xa
jl 0x1400ba422
mov eax, dword [0x1406ce4b0]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x1400ba422
mov rdx, r8
sar rdx, 0x20
jmp 0x1400ba415
mov rbp, r14
mov r15, r12
jmp 0x1400ba45c
mov rax, qword [rdi + 0x50]
sub dword [rax], esi
mov rax, qword [rdi + 0x38]
add qword [rax], rdx
lea r15, [r12 + rsi]
mov rbp, r14
mov rax, qword [rdi + 0x50]
sub dword [rax], esi
mov rax, qword [rdi + 0x38]
mov rdx, r8
sar rdx, 0x20
add qword [rax], rdx
sub rbp, rsi
mov eax, dword [0x1406ce4b0]
mov ecx, dword [0x1406ce4b4]
cmp ecx, 0xa
jl 0x1400ba45c
lea ebx, [rax - 1]
imul ebx, eax
and ebx, 1
jne 0x1400ba415
cmp qword [rdi + 0x80], 0
je 0x1400ba641
cmp ecx, 0xa
jl 0x1400ba47a
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x1400ba4ad
mov rdx, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [rdx], rax
je 0x1400ba514
cmp dword [0x1406ce4b4], 0xa
jl 0x1400ba57c
mov eax, dword [0x1406ce4b0]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x1400ba57c
mov rdx, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [rdx], rax
jne 0x1400ba47a
mov eax, dword [rdi + 0x90]
mov rcx, qword [rdi + 0x88]
sub eax, ecx
nop dword [rax]
mov qword [rdx], rcx
mov rdx, qword [rdi + 0x38]
mov qword [rdx], rcx
mov rdx, qword [rdi + 0x50]
mov dword [rdx], eax
cmp dword [0x1406ce034], 0xa
jl 0x1400ba47a
mov edx, dword [0x1406ce030]
lea ebx, [rdx - 1]
imul ebx, edx
and ebx, 1
je 0x1400ba47a
mov rdx, qword [rdi + 0x18]
mov qword [rdx], rcx
mov rdx, qword [rdi + 0x38]
mov qword [rdx], rcx
mov rdx, qword [rdi + 0x50]
mov dword [rdx], eax
mov rdx, qword [rdi + 0x18]
jmp 0x1400ba4d0
mov eax, dword [rdi + 0x90]
mov rcx, qword [rdi + 0x88]
sub eax, ecx
nop word cs:[rax + rax]
nop dword [rax]
mov qword [rdx], rcx
mov rdx, qword [rdi + 0x38]
mov qword [rdx], rcx
mov rdx, qword [rdi + 0x50]
mov dword [rdx], eax
cmp dword [0x1406ce034], 0xa
jl 0x1400ba48b
mov edx, dword [0x1406ce030]
lea ebx, [rdx - 1]
imul ebx, edx
and ebx, 1
je 0x1400ba48b
mov rdx, qword [rdi + 0x18]
mov qword [rdx], rcx
mov rdx, qword [rdi + 0x38]
mov qword [rdx], rcx
mov rdx, qword [rdi + 0x50]
mov dword [rdx], eax
mov rdx, qword [rdi + 0x18]
jmp 0x1400ba530
cmp rbp, 0x1000
jb 0x1400ba615
movabs r12, 0xe3159ecb414a680d
mov r13, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movabs rsi, 0x1cea6134beb597f3
nop word cs:[rax + rax]
nop
mov r9, qword [rdi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r15
call r13
add r15, rax
add rbp, r12
mov rcx, rbp
sub rcx, rax
lea rbp, [rcx + rsi]
mov edx, dword [0x1406ce4b0]
lea ebx, [rdx - 1]
imul ebx, edx
test bl, 1
sete bl
cmp dword [0x1406ce4b4], 0xa
setl dl
or dl, bl
nop word cs:[rax + rax]
test dl, dl
je 0x1400ba600
cmp rax, 0xfff
jne 0x1400ba637
cmp rbp, 0x1000
jae 0x1400ba5b0
test rbp, rbp
je 0x1400ba63f
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r15
mov r8, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbp, rax
jmp 0x1400ba641
add r14, r12
sub r14, rcx
jmp 0x1400ba644
xor ebp, ebp
sub r14, rbp
mov rax, r14
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
iretd