Function at 0x1400182b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400182d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400182e1
add rsp, 0x30
pop r14
pop rsi
pop rbp
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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140018304
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140018306
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140018342
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400183de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001837d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400183be
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400183de
cmp rbx, rax
ja 0x140018390
test rbx, rbx
je 0x1400183de
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp r13d, r10d
ja 0x14013064c
mov edx, dword [rsi + r13*4 + 4]
jmp 0x14013064e
mov edx, ebp
mov dword [rsp + 0x278], edx
lea eax, [r13 - 1]
mov ecx, dword [rsi + rax*4 + 4]
lea eax, [r13 - 2]
mov r11d, dword [rsi + rax*4 + 4]
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x24], edx
test ebx, ebx
je 0x1401306a6
mov rcx, qword [rsp + 0x38]
and al, 0x38
mov r8d, r11d
mov rax, qword [rsp + 0x20]
shr r8, cl
mov ecx, ebx
shl rax, cl
or r8, rax
shl r11d, cl
cmp r13d, 3
jb 0x1401306ab
lea eax, [r13 - 3]
mov ecx, r14d
mov eax, dword [rsi + rax*4 + 4]
shr eax, cl
or r11d, eax
jmp 0x1401306ab
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor edx, edx
mov rax, r8
div rcx
xor edx, edx
mov r9, rax
mov rax, r8
div rcx
mov r8d, edx
cmp r9, r15
jbe 0x1401306e2
movabs rax, 0xffffffff00000001
add rax, r9
mov r9, r15
imul rax, rcx
add r8, rax
cmp r8, r15
ja 0x140130725
mov edx, dword [rsp + 0x270]
mov r14, rcx
mov eax, edx
imul rax, r9
nop word [rax + rax]
mov rcx, r8
shl rcx, 0x20
or rcx, r11
cmp rax, rcx
jbe 0x14013071d
dec r9
sub rax, rdx
add r8, r14
cmp r8, r15
jbe 0x140130700
mov r14d, dword [rsp + 0x260]
test r9, r9
je 0x1401307f0
mov r10, rbp
mov r11d, ebp
test edi, edi
je 0x14013079c
mov r14, qword [rsp + 0x268]
mov r15d, dword [rsp + 0x260]
add r14, 4
nop dword [rax]
mov eax, dword [r14]
lea r14, [r14 + 4]
imul rax, r9
add r10, rax
lea eax, [r11 + r12]
mov r8d, r10d
mov ecx, eax
shr r10, 0x20
mov eax, dword [rsi + rax*4 + 4]
mov rdx, r10
inc r10
cmp eax, r8d
cmovae r10, rdx
sub eax, r8d
inc r11d
mov dword [rsi + rcx*4 + 4], eax
cmp r11d, edi
jb 0x140130750
mov r14d, r15d
mov dword [rsp + 0x260], r15d
mov r15d, 0xffffffff
mov r11, qword [rsp + 0x268]
mov eax, dword [rsp + 0x278]
add r11, 4
cmp rax, r10
jae 0x1401307ec
mov r10d, ebp
test edi, edi
je 0x1401307e9
mov r8, rbp
nop
lea eax, [r10 + r12]
inc r10d
mov ecx, dword [rsi + rax*4 + 4]
lea rdx, [rsi + rax*4]
mov eax, dword [r11]
lea r11, [r11 + 4]
add r8, rax
add r8, rcx
mov dword [rdx + 4], r8d
shr r8, 0x20
cmp r10d, edi
jb 0x1401307c0
dec r9
lea r10d, [r13 - 1]
push rbp
dec dword [rbx + rcx*4 + 0x5c]
and al, 0x30
mov r11, qword [rsp + 0x30]
dec r13d
shl r11, 0x20
mov eax, r9d
add r11, rax
sub r12d, 1
mov qword [rsp + 0x30], r11
jns 0x140130640
mov r13, qword [rsp + 0x218]
inc r10d
mov ecx, r10d
cmp r10d, dword [rsi]
jae 0x140130830