Function at 0x140041db0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140041de1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140041df8
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140041e49
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x140041ec1
mov rcx, rbp
call fcn.140041190
cmp rbx, 0xfff
jbe 0x140041ea1
nop word [rax + rax]
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140041ee2
cmp rbx, rax
ja 0x140041e70
test rdi, rdi
je 0x140041ec1
mov r9, qword [rbp + 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 rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x140041ec4
mov rdx, qword [r15]
lea rbx, [rsp + 0x48]
add rbx, rdi
mov rcx, rbp
cmp byte [rdx], 0x1e
jne 0x140284c53
mov r9, rbx
xor r8d, r8d
call 0x140287770
mov r8d, eax
jmp 0x140284cca
call 0x140287670
mov r8d, eax
cmp eax, 0x7fff
jle 0x140284cc0
mov ecx, 5
mov r9d, ecx
nop word [rax + rax]
cmp r8d, dword [r14 + rcx*4]
jl 0x140284c82
inc r9d
inc rcx
cmp rcx, 0xa
jl 0x140284c70
mov r10d, dword [r14 + rcx*4 - 0x14]
cdq
idiv r10d
cmp eax, 0x7fff
jle 0x140284caa
mov edx, dword [r14 + rcx*4 - 0x10]
lea eax, [r9 - 4]
mov ecx, r8d
mov dword [rbx], eax
call 0x14025aa50
mov r8d, eax
jmp 0x140284cca
lea eax, [r9 - 5]
mov edx, r10d
mov ecx, r8d
mov dword [rbx], eax
call 0x14025aa50
mov r8d, eax
jmp 0x140284cca
mov dword [rbx], 0
shl r8d, 0x10
add r15, 8
mov dword [rsp + rdi + 0x30], r8d
test r8d, r8d
je 0x140284ceb
mov ecx, dword [rbx]
cmp ecx, esi
mov eax, ecx
cmovle eax, esi
mov esi, eax
cmp ecx, r13d
jge 0x140284ceb
mov r13d, ecx
add rdi, 4
sub r12, 1
jne 0x140284c30
mov r12, qword [rsp + 0x80]
lea eax, [rsi + 9]
cmp eax, 9
ja 0x140284f86
mov eax, esi
sub eax, r13d
cmp eax, 9
ja 0x140284f86
mov ebx, dword [rsp + 0x30]
test ebx, ebx
je 0x140284d69
mov eax, esi
sub eax, dword [rsp + 0x48]
movsxd rcx, eax
mov r8d, dword [r14 + rcx*4]
mov ecx, r8d
sar ecx, 1
test ebx, ebx
jns 0x140284d50
lea eax, [rcx - 0x80000000]
cmp eax, ebx
jge 0x140284d49
sub ebx, ecx
mov eax, ebx
jmp 0x140284d63
mov eax, 0x80000000
jmp 0x140284d63
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, ebx
lea eax, [rbx + rcx]
jg 0x140284d63
mov eax, 0x7fffffff
cdq
idiv r8d
mov ebx, eax
mov r11d, dword [rsp + 0x34]
pop rsp
and al, 0x34
test r11d, r11d
je 0x140284dc0
mov eax, esi
sub eax, dword [rsp + 0x4c]
movsxd rcx, eax
mov r8d, dword [r14 + rcx*4]
mov ecx, r8d
sar ecx, 1
test r11d, r11d
jns 0x140284da4
lea eax, [rcx - 0x80000000]
cmp eax, r11d
jge 0x140284d9d
sub r11d, ecx
mov eax, r11d
jmp 0x140284db9
mov eax, 0x80000000
jmp 0x140284db9
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, r11d
lea eax, [r11 + rcx]
jg 0x140284db9
mov eax, 0x7fffffff
cdq
idiv r8d
mov r11d, eax
mov r10d, dword [rsp + 0x38]
push rsp
and al, 0x38
test r10d, r10d
je 0x140284e17
mov eax, esi
sub eax, dword [rsp + 0x50]
movsxd rcx, eax
mov r8d, dword [r14 + rcx*4]
mov ecx, r8d
sar ecx, 1
test r10d, r10d
jns 0x140284dfb
lea eax, [rcx - 0x80000000]
cmp eax, r10d
jge 0x140284df4
sub r10d, ecx
mov eax, r10d
jmp 0x140284e10
mov eax, 0x80000000
jmp 0x140284e10
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, r10d
lea eax, [r10 + rcx]
jg 0x140284e10
mov eax, 0x7fffffff
cdq
idiv r8d
mov r10d, eax
mov r9d, dword [rsp + 0x3c]
test r9d, r9d
je 0x140284e6e
mov eax, esi
sub eax, dword [rsp + 0x54]
movsxd rcx, eax
mov r8d, dword [r14 + rcx*4]
mov ecx, r8d
sar ecx, 1
test r9d, r9d
jns 0x140284e52
lea eax, [rcx - 0x80000000]
cmp eax, r9d
jge 0x140284e4b
sub r9d, ecx
mov eax, r9d
jmp 0x140284e67
mov eax, 0x80000000
jmp 0x140284e67
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, r9d
lea eax, [r9 + rcx]
jg 0x140284e67
mov eax, 0x7fffffff
cdq
idiv r8d
mov r9d, eax
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140284ec3
mov eax, esi
sub eax, dword [rsp + 0x58]
movsxd rcx, eax
mov edi, dword [r14 + rcx*4]
mov ecx, edi
sar ecx, 1
test r8d, r8d
jns 0x140284ea8
lea eax, [rcx - 0x80000000]
cmp eax, r8d
jge 0x140284ea1
sub r8d, ecx
mov eax, r8d
jmp 0x140284ebd
mov eax, 0x80000000
jmp 0x140284ebd
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, r8d
lea eax, [r8 + rcx]
jg 0x140284ebd
mov eax, 0x7fffffff
cdq
idiv edi
mov r8d, eax
invalid
mov edx, dword [rsp + 0x44]
test edx, edx
je 0x140284f0f
mov eax, esi
sub eax, dword [rsp + 0x5c]
movsxd rcx, eax
mov edi, dword [r14 + rcx*4]
mov ecx, edi
sar ecx, 1
test edx, edx
jns 0x140284ef7
lea eax, [rcx - 0x80000000]
cmp eax, edx
jge 0x140284ef0
sub edx, ecx
mov eax, edx
jmp 0x140284f0a
mov eax, 0x80000000
jmp 0x140284f0a
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, edx
lea eax, [rdx + rcx]
jg 0x140284f0a
mov eax, 0x7fffffff
cdq
idiv edi
mov edx, eax
mov rdi, qword [rsp + 0x28]
jl 0x140284f37
sub byte [rax + 0x63], cl
invalid
mov rcx, rdi
shl rax, 2
sub r14, rax
mov dword [rdi], ebx
mov rbx, qword [rsp + 0x20]
mov dword [rdi + 8], r11d
mov eax, dword [r14]
mov dword [rdi + 4], r10d
mov dword [rdi + 0xc], r9d
mov dword [rbx + 0x48], r8d
mov dword [rbx + 0x4c], edx
mov dword [rbx + 0x44], eax
call 0x14025ca10
test al, al
je 0x140284f90
xor eax, eax
mov r13, qword [rsp + 0x78]
mov rdi, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call 0x1402c4370
add rsp, 0x88
pop r15
pop rbp
ret
mov rbx, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
xor eax, eax
mov qword [rdi], 0x10000
mov dword [rdi + 8], eax
mov dword [rdi + 0xc], 0x10000
mov qword [rbx + 0x48], rax
mov dword [rbx + 0x44], 1
jmp 0x140284f4c