Function at 0x14000d060
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r9, qword [0x1400282a0]
mov r10, qword [0x140028290]
mov rcx, qword [0x1400282b0]
mov rbx, qword [0x1400282b8]
inc rcx
mov rdx, qword [0x140029430]
mov r11, qword [r9 + r10*8]
mov r8, qword [r11 + 8]
add rcx, r8
cmp rbx, rcx
ja 0x14000d434
cmp dword [r11 + 0x3c], 0
mov qword [rsp + 0x48], rsi
jne 0x14000d0c7
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 + 0x50], rdi
dec ebp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
test ebp, ebp
jle 0x14000d104
mov ecx, ebp
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [r8], al
lea r8, [r8 + 1]
sub rcx, 1
jne 0x14000d0f0
mov rdi, qword [r9 + r10*8]
mov r15d, 1
movsxd r14, ebp
cmp dword [rdi + 0x40], 2
jne 0x14000d12b
xor esi, esi
mov ebx, esi
mov qword [rdi + 0x20], rsi
mov qword [0x1400282b0], rbx
jmp 0x14000d354
mov rdi, qword [rdi + 0x18]
sub rdi, r14
sub rdi, r15
jne 0x14000d1b3
nop word [rax + rax]
mov rdi, qword [r9 + r10*8]
sub ebx, dword [rdi + 8]
cmp dword [rdi + 0x28], 0
je 0x14000d441
mov rax, qword [rdi + 0x18]
mov rcx, rax
shr rcx, 3
add rcx, rax
lea rdx, [rax + rax]
test rdx, rdx
cmove rdx, rcx
mov qword [rdi + 0x18], rdx
add rdx, 2
mov rcx, qword [rdi + 8]
call fcn.140001721
mov qword [rdi + 8], rax
test rax, rax
je 0x14000d447
mov r9, qword [0x1400282a0]
mov r10, qword [0x140028290]
movsxd rbx, ebx
add rbx, rax
mov qword [0x1400282b8], rbx
mov rax, qword [r9 + r10*8]
mov rdi, qword [rax + 0x18]
sub rdi, r14
sub rdi, r15
je 0x14000d140
mov eax, 0x2000
cmp rdi, rax
cmova rdi, rax
mov rax, qword [r9 + r10*8]
cmp dword [rax + 0x2c], 0
je 0x14000d278
xor esi, esi
mov ebx, esi
test rdi, rdi
je 0x14000d26c
nop word [rax + rax]
mov rcx, qword [0x140028280]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov r9, qword [0x1400282a0]
mov r8d, eax
mov r10, qword [0x140028290]
cmp eax, 0xffffffff
je 0x14000d21f
cmp eax, 0xa
je 0x14000d225
mov rcx, qword [r9 + r10*8]
mov rcx, qword [rcx + 8]
add rcx, r14
mov byte [rcx + rbx], r8b
inc rbx
cmp rbx, rdi
jb 0x14000d1e0
cmp r8d, 0xa
jne 0x14000d243
mov rax, qword [r9 + r10*8]
mov rax, qword [rax + 8]
add rax, r14
mov byte [rax + rbx], r8b
inc rbx
mov qword [0x1400282b0], rbx
jmp 0x14000d347
cmp r8d, 0xffffffff
jne 0x14000d26c
mov rcx, qword [0x140028280]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x14000d454
mov r9, qword [0x1400282a0]
mov r10, qword [0x140028290]
mov qword [0x1400282b0], rbx
jmp 0x14000d347
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [0x1400282a0]
xor esi, esi
mov r8, rdi
mov rdx, r15
mov dword [rax], esi
mov rax, qword [0x140028290]
mov r9, qword [0x140028280]
mov rcx, qword [rcx + rax*8]
mov rcx, qword [rcx + 8]
add rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [0x1400282b0], rax
mov rbx, rax
test rax, rax
jne 0x14000d339
nop dword [rax]
mov rcx, qword [0x140028280]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x14000d332
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14000d454
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], esi
mov rcx, qword [0x140028280]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
mov rcx, qword [0x1400282a0]
mov r8, rdi
mov rax, qword [0x140028290]
mov rdx, r15
mov r9, qword [0x140028280]
mov rcx, qword [rcx + rax*8]
mov rcx, qword [rcx + 8]
add rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [0x1400282b0], rax
mov rbx, rax
test rax, rax
je 0x14000d2c0
jmp 0x14000d339
mov rbx, qword [0x1400282b0]
mov r9, qword [0x1400282a0]
mov r10, qword [0x140028290]
mov rax, qword [r9 + r10*8]
mov qword [rax + 0x20], rbx
test rbx, rbx
jne 0x14000d38b
test ebp, ebp
jne 0x14000d37b
mov rcx, qword [0x140028280]
call fcn.1400012df
mov r9, qword [0x1400282a0]
mov r10, qword [0x140028290]
mov rbx, qword [0x1400282b0]
jmp 0x14000d38e
mov rax, qword [r9 + r10*8]
mov r15d, 2
mov dword [rax + 0x40], r15d
jmp 0x14000d38e
mov r15d, esi
mov rcx, qword [r9 + r10*8]
lea rax, [r14 + rbx]
cmp rax, qword [rcx + 0x18]
jbe 0x14000d3dd
mov rcx, qword [rcx + 8]
mov rdx, rbx
shr rdx, 1
add rdx, r14
add rdx, rbx
call fcn.140001721
mov r9, qword [0x1400282a0]
mov r10, qword [0x140028290]
mov rcx, qword [r9 + r10*8]
mov qword [rcx + 8], rax
mov rax, qword [r9 + r10*8]
cmp qword [rax + 8], 0
je 0x14000d461
mov rbx, qword [0x1400282b0]
mov rcx, qword [r9 + r10*8]
lea r8, [r14 + rbx]
mov r14, qword [rsp + 0x28]
mov eax, r15d
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov rdx, qword [rcx + 8]
mov r15, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x48]
mov qword [0x1400282b0], r8
mov byte [r8 + rdx], 0
mov rcx, qword [r9 + r10*8]
mov rdx, qword [rcx + 8]
mov byte [rdx + r8 + 1], 0
mov rcx, qword [r9 + r10*8]
mov rdx, qword [rcx + 8]
mov qword [0x140029430], rdx
add rsp, 0x30
pop rbx
ret
lea rcx, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.14000cfc0
int3
xor esi, esi
mov qword [rdi + 8], rsi
lea rcx, str.fatal_error___scanner_input_buffer_overflow
call fcn.14000cfc0
int3
lea rcx, str.input_in_flex_scanner_failed
call fcn.14000cfc0
int3
lea rcx, str.out_of_dynamic_memory_in_yy_get_next_buffer__
call fcn.14000cfc0
int3