Function at 0x401650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x462708]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [0x463d78]
mov dword [ebp - 0x20], edx
mov eax, dword [0x462708]
mov ecx, dword [eax + 4]
mov edx, dword [0x462710]
lea eax, [ecx + edx + 1]
cmp dword [0x462714], eax
jbe 0x401691
push str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.00402080
add esp, 4
mov ecx, dword [0x462708]
cmp dword [ecx + 0x20], 0
jne 0x4016c4
mov edx, dword [0x462714]
sub edx, dword [0x463d78]
cmp edx, 1
jne 0x4016ba
mov eax, 1
jmp 0x4019c7
mov eax, 2
jmp 0x4019c7
mov eax, dword [0x462714]
sub eax, dword [0x463d78]
sub eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
jmp 0x4016e7
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0xc]
jge 0x40170d
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 0x4016de
mov edx, dword [0x462708]
cmp dword [edx + 0x24], 2
jne 0x401736
mov dword [0x462710], 0
mov eax, dword [0x462708]
mov ecx, dword [0x462710]
mov dword [eax + 0x10], ecx
jmp 0x401938
mov edx, dword [0x462708]
mov eax, dword [edx + 0xc]
sub eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jg 0x40180e
mov ecx, dword [0x462708]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x462714]
sub eax, dword [edx + 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x14], 0
je 0x4017c9
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
shl eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jg 0x40179a
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 0x4017a8
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 0x4017d3
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x4017e9
push str.fatal_error___scanner_input_buffer_overflow
call fcn.00402080
add esp, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0x30]
mov dword [0x462714], edx
mov eax, dword [0x462708]
mov ecx, dword [eax + 0xc]
sub ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x401748
cmp dword [ebp - 0x14], 0x2000
jle 0x40181e
mov dword [ebp - 0x14], 0x2000
mov edx, dword [0x462708]
cmp dword [edx + 0x18], 0
je 0x4018d7
mov dword [ebp - 0x10], 0x2a
mov dword [ebp - 8], 0
jmp 0x401847
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x14]
jge 0x401883
mov edx, dword [0x462700]
push edx
call fcn.0040b450
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x401883
cmp dword [ebp - 0x10], 0xa
je 0x401883
mov eax, dword [0x462708]
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 0x40183e
cmp dword [ebp - 0x10], 0xa
jne 0x4018a7
mov ecx, dword [0x462708]
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 0x4018cc
mov eax, dword [0x462700]
push eax
call fcn.0040b020
add esp, 4
test eax, eax
je 0x4018cc
push 0x461614
call fcn.00402080
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [0x462710], ecx
jmp 0x40192a
mov edx, dword [0x462700]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 1
mov ecx, dword [0x462708]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0xc]
push edx
call fcn.0040c5b0
add esp, 0x10
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x401921
mov eax, dword [0x462700]
push eax
call fcn.0040b020
add esp, 4
test eax, eax
je 0x401921
push str.input_in_flex_scanner_failed
call fcn.00402080
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [0x462710], ecx
mov edx, dword [0x462708]
mov eax, dword [0x462710]
mov dword [edx + 0x10], eax
cmp dword [0x462710], 0
jne 0x401975
cmp dword [ebp - 0xc], 0
jne 0x40195f
mov dword [ebp - 0x24], 1
mov ecx, dword [0x462700]
push ecx
call fcn.00401000
add esp, 4
jmp 0x401973
mov dword [ebp - 0x24], 2
mov edx, dword [0x462708]
mov dword [edx + 0x24], 2
jmp 0x40197c
mov dword [ebp - 0x24], 0
mov eax, dword [0x462710]
add eax, dword [ebp - 0xc]
mov dword [0x462710], eax
mov ecx, dword [0x462708]
mov edx, dword [ecx + 4]
mov eax, dword [0x462710]
mov byte [edx + eax], 0
mov ecx, dword [0x462708]
mov edx, dword [ecx + 4]
mov eax, dword [0x462710]
mov byte [edx + eax + 1], 0
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [0x462708]
add edx, dword [eax + 4]
mov dword [0x463d78], edx
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret