Function at 0x14001c670
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r8, qword [0x1400d3858]
mov r9, qword [0x1400d3848]
mov eax, dword [0x1400d3860]
mov rbx, qword [0x1400d3868]
inc eax
mov rdx, qword [0x1400d49e8]
mov r11, qword [r8 + r9*8]
movsxd rcx, eax
mov r10, qword [r11 + 8]
add rcx, r10
cmp rbx, rcx
ja 0x14001ca40
cmp dword [r11 + 0x34], 0
mov qword [rsp + 0x48], rsi
jne 0x14001c6d8
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 0x14001c704
mov ecx, ebp
nop
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [r10], al
lea r10, [r10 + 1]
sub rcx, 1
jne 0x14001c6f0
mov rax, qword [r8 + r9*8]
mov r12d, 1
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x28], r14
cmp dword [rax + 0x38], 2
jne 0x14001c730
xor esi, esi
mov ebx, esi
mov dword [rax + 0x1c], esi
mov dword [0x1400d3860], ebx
jmp 0x14001c95e
mov eax, dword [rax + 0x18]
sub eax, ebp
dec eax
test eax, eax
jg 0x14001c7b1
nop dword [rax + rax]
mov rdi, qword [r8 + r9*8]
sub ebx, dword [rdi + 8]
cmp dword [rdi + 0x20], 0
je 0x14001ca4d
mov ecx, dword [rdi + 0x18]
lea eax, [rcx + rcx]
test eax, eax
jg 0x14001c768
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.140001541
mov qword [rdi + 8], rax
test rax, rax
je 0x14001ca53
mov r8, qword [0x1400d3858]
mov r9, qword [0x1400d3848]
movsxd rbx, ebx
add rbx, rax
mov qword [0x1400d3868], rbx
mov rax, qword [r8 + r9*8]
mov eax, dword [rax + 0x18]
sub eax, ebp
dec eax
test eax, eax
jle 0x14001c740
mov ecx, 0x2000
cmp eax, ecx
cmovg eax, ecx
movsxd r14, eax
mov rax, qword [r8 + r9*8]
cmp dword [rax + 0x24], 0
je 0x14001c882
xor esi, esi
mov ebx, esi
test r14, r14
jle 0x14001c877
mov qword [rsp + 0x20], r15
mov edi, esi
movsxd r15, ebp
mov rcx, qword [0x1400d3830]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov r8, qword [0x1400d3858]
mov r10d, eax
mov r9, qword [0x1400d3848]
cmp eax, 0xffffffff
je 0x14001c824
cmp eax, 0xa
je 0x14001c824
mov rcx, qword [r8 + r9*8]
inc ebx
mov rcx, qword [rcx + 8]
add rcx, r15
mov byte [rcx + rdi], r10b
inc rdi
cmp rdi, r14
jl 0x14001c7e3
mov r15, qword [rsp + 0x20]
cmp r10d, 0xa
jne 0x14001c84e
mov rax, qword [r8 + r9*8]
movsxd rcx, ebx
movsxd rdx, ebp
add rcx, qword [rax + 8]
inc ebx
mov dword [0x1400d3860], ebx
mov byte [rcx + rdx], r10b
jmp 0x14001c953
cmp r10d, 0xffffffff
jne 0x14001c877
mov rcx, qword [0x1400d3830]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x14001ca60
mov r8, qword [0x1400d3858]
mov r9, qword [0x1400d3848]
mov dword [0x1400d3860], ebx
jmp 0x14001c953
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [0x1400d3858]
xor esi, esi
movsxd rdi, ebp
mov r8, r14
mov rdx, r12
mov dword [rax], esi
mov rax, qword [0x1400d3848]
mov r9, qword [0x1400d3830]
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 [0x1400d3860], eax
mov rbx, rax
test eax, eax
jne 0x14001c945
nop dword [rax + rax]
mov rcx, qword [0x1400d3830]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x14001c93f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14001ca60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], esi
mov rcx, qword [0x1400d3830]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
mov rcx, qword [0x1400d3858]
mov r8, r14
mov rax, qword [0x1400d3848]
mov rdx, r12
mov r9, qword [0x1400d3830]
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 [0x1400d3860], eax
mov ebx, eax
test eax, eax
je 0x14001c8d0
jmp 0x14001c945
mov ebx, dword [0x1400d3860]
mov r8, qword [0x1400d3858]
mov r9, qword [0x1400d3848]
mov rax, qword [r8 + r9*8]
mov dword [rax + 0x1c], ebx
test ebx, ebx
jne 0x14001c994
test ebp, ebp
jne 0x14001c984
mov rcx, qword [0x1400d3830]
call fcn.14000182f
mov r8, qword [0x1400d3858]
mov r9, qword [0x1400d3848]
mov ebx, dword [0x1400d3860]
jmp 0x14001c997
mov rax, qword [r8 + r9*8]
mov r12d, 2
mov dword [rax + 0x38], r12d
jmp 0x14001c997
mov r12d, esi
mov rcx, qword [r8 + r9*8]
lea eax, [rbx + rbp]
cmp eax, dword [rcx + 0x18]
jle 0x14001c9e8
mov rcx, qword [rcx + 8]
mov edi, ebx
sar edi, 1
add edi, ebx
add edi, ebp
movsxd rdx, edi
call fcn.140001541
mov r8, qword [0x1400d3858]
mov r9, qword [0x1400d3848]
mov rcx, qword [r8 + r9*8]
mov qword [rcx + 8], rax
mov rcx, qword [r8 + r9*8]
cmp qword [rcx + 8], 0
je 0x14001ca6d
mov ebx, dword [0x1400d3860]
lea eax, [rdi - 2]
mov dword [rcx + 0x18], eax
mov rcx, qword [r8 + r9*8]
add ebx, ebp
mov rdi, qword [rsp + 0x50]
mov eax, r12d
mov r14, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x40]
mov rcx, qword [rcx + 8]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
movsxd rdx, ebx
mov dword [0x1400d3860], ebx
mov byte [rdx + rcx], 0
mov rcx, qword [r8 + r9*8]
movsxd rdx, ebx
mov rcx, qword [rcx + 8]
mov byte [rcx + rdx + 1], 0
mov rcx, qword [r8 + r9*8]
mov rdx, qword [rcx + 8]
mov qword [0x1400d49e8], rdx
add rsp, 0x30
pop rbx
ret
lea rcx, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.14001c630
int3
xor esi, esi
mov qword [rdi + 8], rsi
lea rcx, str.fatal_error___scanner_input_buffer_overflow
call fcn.14001c630
int3
lea rcx, str.input_in_flex_scanner_failed
call fcn.14001c630
int3
lea rcx, str.out_of_dynamic_memory_in_yy_get_next_buffer__
call fcn.14001c630
int3