Function at 0x40e230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x419b70]
mov ecx, dword [0x419b64]
inc eax
push ebx
push esi
mov esi, dword [0x419b68]
push edi
mov edi, dword [0x419b74]
mov edx, dword [esi + 4]
add eax, edx
cmp edi, eax
ja 0x40e44a
cmp dword [esi + 0x20], 0
jne 0x40e275
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 0x40e296
mov ebx, eax
mov al, byte [ecx]
lea edx, [edx + 1]
mov byte [edx - 1], al
lea ecx, [ecx + 1]
sub ebx, 1
jne 0x40e283
mov eax, dword [ebp - 4]
cmp dword [esi + 0x24], 2
jne 0x40e2a9
xor edi, edi
mov dword [0x419b70], edi
jmp 0x40e3e8
mov ebx, dword [esi + 0xc]
sub ebx, eax
dec ebx
test ebx, ebx
jg 0x40e310
mov edx, dword [esi + 4]
sub edi, edx
cmp dword [esi + 0x14], 0
je 0x40e454
mov ecx, dword [esi + 0xc]
lea eax, [ecx + ecx]
test eax, eax
jg 0x40e2d5
mov eax, ecx
shr eax, 3
add eax, ecx
jmp 0x40e2d8
lea eax, [ecx + ecx]
mov dword [esi + 0xc], eax
add eax, 2
push eax
push edx
call fcn.0040e220
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x40e45b
mov esi, dword [0x419b68]
add edi, eax
mov ecx, dword [ebp - 4]
mov dword [0x419b74], edi
mov ebx, dword [esi + 0xc]
sub ebx, ecx
dec ebx
test ebx, ebx
jle 0x40e2b3
jmp 0x40e313
mov ecx, dword [ebp - 4]
mov eax, 0x2000
cmp ebx, eax
cmovg ebx, eax
cmp dword [esi + 0x18], 0
je 0x40e39d
xor edi, edi
test ebx, ebx
jle 0x40e395
nop dword [eax]
push dword [0x419b5c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
je 0x40e378
mov esi, dword [0x419b68]
mov eax, dword [esi + 4]
add eax, edi
inc edi
cmp ecx, 0xa
je 0x40e369
mov edx, dword [ebp - 4]
mov byte [eax + edx], cl
cmp edi, ebx
jl 0x40e330
mov dword [0x419b70], edi
jmp 0x40e3e4
mov ecx, dword [ebp - 4]
mov dword [0x419b70], edi
mov byte [eax + ecx], 0xa
jmp 0x40e3e4
push dword [0x419b5c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
jne 0x40e465
mov esi, dword [0x419b68]
mov dword [0x419b70], edi
jmp 0x40e3e4
push dword [0x419b5c]
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 [0x419b70], edi
test edi, edi
jne 0x40e418
push dword [0x419b5c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
jne 0x40e465
mov esi, dword [0x419b68]
mov edi, dword [0x419b70]
test edi, edi
jne 0x40e41e
mov ebx, dword [ebp - 4]
test ebx, ebx
jne 0x40e40e
push dword [0x419b5c]
call fcn.00408dd0
mov esi, dword [0x419b68]
lea eax, [ebx + 1]
mov edi, dword [0x419b70]
add esp, 4
jmp 0x40e423
mov eax, 2
mov dword [esi + 0x24], eax
jmp 0x40e423
mov esi, dword [0x419b68]
mov ebx, dword [ebp - 4]
xor eax, eax
mov ecx, dword [esi + 4]
add edi, ebx
mov dword [0x419b70], edi
mov byte [edi + ecx], 0
mov ecx, dword [esi + 4]
mov byte [edi + ecx + 1], 0
mov ecx, dword [esi + 4]
pop edi
pop esi
mov dword [0x419b64], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.0040e1d0
mov dword [esi + 4], 0
push str.fatal_error___scanner_input_buffer_overflow
call fcn.0040e1d0
push str.input_in_flex_scanner_failed
call fcn.0040e1d0
int3