Function at 0x140036290
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r8, qword [0x14005edc8]
mov rax, qword [0x14005edb8]
mov rdx, qword [r8 + rax*8]
lea r11, [r8 + rax*8]
mov rcx, qword [0x14005edd0]
mov rbx, qword [0x14005edd8]
inc rcx
mov r9, qword [0x14005fa20]
mov r10, qword [rdx + 8]
add rcx, r10
cmp rbx, rcx
ja 0x140036675
cmp dword [rdx + 0x3c], 0
mov qword [rsp + 0x48], rsi
jne 0x1400362fa
xor esi, esi
sub rbx, r9
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, r9d
mov qword [rsp + 0x20], r15
dec ebp
test ebp, ebp
jle 0x140036329
mov ecx, ebp
movzx eax, byte [r9]
lea r9, [r9 + 1]
mov byte [r10], al
lea r10, [r10 + 1]
sub rcx, 1
jne 0x140036311
mov rdx, qword [r11]
xor esi, esi
mov qword [rsp + 0x50], rdi
cmp dword [rdx + 0x40], 2
mov r15d, 1
mov qword [rsp + 0x28], r14
jne 0x140036353
mov ebx, esi
mov qword [rdx + 0x20], rsi
mov qword [0x14005edd0], rbx
jmp 0x140036598
mov rdi, qword [rdx + 0x18]
movsxd r14, ebp
sub rdi, r14
sub rdi, r15
jne 0x1400363ea
nop word [rax + rax]
test r8, r8
mov rdi, rsi
cmovne rdi, rdx
sub ebx, dword [rdi + 8]
cmp dword [rdi + 0x28], esi
je 0x1400363b6
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 qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r8, qword [0x14005edc8]
jmp 0x1400363b9
mov rax, rsi
mov qword [rdi + 8], rax
test rax, rax
je 0x140036682
movsxd rbx, ebx
add rbx, rax
mov rax, qword [0x14005edb8]
mov qword [0x14005edd8], rbx
mov rdx, qword [r8 + rax*8]
mov rdi, qword [rdx + 0x18]
sub rdi, r14
sub rdi, r15
je 0x140036370
mov eax, 0x2000
cmp rdi, rax
cmova rdi, rax
mov rax, qword [0x14005edb8]
mov rcx, qword [r8 + rax*8]
cmp dword [rcx + 0x2c], esi
je 0x1400364b2
mov rbx, rsi
test rdi, rdi
je 0x1400364a6
nop word [rax + rax]
mov rcx, qword [0x14005eda0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov r8, qword [0x14005edc8]
cmp eax, 0xffffffff
je 0x14003645b
cmp eax, 0xa
je 0x140036460
mov rcx, qword [0x14005edb8]
mov rdx, qword [r8 + rcx*8]
mov rdx, qword [rdx + 8]
add rdx, r14
mov byte [rdx + rbx], al
inc rbx
cmp rbx, rdi
jb 0x140036420
cmp eax, 0xa
jne 0x140036485
mov rax, qword [0x14005edb8]
mov rcx, qword [r8 + rax*8]
mov rcx, qword [rcx + 8]
add rcx, r14
mov byte [rcx + rbx], 0xa
inc rbx
mov qword [0x14005edd0], rbx
jmp 0x140036580
cmp eax, 0xffffffff
jne 0x1400364a6
mov rcx, qword [0x14005eda0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x14003668f
mov r8, qword [0x14005edc8]
mov qword [0x14005edd0], rbx
jmp 0x140036580
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [0x14005edc8]
mov r8, rdi
mov rdx, r15
mov dword [rax], esi
mov rax, qword [0x14005edb8]
mov r9, qword [0x14005eda0]
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 [0x14005edd0], rax
mov rbx, rax
test rax, rax
jne 0x140036579
nop dword [rax]
mov rcx, qword [0x14005eda0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x140036572
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14003668f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], esi
mov rcx, qword [0x14005eda0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
mov rcx, qword [0x14005edc8]
mov r8, rdi
mov rax, qword [0x14005edb8]
mov rdx, r15
mov r9, qword [0x14005eda0]
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 [0x14005edd0], rax
mov rbx, rax
test rax, rax
je 0x140036500
jmp 0x140036579
mov rbx, qword [0x14005edd0]
mov r8, qword [0x14005edc8]
mov rax, qword [0x14005edb8]
lea r11, [r8 + rax*8]
mov rax, qword [r8 + rax*8]
mov qword [rax + 0x20], rbx
test rbx, rbx
jne 0x1400365c7
test ebp, ebp
jne 0x1400365b8
mov rcx, qword [0x14005eda0]
call fcn.140039230
mov r8, qword [0x14005edc8]
mov rbx, qword [0x14005edd0]
jmp 0x1400365ca
mov rax, qword [r11]
mov r15d, 2
mov dword [rax + 0x40], r15d
jmp 0x1400365ca
mov r15d, esi
mov rax, qword [0x14005edb8]
mov rcx, qword [r8 + rax*8]
lea r9, [r8 + rax*8]
movsxd rdi, ebp
lea rax, [rdi + rbx]
cmp rax, qword [rcx + 0x18]
jbe 0x140036627
mov rcx, qword [rcx + 8]
mov rdx, rbx
shr rdx, 1
add rdx, rdi
add rdx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rcx, qword [0x14005edb8]
mov rdx, qword [0x14005edc8]
lea r9, [rdx + rcx*8]
mov rcx, qword [rdx + rcx*8]
mov qword [rcx + 8], rax
mov rcx, qword [r9]
cmp qword [rcx + 8], 0
je 0x14003669c
mov rbx, qword [0x14005edd0]
mov rcx, qword [rcx + 8]
add rbx, rdi
mov r14, qword [rsp + 0x28]
mov eax, r15d
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x48]
mov byte [rbx + rcx], 0
mov rcx, qword [r9]
mov qword [0x14005edd0], rbx
mov rdx, qword [rcx + 8]
mov byte [rdx + rbx + 1], 0
mov rcx, qword [r9]
mov rdx, qword [rcx + 8]
mov qword [0x14005fa20], rdx
add rsp, 0x30
pop rbx
ret
lea rcx, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.140035e70
int3
lea rcx, str.fatal_error___scanner_input_buffer_overflow
call fcn.140035e70
int3
lea rcx, str.input_in_flex_scanner_failed
call fcn.140035e70
int3
lea rcx, str.out_of_dynamic_memory_in_yy_get_next_buffer__
call fcn.140035e70
int3