Function at 0x14003b860
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r8, qword [0x1400d41b8]
mov r9, qword [0x1400d41a8]
mov eax, dword [0x1400d41c0]
mov rbx, qword [0x1400d41c8]
inc eax
mov rdx, qword [0x1400d4980]
mov r11, qword [r8 + r9*8]
movsxd rcx, eax
mov r10, qword [r11 + 8]
add rcx, r10
cmp rbx, rcx
ja 0x14003bc30
cmp dword [r11 + 0x34], 0
mov qword [rsp + 0x48], rsi
jne 0x14003b8c8
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 0x14003b8f4
mov ecx, ebp
nop
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [r10], al
lea r10, [r10 + 1]
sub rcx, 1
jne 0x14003b8e0
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 0x14003b920
xor esi, esi
mov ebx, esi
mov dword [rax + 0x1c], esi
mov dword [0x1400d41c0], ebx
jmp 0x14003bb4e
mov eax, dword [rax + 0x18]
sub eax, ebp
dec eax
test eax, eax
jg 0x14003b9a1
nop dword [rax + rax]
mov rdi, qword [r8 + r9*8]
sub ebx, dword [rdi + 8]
cmp dword [rdi + 0x20], 0
je 0x14003bc3d
mov ecx, dword [rdi + 0x18]
lea eax, [rcx + rcx]
test eax, eax
jg 0x14003b958
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.14000104b
mov qword [rdi + 8], rax
test rax, rax
je 0x14003bc43
mov r8, qword [0x1400d41b8]
mov r9, qword [0x1400d41a8]
movsxd rbx, ebx
add rbx, rax
mov qword [0x1400d41c8], rbx
mov rax, qword [r8 + r9*8]
mov eax, dword [rax + 0x18]
sub eax, ebp
dec eax
test eax, eax
jle 0x14003b930
mov ecx, 0x2000
cmp eax, ecx
cmovg eax, ecx
movsxd r14, eax
mov rax, qword [r8 + r9*8]
cmp dword [rax + 0x24], 0
je 0x14003ba72
xor esi, esi
mov ebx, esi
test r14, r14
jle 0x14003ba67
mov qword [rsp + 0x20], r15
mov edi, esi
movsxd r15, ebp
mov rcx, qword [0x1400d4190]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov r8, qword [0x1400d41b8]
mov r10d, eax
mov r9, qword [0x1400d41a8]
cmp eax, 0xffffffff
je 0x14003ba14
cmp eax, 0xa
je 0x14003ba14
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 0x14003b9d3
mov r15, qword [rsp + 0x20]
cmp r10d, 0xa
jne 0x14003ba3e
mov rax, qword [r8 + r9*8]
movsxd rcx, ebx
movsxd rdx, ebp
add rcx, qword [rax + 8]
inc ebx
mov dword [0x1400d41c0], ebx
mov byte [rcx + rdx], r10b
jmp 0x14003bb43
cmp r10d, 0xffffffff
jne 0x14003ba67
mov rcx, qword [0x1400d4190]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x14003bc50
mov r8, qword [0x1400d41b8]
mov r9, qword [0x1400d41a8]
mov dword [0x1400d41c0], ebx
jmp 0x14003bb43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [0x1400d41b8]
xor esi, esi
movsxd rdi, ebp
mov r8, r14
mov rdx, r12
mov dword [rax], esi
mov rax, qword [0x1400d41a8]
mov r9, qword [0x1400d4190]
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 [0x1400d41c0], eax
mov rbx, rax
test eax, eax
jne 0x14003bb35
nop dword [rax + rax]
mov rcx, qword [0x1400d4190]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x14003bb2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14003bc50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], esi
mov rcx, qword [0x1400d4190]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
mov rcx, qword [0x1400d41b8]
mov r8, r14
mov rax, qword [0x1400d41a8]
mov rdx, r12
mov r9, qword [0x1400d4190]
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 [0x1400d41c0], eax
mov ebx, eax
test eax, eax
je 0x14003bac0
jmp 0x14003bb35
mov ebx, dword [0x1400d41c0]
mov r8, qword [0x1400d41b8]
mov r9, qword [0x1400d41a8]
mov rax, qword [r8 + r9*8]
mov dword [rax + 0x1c], ebx
test ebx, ebx
jne 0x14003bb84
test ebp, ebp
jne 0x14003bb74
mov rcx, qword [0x1400d4190]
call fcn.14000140b
mov r8, qword [0x1400d41b8]
mov r9, qword [0x1400d41a8]
mov ebx, dword [0x1400d41c0]
jmp 0x14003bb87
mov rax, qword [r8 + r9*8]
mov r12d, 2
mov dword [rax + 0x38], r12d
jmp 0x14003bb87
mov r12d, esi
mov rcx, qword [r8 + r9*8]
lea eax, [rbx + rbp]
cmp eax, dword [rcx + 0x18]
jle 0x14003bbd8
mov rcx, qword [rcx + 8]
mov edi, ebx
sar edi, 1
add edi, ebx
add edi, ebp
movsxd rdx, edi
call fcn.14000104b
mov r8, qword [0x1400d41b8]
mov r9, qword [0x1400d41a8]
mov rcx, qword [r8 + r9*8]
mov qword [rcx + 8], rax
mov rcx, qword [r8 + r9*8]
cmp qword [rcx + 8], 0
je 0x14003bc5d
mov ebx, dword [0x1400d41c0]
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 [0x1400d41c0], 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 [0x1400d4980], rdx
add rsp, 0x30
pop rbx
ret
lea rcx, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.14003b820
int3
xor esi, esi
mov qword [rdi + 8], rsi
lea rcx, str.fatal_error___scanner_input_buffer_overflow
call fcn.14003b820
int3
lea rcx, str.input_in_flex_scanner_failed
call fcn.14003b820
int3
lea rcx, str.out_of_dynamic_memory_in_yy_get_next_buffer__
call fcn.14003b820
int3