Function at 0x14005d280
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0xf0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xb8], rbx
mov qword [rbp], rcx
mov qword [rbp + 8], rdx
mov qword [rbp + 0x10], r8
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0xe8], rdx
mov qword [rbp + 0xf0], r8
mov eax, 0
cmp eax, 1
je 0x14005d5ca
mov rax, qword [rbp + 0xf0]
test rax, rax
jg 0x14005d2f2
mov eax, 0
mov rbx, qword [rbp + 0xb8]
mov rsi, qword [rbp + 0xc0]
lea rsp, [rbp + 0xd0]
pop rbp
ret
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x68]
test rax, rax
je 0x14005d353
mov rax, qword [rbp + 0xe0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xf0]
mov rbx, 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 [rbp + 0x90], rcx
mov rcx, rax
mov rax, qword [rbp + 0x90]
mov r8, rax
call rbx
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov rbx, qword [rbp + 0xb8]
mov rsi, qword [rbp + 0xc0]
lea rsp, [rbp + 0xd0]
pop rbp
ret
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0xe0]
mov rdx, qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov rcx, rax
call rdx
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
test rax, rax
jbe 0x14005d460
lea rax, [rbp + 0x20]
lea rdx, [rbp + 0x38]
mov rcx, rax
call fcn.140057a38
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x20]
cmp rax, rdx
jb 0x14005d3c0
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x48], rax
jmp 0x14005d3c8
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0xe0]
mov rdx, qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov rcx, rax
call rdx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0xe8]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x98], rcx
mov rcx, rax
mov rax, qword [rbp + 0x98]
mov r8, rax
call fcn.1400521f8
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x60]
add rax, qword [rbp + 0xe8]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0x60]
neg rax
add rax, qword [rbp + 0x20]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0xe0]
mov edx, dword [rbp + 0x60]
mov rcx, qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov qword [rbp + 0xa0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xa0]
call rax
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax + 0x80]
test rax, rax
je 0x14005d5a8
mov rax, qword [rbp + 0xe0]
mov rcx, rax
call fcn.14005e24c
mov qword [rbp + 0x50], 0xfff
mov rax, qword [rbp + 0x20]
cmp rax, 0xfff
jbe 0x14005d548
mov rax, qword [rbp + 0xe8]
mov edx, 1
mov ecx, 0xfff
mov rbx, qword [rbp + 0xe0]
mov rbx, qword [rbx + 0x80]
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rbp + 0xa8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xa8]
mov r8, rax
mov r9, rbx
call rsi
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
add rax, qword [rbp + 0xe8]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0x80]
neg rax
add rax, qword [rbp + 0x20]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x80]
cmp rax, 0xfff
je 0x14005d48e
mov rax, qword [rbp + 0x20]
neg rax
add rax, qword [rbp + 0x28]
mov rbx, qword [rbp + 0xb8]
mov rsi, qword [rbp + 0xc0]
lea rsp, [rbp + 0xd0]
pop rbp
ret
mov rax, qword [rbp + 0x20]
test rax, rax
jbe 0x14005d5a8
mov rax, qword [rbp + 0xe8]
mov edx, 1
mov rcx, qword [rbp + 0x20]
mov rbx, qword [rbp + 0xe0]
mov rbx, qword [rbx + 0x80]
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rbp + 0xb0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xb0]
mov r8, rax
mov r9, rbx
call rsi
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
neg rax
add rax, qword [rbp + 0x20]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x20]
neg rax
add rax, qword [rbp + 0x28]
mov rbx, qword [rbp + 0xb8]
mov rsi, qword [rbp + 0xc0]
lea rsp, [rbp + 0xd0]
pop rbp
ret
mov rbx, qword [rbp + 0xb8]
mov rsi, qword [rbp + 0xc0]
lea rsp, [rbp + 0xd0]
pop rbp
ret