Function at 0x1400ac710
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
mov rax, qword [rbx + 0x28]
mov rbp, qword [rbx + 0x40]
mov rdx, qword [rbx + 0x80]
mov r9, qword [rax + rcx*8]
mov eax, dword [rbx + 0x34]
inc eax
movsxd rcx, eax
mov r8, qword [r9 + 8]
add rcx, r8
cmp rbp, rcx
ja 0x1400acac7
cmp dword [r9 + 0x34], 0
mov qword [rsp + 0x48], rdi
jne 0x1400ac771
xor edi, edi
sub rbp, rdx
cmp rbp, 1
setne dil
lea eax, [rdi + 1]
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
pop rbp
pop rbx
ret
sub ebp, edx
dec ebp
test ebp, ebp
jle 0x1400ac794
mov ecx, ebp
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [r8], al
lea r8, [r8 + 1]
sub rcx, 1
jne 0x1400ac780
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rbx + 0x28]
mov r8, qword [rdx + rcx*8]
lea rax, [rdx + rcx*8]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
cmp dword [r8 + 0x38], 2
mov qword [rsp + 0x20], r15
jne 0x1400ac7d3
xor edi, edi
lea r14, [rbx + 8]
mov dword [rbx + 0x34], edi
mov rax, qword [rax]
mov dword [rax + 0x1c], edi
jmp 0x1400ac8f3
mov eax, dword [r8 + 0x18]
sub eax, ebp
dec eax
test eax, eax
jg 0x1400ac84c
nop
mov rsi, qword [rdx + rcx*8]
mov edi, dword [rbx + 0x40]
sub edi, dword [rsi + 8]
cmp dword [rsi + 0x20], 0
je 0x1400acaf3
mov ecx, dword [rsi + 0x18]
lea eax, [rcx + rcx]
test eax, eax
jg 0x1400ac80b
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, ecx
mov dword [rsi + 0x18], eax
add eax, 2
mov rcx, qword [rsi + 8]
movsxd rdx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rsi + 8], rax
test rax, rax
je 0x1400acaf9
mov rdx, qword [rbx + 0x28]
movsxd rcx, edi
add rcx, rax
mov qword [rbx + 0x40], rcx
mov rcx, qword [rbx + 0x18]
mov rax, qword [rdx + rcx*8]
mov eax, dword [rax + 0x18]
sub eax, ebp
dec eax
test eax, eax
jle 0x1400ac7e0
mov r8d, 0x2000
cmp eax, r8d
cmovg eax, r8d
movsxd r15, eax
mov rax, qword [rdx + rcx*8]
cmp dword [rax + 0x24], 0
je 0x1400ac936
xor edi, edi
mov esi, edi
test r15, r15
jle 0x1400ac8da
movsxd r12, ebp
mov r14d, edi
nop dword [rax]
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov r9d, eax
cmp eax, 0xffffffff
je 0x1400ac8b8
cmp eax, 0xa
je 0x1400ac8be
mov rdx, qword [rbx + 0x18]
inc esi
mov rcx, qword [rbx + 0x28]
mov rdx, qword [rcx + rdx*8]
mov rdx, qword [rdx + 8]
add rdx, r12
mov byte [rdx + r14], r9b
inc r14
cmp r14, r15
jl 0x1400ac880
cmp r9d, 0xa
jne 0x1400ac918
mov rax, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
movsxd r8, ebp
mov rdx, qword [rax + rcx*8]
movsxd rax, esi
add rax, qword [rdx + 8]
inc esi
mov byte [rax + r8], r9b
lea r14, [rbx + 8]
mov dword [rbx + 0x34], esi
mov rax, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
mov rdx, qword [rax + rcx*8]
mov eax, dword [rbx + 0x34]
mov dword [rdx + 0x1c], eax
cmp dword [rbx + 0x34], 0
jne 0x1400aca00
test ebp, ebp
jne 0x1400ac9ec
mov rcx, qword [r14]
lea edi, [rbp + 1]
mov rdx, rbx
call fcn.1400adee0
jmp 0x1400aca00
cmp r9d, 0xffffffff
jne 0x1400ac8da
mov rcx, qword [rbx + 8]
lea r14, [rbx + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x1400acb25
jmp 0x1400ac8de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor edi, edi
movsxd r12, ebp
mov r8, r15
mov dword [rax], edi
mov rcx, qword [rbx + 0x18]
lea edx, [rdi + 1]
mov rax, qword [rbx + 0x28]
mov r9, qword [rbx + 8]
mov rcx, qword [rax + rcx*8]
mov rcx, qword [rcx + 8]
add rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [rbx + 0x34], eax
lea r14, [rbx + 8]
test eax, eax
jne 0x1400ac8e1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea r14, [rbx + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x1400ac8e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x1400acb51
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], edi
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
mov rcx, qword [rbx + 0x18]
mov r8, r15
mov rax, qword [rbx + 0x28]
mov edx, 1
mov r9, qword [rbx + 8]
mov rcx, qword [rax + rcx*8]
mov rcx, qword [rcx + 8]
add rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [rbx + 0x34], eax
test eax, eax
je 0x1400ac980
lea r14, [rbx + 8]
jmp 0x1400ac8e1
mov rcx, qword [rbx + 0x18]
mov edi, 2
mov rax, qword [rbx + 0x28]
mov rcx, qword [rax + rcx*8]
mov dword [rcx + 0x38], edi
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x28]
mov r8, qword [rax + rcx*8]
mov ecx, dword [rbx + 0x34]
lea eax, [rcx + rbp]
cmp eax, dword [r8 + 0x18]
jle 0x1400aca5a
mov esi, ecx
sar esi, 1
add esi, ecx
mov rcx, qword [r8 + 8]
add esi, ebp
movsxd rdx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rcx, qword [rbx + 0x28]
mov rdx, qword [rbx + 0x18]
mov rdx, qword [rcx + rdx*8]
mov qword [rdx + 8], rax
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x28]
mov rdx, qword [rax + rcx*8]
cmp qword [rdx + 8], 0
je 0x1400acb7d
lea eax, [rsi - 2]
mov dword [rdx + 0x18], eax
add dword [rbx + 0x34], ebp
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x28]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rax, qword [rax + rcx*8]
movsxd rcx, dword [rbx + 0x34]
mov r15, qword [rsp + 0x20]
mov rax, qword [rax + 8]
mov byte [rcx + rax], 0
mov rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x28]
mov rax, qword [rax + rcx*8]
movsxd rcx, dword [rbx + 0x34]
mov rax, qword [rax + 8]
mov byte [rax + rcx + 1], 0
mov rax, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx + 8]
mov qword [rbx + 0x80], rax
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x28
pop rbp
pop rbx
ret
mov rcx, rbx
call fcn.1400ad480
lea rcx, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
mov qword [rax + 0x100], rcx
mov rcx, rbx
call fcn.1400ad480
mov rcx, rax
mov edx, 1
call sub.VCRUNTIME140.dll_longjmp
int3
xor edi, edi
mov qword [rsi + 8], rdi
mov rcx, rbx
call fcn.1400ad480
lea rcx, str.fatal_error___scanner_input_buffer_overflow
mov qword [rax + 0x100], rcx
mov rcx, rbx
call fcn.1400ad480
mov rcx, rax
mov edx, 1
call sub.VCRUNTIME140.dll_longjmp
int3
mov rcx, rbx
call fcn.1400ad480
lea rcx, str.input_in_flex_scanner_failed
mov qword [rax + 0x100], rcx
mov rcx, rbx
call fcn.1400ad480
mov rcx, rax
mov edx, 1
call sub.VCRUNTIME140.dll_longjmp
int3
mov rcx, rbx
call fcn.1400ad480
lea rcx, str.input_in_flex_scanner_failed
mov qword [rax + 0x100], rcx
mov rcx, rbx
call fcn.1400ad480
mov rcx, rax
mov edx, 1
call sub.VCRUNTIME140.dll_longjmp
int3
mov rcx, rbx
call fcn.1400ad480
lea rcx, str.out_of_dynamic_memory_in_yy_get_next_buffer__
mov qword [rax + 0x100], rcx
mov rcx, rbx
call fcn.1400ad480
mov rcx, rax
mov edx, 1
call sub.VCRUNTIME140.dll_longjmp
int3