Function at 0x14001a9c0
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 0x14001a9e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14001a9f1
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 0x14001aa14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001aa16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001aa52
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 0x14001aaee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001aa8d
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 0x14001aace
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 0x14001aaee
cmp rbx, rax
ja 0x14001aaa0
test rbx, rbx
je 0x14001aaee
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
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
mov qword [rsp + 0x68], rax
lea rcx, [0x140092cb8]
call 0x140025410
mov rcx, qword [rsp + 0x68]
and al, 0x68
cmp rcx, rax
jae 0x140040b9f
movsxd rax, dword [rsp + 0x34]
mov rdx, rax
lea rcx, [0x140092cb8]
call 0x14003d260
mov rax, qword [rax]
cmp dword [rax + 0x20], 0
jne 0x1400409de
mov byte [0x140090f58], 0
mov dword [rsp + 0x30], 0
jmp 0x14004087c
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
cmp rax, 9
jae 0x1400409d9
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x2c
mov qword [rsp + 0x88], rax
lea rcx, [0x14008e9f0]
mov qword [rsp + 0x58], rcx
and al, 0x58
movsxd rdx, dword [rsp + 0x34]
lea rcx, [0x140092cb8]
call 0x14003d260
mov rax, qword [rax]
mov rax, qword [rax + 4]
inc rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rdx + rcx]
mov rcx, rax
call 0x14004dec0
test eax, eax
jne 0x1400409d4
movsxd rax, dword [rsp + 0x34]
mov rdx, rax
lea rcx, [0x140092cb8]
call 0x14003d260
mov rax, qword [rax]
cmp dword [rax + 0xc], 0
je 0x140040974
movsxd rax, dword [rsp + 0x34]
mov rdx, rax
lea rcx, [0x140092cb8]
call 0x14003d260
mov rax, qword [rax]
movsxd rcx, dword [rsp + 0x30]
imul rcx, rcx, 0x2c
lea rdx, [0x14008e9f0]
movsxd r8, dword [rsp + 0x30]
imul r8, r8, 0x2c
lea r9, [0x14008e9f0]
add r9, r8
mov r8, r9
mov qword [rsp + 0x78], r8
and al, 0x78
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov r9, qword [rax + 0x10]
xor r8d, r8d
mov edx, dword [rdx + rcx + 8]
mov rax, qword [rsp + 0x78]
mov rcx, rax
call 0x1400265b0
mov dword [rsp + 0x38], eax
jmp 0x1400409c2
invalid
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x2c
lea rcx, [0x14008e9f0]
movsxd rdx, dword [rsp + 0x30]
imul rdx, rdx, 0x2c
lea r8, [0x14008e9f0]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x98], rdx
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, dword [rcx + rax + 8]
mov rax, qword [rsp + 0x98]
mov rcx, rax
call 0x140025bc0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400409d2
mov eax, dword [rsp + 0x38]
jmp 0x140040c3c
jmp 0x1400409d9
jmp 0x140040872
jmp 0x140040b9a
mov byte [0x140090f58], 1
mov dword [rsp + 0x30], 0
jmp 0x1400409f9
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
cmp rax, 0xa
jae 0x140040b9a
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x2c
mov qword [rsp + 0x70], rax
lea rcx, [0x14008eb80]
mov qword [rsp + 0x60], rcx
and al, 0x60
movsxd rdx, dword [rsp + 0x34]
lea rcx, [0x140092cb8]
call 0x14003d260
mov rax, qword [rax]
mov rax, qword [rax + 4]
inc rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rdx + rcx]
mov rcx, rax
call 0x14004dec0
test eax, eax
jne 0x140040b95
movsxd rax, dword [rsp + 0x34]
mov rdx, rax
lea rcx, [0x140092cb8]
call 0x14003d260
mov rax, qword [rax]
cmp dword [rax + 0xc], 0
je 0x140040b15
movsxd rax, dword [rsp + 0x34]
mov rdx, rax
lea rcx, [0x140092cb8]
call 0x14003d260
mov rax, qword [rax]
mov rcx, qword [rax + 0x24]
call 0x140027fb0
movsxd rax, dword [rsp + 0x34]
mov rdx, rax
lea rcx, [0x140092cb8]
call 0x14003d260
mov rax, qword [rax]
movsxd rcx, dword [rsp + 0x30]
imul rcx, rcx, 0x2c
lea rdx, [0x14008eb80]
movsxd r8, dword [rsp + 0x30]
imul r8, r8, 0x2c
lea r9, [0x14008eb80]
add r9, r8
mov r8, r9
mov qword [rsp + 0x80], r8
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov r9, qword [rax + 0x10]
xor r8d, r8d
mov edx, dword [rdx + rcx + 8]
mov rax, qword [rsp + 0x80]
mov rcx, rax
call 0x1400265b0
mov dword [rsp + 0x38], eax
jmp 0x140040b83
outsb dx, byte [rsi]
movsxd rax, dword [rsp + 0x34]
mov rdx, rax
lea rcx, [0x140092cb8]
call 0x14003d260
mov rax, qword [rax]
mov rcx, qword [rax + 0x24]
call 0x140027fb0
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x2c
lea rcx, [0x14008eb80]
movsxd rdx, dword [rsp + 0x30]
imul rdx, rdx, 0x2c
lea r8, [0x14008eb80]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x90], rdx
lea r9, [rsp + 0x40]
and al, 0x40
xor r8d, r8d
mov edx, dword [rcx + rax + 8]
mov rax, qword [rsp + 0x90]
mov rcx, rax
call 0x140025bc0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
cmp byte [rax], al
je 0x140040b93
mov eax, dword [rsp + 0x38]
jmp 0x140040c3c
jmp 0x140040b9a
jmp 0x1400409ef
jmp 0x140040812
mov rcx, qword [rsp + 0x48]
call 0x1400277c0
mov ecx, 1
call 0x1400257e0
call 0x14004e040
mov ecx, 0x30
imul rcx, rcx, 1
add rax, rcx
mov rcx, rax
enter 0x5ce8, 0xffffffffffffffd6
add byte [rax], al