Function at 0x401660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a0e68]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x4a24f8]
mov dword [ebp - 0x20], edx
mov eax, dword [0x4a0e68]
mov ecx, dword [eax + 4]
mov edx, dword [0x4a0e70]
lea eax, [ecx + edx + 1]
cmp dword [0x4a0e74], eax
jbe 0x4016a1
push str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.004020d0
add esp, 4
mov ecx, dword [0x4a0e68]
cmp dword [ecx + 0x20], 0
jne 0x4016d4
mov edx, dword [0x4a0e74]
sub edx, dword [0x4a24f8]
cmp edx, 1
jne 0x4016ca
mov eax, 1
jmp 0x4019d7
mov eax, 2
jmp 0x4019d7
mov eax, dword [0x4a0e74]
sub eax, dword [0x4a24f8]
sub eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
jmp 0x4016f7
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0xc]
jge 0x40171d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x4016ee
mov edx, dword [0x4a0e68]
cmp dword [edx + 0x24], 2
jne 0x401746
mov dword [0x4a0e70], 0
mov eax, dword [0x4a0e68]
mov ecx, dword [0x4a0e70]
mov dword [eax + 0x10], ecx
jmp 0x401948
mov edx, dword [0x4a0e68]
mov eax, dword [edx + 0xc]
sub eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jg 0x40181e
mov ecx, dword [0x4a0e68]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x4a0e74]
sub eax, dword [edx + 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x14], 0
je 0x4017d9
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
shl eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jg 0x4017aa
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
shr edx, 3
mov eax, dword [ebp - 4]
add edx, dword [eax + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
jmp 0x4017b8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
add eax, 2
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call fcn.00401450
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
jmp 0x4017e3
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4017f9
push str.fatal_error___scanner_input_buffer_overflow
call fcn.004020d0
add esp, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0x30]
mov dword [0x4a0e74], edx
mov eax, dword [0x4a0e68]
mov ecx, dword [eax + 0xc]
sub ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x401758
cmp dword [ebp - 0x14], 0x2000
jle 0x40182e
mov dword [ebp - 0x14], 0x2000
mov edx, dword [0x4a0e68]
cmp dword [edx + 0x18], 0
je 0x4018e7
mov dword [ebp - 0x10], 0x2a
mov dword [ebp - 8], 0
jmp 0x401857
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x14]
jge 0x401893
mov edx, dword [0x4a0e60]
push edx
call fcn.0040d110
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x401893
cmp dword [ebp - 0x10], 0xa
je 0x401893
mov eax, dword [0x4a0e68]
mov ecx, dword [eax + 4]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov al, byte [ebp - 0x10]
mov byte [ecx + edx], al
jmp 0x40184e
cmp dword [ebp - 0x10], 0xa
jne 0x4018b7
mov ecx, dword [0x4a0e68]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov cl, byte [ebp - 0x10]
mov byte [edx + eax], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4018dc
mov eax, dword [0x4a0e60]
push eax
call fcn.0040c2e0
add esp, 4
test eax, eax
je 0x4018dc
push 0x49fd04
call fcn.004020d0
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [0x4a0e70], ecx
jmp 0x40193a
mov edx, dword [0x4a0e60]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [0x4a0e68]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0xc]
push edx
call fcn.0040cad0
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x401931
mov eax, dword [0x4a0e60]
push eax
call fcn.0040c2e0
add esp, 4
test eax, eax
je 0x401931
push str.input_in_flex_scanner_failed
call fcn.004020d0
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [0x4a0e70], ecx
mov edx, dword [0x4a0e68]
mov eax, dword [0x4a0e70]
mov dword [edx + 0x10], eax
cmp dword [0x4a0e70], 0
jne 0x401985
cmp dword [ebp - 0xc], 0
jne 0x40196f
mov dword [ebp - 0x24], 1
mov ecx, dword [0x4a0e60]
push ecx
call fcn.00401000
add esp, 4
jmp 0x401983
mov dword [ebp - 0x24], 2
mov edx, dword [0x4a0e68]
mov dword [edx + 0x24], 2
jmp 0x40198c
mov dword [ebp - 0x24], 0
mov eax, dword [0x4a0e70]
add eax, dword [ebp - 0xc]
mov dword [0x4a0e70], eax
mov ecx, dword [0x4a0e68]
mov edx, dword [ecx + 4]
mov eax, dword [0x4a0e70]
mov byte [edx + eax], 0
mov ecx, dword [0x4a0e68]
mov edx, dword [ecx + 4]
mov eax, dword [0x4a0e70]
mov byte [edx + eax + 1], 0
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [0x4a0e68]
add edx, dword [eax + 4]
mov dword [0x4a24f8], edx
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret