Function at 0x140024f30
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r8, qword [0x1400d3ae8]
mov r9, qword [0x1400d3ad8]
mov eax, dword [0x1400d3af0]
mov rbx, qword [0x1400d3af8]
inc eax
mov rdx, qword [0x1400d49d0]
mov r11, qword [r8 + r9*8]
movsxd rcx, eax
mov r10, qword [r11 + 8]
add rcx, r10
cmp rbx, rcx
ja 0x140025338
cmp dword [r11 + 0x34], 0
mov qword [rsp + 0x48], rsi
jne 0x140024f98
xor esi, esi
sub rbx, rdx
cmp rbx, 1
setne sil
lea eax, [rsi + 1]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x40], rbp
mov ebp, ebx
sub ebp, edx
mov qword [rsp + 0x58], r12
dec ebp
test ebp, ebp
jle 0x140024fc4
mov ecx, ebp
nop
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [r10], al
lea r10, [r10 + 1]
sub rcx, 1
jne 0x140024fb0
mov rax, qword [r8 + r9*8]
mov r12d, 1
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
cmp dword [rax + 0x38], 2
jne 0x140024ff6
xor esi, esi
mov r10d, esi
mov dword [0x1400d3af0], esi
mov dword [rax + 0x1c], esi
jmp 0x14002524a
mov eax, dword [rax + 0x18]
sub eax, ebp
dec eax
test eax, eax
jg 0x140025072
mov rdi, qword [r8 + r9*8]
sub ebx, dword [rdi + 8]
cmp dword [rdi + 0x20], 0
je 0x140025345
mov ecx, dword [rdi + 0x18]
lea eax, [rcx + rcx]
test eax, eax
jg 0x140025029
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, ecx
mov dword [rdi + 0x18], eax
add eax, 2
mov rcx, qword [rdi + 8]
movsxd rdx, eax
call fcn.14000154b
mov qword [rdi + 8], rax
test rax, rax
je 0x14002534b
mov r8, qword [0x1400d3ae8]
mov r9, qword [0x1400d3ad8]
movsxd rbx, ebx
add rbx, rax
mov qword [0x1400d3af8], rbx
mov rax, qword [r8 + r9*8]
mov eax, dword [rax + 0x18]
sub eax, ebp
dec eax
test eax, eax
jle 0x140025001
mov ecx, 0x2000
cmp eax, ecx
cmovg eax, ecx
movsxd r14, eax
mov rax, qword [r8 + r9*8]
cmp dword [rax + 0x24], 0
je 0x140025149
xor esi, esi
mov ebx, esi
lea r10d, [rsi + 0x2a]
test r14, r14
jle 0x1400250f0
movsxd r15, ebp
mov edi, esi
nop
mov rcx, qword [0x1400d3ac0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov r10d, eax
cmp eax, 0xffffffff
je 0x1400250e2
cmp eax, 0xa
je 0x1400250e2
mov r8, qword [0x1400d3ae8]
inc ebx
mov r9, qword [0x1400d3ad8]
mov rcx, qword [r8 + r9*8]
mov rcx, qword [rcx + 8]
add rcx, r15
mov byte [rcx + rdi], al
inc rdi
cmp rdi, r14
jl 0x1400250a0
jmp 0x1400250f0
mov r8, qword [0x1400d3ae8]
mov r9, qword [0x1400d3ad8]
movsxd r15, ebp
cmp r10d, 0xa
jne 0x140025115
mov rax, qword [r8 + r9*8]
movsxd rcx, ebx
add rcx, qword [rax + 8]
inc ebx
mov dword [0x1400d3af0], ebx
mov byte [rcx + r15], r10b
jmp 0x140025215
cmp r10d, 0xffffffff
jne 0x14002513e
mov rcx, qword [0x1400d3ac0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x140025358
mov r8, qword [0x1400d3ae8]
mov r9, qword [0x1400d3ad8]
mov dword [0x1400d3af0], ebx
jmp 0x140025215
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [0x1400d3ae8]
xor esi, esi
movsxd rdi, ebp
mov r8, r14
mov rdx, r12
mov dword [rax], esi
mov rax, qword [0x1400d3ad8]
mov r9, qword [0x1400d3ac0]
mov rcx, qword [rcx + rax*8]
mov rcx, qword [rcx + 8]
add rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [0x1400d3af0], eax
mov rbx, rax
mov r15, rdi
test eax, eax
jne 0x140025207
mov rcx, qword [0x1400d3ac0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x140025201
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x140025358
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], esi
mov rcx, qword [0x1400d3ac0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
mov rcx, qword [0x1400d3ae8]
mov r8, r14
mov rax, qword [0x1400d3ad8]
mov rdx, r12
mov r9, qword [0x1400d3ac0]
mov rcx, qword [rcx + rax*8]
mov rcx, qword [rcx + 8]
add rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [0x1400d3af0], eax
mov ebx, eax
test eax, eax
je 0x140025192
jmp 0x140025207
mov ebx, dword [0x1400d3af0]
mov r8, qword [0x1400d3ae8]
mov r9, qword [0x1400d3ad8]
mov rax, qword [r8 + r9*8]
movsxd rdx, ebx
mov rcx, qword [rax + 8]
add rcx, r15
call fcn.140001979
mov r10d, dword [0x1400d3af0]
mov r8, qword [0x1400d3ae8]
mov r9, qword [0x1400d3ad8]
mov rax, qword [r8 + r9*8]
mov dword [rax + 0x1c], r10d
test r10d, r10d
jne 0x140025281
test ebp, ebp
jne 0x140025271
mov rcx, qword [0x1400d3ac0]
call fcn.140001640
mov r8, qword [0x1400d3ae8]
mov r9, qword [0x1400d3ad8]
mov r10d, dword [0x1400d3af0]
jmp 0x140025284
mov rax, qword [r8 + r9*8]
mov r12d, 2
mov dword [rax + 0x38], r12d
jmp 0x140025284
mov r12d, esi
mov rcx, qword [r8 + r9*8]
lea eax, [r10 + rbp]
cmp eax, dword [rcx + 0x18]
jle 0x1400252d9
mov rcx, qword [rcx + 8]
mov ebx, r10d
sar ebx, 1
add ebx, r10d
add ebx, ebp
movsxd rdx, ebx
call fcn.14000154b
mov r8, qword [0x1400d3ae8]
mov r9, qword [0x1400d3ad8]
mov rcx, qword [r8 + r9*8]
mov qword [rcx + 8], rax
mov rcx, qword [r8 + r9*8]
cmp qword [rcx + 8], 0
je 0x140025365
mov r10d, dword [0x1400d3af0]
lea eax, [rbx - 2]
mov dword [rcx + 0x18], eax
mov rcx, qword [r8 + r9*8]
add r10d, ebp
mov r14, qword [rsp + 0x28]
mov eax, r12d
mov rdi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
mov rbp, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
movsxd rdx, r10d
mov dword [0x1400d3af0], r10d
mov byte [rdx + rcx], 0
mov rcx, qword [r8 + r9*8]
movsxd rdx, r10d
mov rcx, qword [rcx + 8]
mov byte [rcx + rdx + 1], 0
mov rcx, qword [r8 + r9*8]
mov rdx, qword [rcx + 8]
mov qword [0x1400d49d0], rdx
add rsp, 0x30
pop rbx
ret
lea rcx, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.140024ef0
int3
xor esi, esi
mov qword [rdi + 8], rsi
lea rcx, str.fatal_error___scanner_input_buffer_overflow
call fcn.140024ef0
int3
lea rcx, str.input_in_flex_scanner_failed
call fcn.140024ef0
int3
lea rcx, str.out_of_dynamic_memory_in_yy_get_next_buffer__
call fcn.140024ef0
int3