Function at 0x6c1f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1b9886c]
sub esp, 8
mov ecx, dword [0x1b98860]
inc eax
push ebx
push esi
mov esi, dword [0x1b98864]
push edi
mov edi, dword [0x1b98870]
mov edx, dword [esi + 4]
add eax, edx
cmp edi, eax
ja 0x6c215e
cmp dword [esi + 0x20], 0
jne 0x6c1f87
sub edi, ecx
dec edi
neg edi
sbb edi, edi
neg edi
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
sub eax, ecx
dec eax
mov dword [ebp - 4], eax
test eax, eax
jle 0x6c1fa8
mov ebx, eax
mov al, byte [ecx]
lea edx, [edx + 1]
mov byte [edx - 1], al
lea ecx, [ecx + 1]
sub ebx, 1
jne 0x6c1f95
mov eax, dword [ebp - 4]
cmp dword [esi + 0x24], 2
jne 0x6c1fbb
xor edi, edi
mov dword [0x1b9886c], edi
jmp 0x6c2101
mov ebx, dword [esi + 0xc]
sub ebx, eax
dec ebx
test ebx, ebx
jg 0x6c2028
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov dword [ebp - 8], eax
nop dword [eax]
mov ebx, dword [esi + 4]
sub edi, ebx
cmp dword [esi + 0x14], 0
je 0x6c2168
mov edx, dword [esi + 0xc]
lea eax, [edx + edx]
test eax, eax
jg 0x6c1ff0
mov eax, edx
shr eax, 3
add eax, edx
mov edx, eax
add eax, 2
push eax
push ebx
mov dword [esi + 0xc], edx
call dword [ebp - 8]
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x6c216f
mov esi, dword [0x1b98864]
add edi, eax
mov ecx, dword [ebp - 4]
mov dword [0x1b98870], edi
mov ebx, dword [esi + 0xc]
sub ebx, ecx
dec ebx
test ebx, ebx
jle 0x6c1fd0
jmp 0x6c202b
mov ecx, dword [ebp - 4]
mov eax, 0x2000
cmp ebx, eax
cmovg ebx, eax
cmp dword [esi + 0x18], 0
je 0x6c20b6
xor edi, edi
test ebx, ebx
jle 0x6c20ae
push dword [0x1b98858]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov esi, dword [0x1b98864]
mov ecx, eax
mov edx, dword [ebp - 4]
add esp, 4
cmp ecx, 0xffffffff
je 0x6c2072
cmp ecx, 0xa
je 0x6c2072
mov eax, dword [esi + 4]
add eax, edi
inc edi
mov byte [eax + edx], cl
cmp edi, ebx
jl 0x6c2041
mov eax, edi
cmp ecx, 0xa
jne 0x6c208a
mov eax, dword [esi + 4]
add eax, edi
inc edi
mov dword [0x1b9886c], edi
mov byte [eax + edx], cl
jmp 0x6c20fd
mov edi, eax
cmp ecx, 0xffffffff
jne 0x6c20ae
push dword [0x1b98858]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
jne 0x6c2179
mov esi, dword [0x1b98864]
mov dword [0x1b9886c], edi
jmp 0x6c20fd
push dword [0x1b98858]
mov eax, dword [esi + 4]
push ebx
add eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edi, eax
add esp, 0x10
mov dword [0x1b9886c], edi
test edi, edi
jne 0x6c20f7
push dword [0x1b98858]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
jne 0x6c2179
mov edi, dword [0x1b9886c]
mov esi, dword [0x1b98864]
test edi, edi
jne 0x6c2131
mov ebx, dword [ebp - 4]
test ebx, ebx
jne 0x6c2127
push dword [0x1b98858]
call fcn.006c2c40
mov esi, dword [0x1b98864]
lea eax, [ebx + 1]
mov edi, dword [0x1b9886c]
add esp, 4
jmp 0x6c2136
mov eax, 2
mov dword [esi + 0x24], eax
jmp 0x6c2136
mov ebx, dword [ebp - 4]
xor eax, eax
mov ecx, dword [esi + 4]
lea edx, [edi + ebx]
pop edi
mov dword [0x1b9886c], edx
mov byte [edx + ecx], 0
mov ecx, dword [esi + 4]
mov byte [ecx + edx + 1], 0
mov ecx, dword [esi + 4]
pop esi
mov dword [0x1b98860], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.006c1f00
mov dword [esi + 4], 0
push str.fatal_error___scanner_input_buffer_overflow
call fcn.006c1f00
push str.input_in_flex_scanner_failed
call fcn.006c1f00
int3