Function at 0x4033a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ecx, dword [0x412038]
mov edi, dword [0x412048]
mov edx, dword [0x4120d8]
mov eax, dword [edi + ecx*4]
mov ebx, dword [eax + 4]
mov eax, dword [0x4122e0]
mov esi, eax
mov dword [ebp - 0x14], eax
mov eax, ebx
add eax, edx
mov edx, dword [0x412078]
inc eax
cmp eax, edx
jb 0x4034bf
mov eax, dword [edi + ecx*4]
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x403400
mov eax, dword [ebp - 0x14]
sub edx, eax
xor eax, eax
cmp edx, 1
setne al
add esp, 0x1c
pop ebx
inc eax
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x14]
sub edx, eax
dec edx
mov dword [ebp - 0x10], edx
test edx, edx
jle 0x403426
lea esi, [esi]
movzx eax, byte [esi]
inc esi
mov byte [ebx], al
inc ebx
dec edx
jne 0x403410
mov ecx, dword [0x412038]
mov edi, dword [0x412048]
mov eax, dword [edi + ecx*4]
cmp dword [eax + 0x2c], 2
je 0x403543
mov ebx, dword [ebp - 0x10]
mov edx, dword [eax + 0xc]
not ebx
add ebx, edx
test ebx, ebx
jle 0x40362d
cmp ebx, 0x2000
jg 0x4034e8
mov eax, dword [edi + ecx*4]
mov esi, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [0x412030]
add esi, edx
cmp eax, dword [sym.imp.cygreadline7.dll_rl_instream]
jne 0x403483
jmp 0x403509
call sub.cygwin1.dll___errno
cmp dword [eax], 4
jne 0x4037b4
mov eax, dword [0x412030]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
mov dword [esp], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
call sub.cygwin1.dll_read
mov dword [0x4120d8], eax
test eax, eax
js 0x403470
mov eax, dword [0x412038]
mov edi, dword [0x412048]
mov edx, dword [edi + eax*4]
mov eax, dword [0x4120d8]
mov dword [edx + 0x10], eax
jmp 0x403560
mov eax, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.00402bb0
mov eax, dword [0x4122e0]
mov ecx, dword [0x412038]
mov edi, dword [0x412048]
mov dword [ebp - 0x14], eax
mov edx, dword [0x412078]
jmp 0x4033de
mov eax, dword [edi + ecx*4]
mov ebx, 0x2000
mov esi, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [0x412030]
add esi, edx
cmp eax, dword [sym.imp.cygreadline7.dll_rl_instream]
jne 0x403483
mov eax, dword [0x4120b8]
test eax, eax
jne 0x40370e
mov eax, dword [0x4120a8]
test eax, eax
jne 0x40378c
mov dword [esp], 0x40f1ac
call sub.cygreadline7.dll_readline
mov dword [0x4120a8], eax
test eax, eax
jne 0x4036c9
xor eax, eax
jmp 0x40372c
xor ecx, ecx
mov dword [0x4120d8], ecx
mov dword [eax + 0x10], 0
lea esi, [esi]
lea edi, [edi]
mov edx, dword [0x4120d8]
xor esi, esi
test edx, edx
jne 0x40358b
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40373d
mov eax, dword [0x412038]
mov esi, 2
mov eax, dword [edi + eax*4]
mov dword [eax + 0x2c], 2
mov ecx, dword [ebp - 0x10]
lea eax, [edx + ecx]
mov ecx, dword [0x412038]
mov ebx, dword [edi + ecx*4]
cmp eax, dword [ebx + 0xc]
ja 0x4035ef
mov eax, dword [ebp - 0x10]
add edx, eax
mov eax, dword [edi + ecx*4]
mov dword [0x4120d8], edx
mov eax, dword [eax + 4]
mov byte [eax + edx], 0
mov edx, dword [0x412038]
mov eax, dword [0x412048]
mov eax, dword [eax + edx*4]
mov edx, dword [eax + 4]
mov eax, dword [0x4120d8]
mov byte [edx + eax + 1], 0
mov edx, dword [0x412038]
mov eax, dword [0x412048]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 4]
mov dword [0x4122e0], eax
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
sar edx, 1
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [edi + ecx*4]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.00402f70
mov dword [ebx + 4], eax
mov ecx, dword [0x412038]
mov edi, dword [0x412048]
mov eax, dword [edi + ecx*4]
mov eax, dword [eax + 4]
test eax, eax
je 0x403799
mov edx, dword [0x4120d8]
jmp 0x40359f
mov edx, dword [0x412078]
jmp 0x403688
mov edx, dword [ebx + 0xc]
lea eax, [edx + edx]
test eax, eax
jle 0x4036bc
mov dword [ebx + 0xc], eax
add eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00402f70
mov dword [ebx + 4], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4036ad
mov ecx, dword [0x412038]
add eax, esi
mov edi, dword [0x412048]
mov dword [0x412078], eax
mov edx, eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [edi + ecx*4]
not ebx
mov esi, dword [eax + 0xc]
add ebx, esi
test ebx, ebx
jg 0x403445
xor ebx, ebx
test edi, edi
je 0x403691
mov ebx, dword [edi + ecx*4]
mov eax, dword [ebx + 4]
mov esi, edx
mov edi, dword [ebx + 0x14]
sub esi, eax
test edi, edi
jne 0x403635
mov dword [ebx + 4], 0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x40365e
mov eax, str.fatal_error___scanner_input_buffer_overflow
call fcn.00402bb0
mov eax, dword [ebx + 4]
jmp 0x40365e
mov eax, edx
shr eax, 3
lea eax, [edx + eax]
jmp 0x40363f
mov dword [0x412098], eax
mov edi, eax
mov dword [esp], eax
call sub.cygwin1.dll_strlen
inc eax
mov dword [0x4120b8], eax
dec eax
je 0x4036ef
mov dword [esp], edi
call sub.cygreadline7.dll_add_history
mov edi, dword [0x412098]
mov eax, dword [0x4120b8]
mov byte [edi + eax - 1], 0xa
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov eax, dword [0x4120b8]
cmp eax, ebx
jg 0x403760
mov dword [esp + 8], eax
mov eax, dword [0x412098]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_strncpy
mov eax, dword [0x4120b8]
mov dword [0x4120d8], eax
xor eax, eax
mov dword [0x4120b8], eax
jmp 0x4034a4
mov eax, dword [0x412030]
mov esi, 1
mov dword [esp], eax
call fcn.00403330
mov edi, dword [0x412048]
mov edx, dword [0x4120d8]
jmp 0x40358b
mov dword [esp + 8], ebx
mov eax, dword [0x412098]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_strncpy
add dword [0x412098], ebx
sub dword [0x4120b8], ebx
mov dword [0x4120d8], ebx
jmp 0x4034a4
mov dword [esp], eax
call sub.cygwin1.dll_free
jmp 0x403523
mov eax, str.out_of_dynamic_memory_in_yy_get_next_buffer__
call fcn.00402bb0
mov ecx, dword [0x412038]
mov edi, dword [0x412048]
jmp 0x403622
mov dword [esp], str.read___in_flex_scanner_failed
call fcn.00407890
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]