Function at 0x402510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x47c5a4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [0x47d664]
mov dword [ebp - 0x14], edx
mov eax, dword [0x47c5a4]
mov ecx, dword [eax + 4]
mov edx, dword [0x47c578]
lea eax, [edx + ecx + 1]
cmp dword [0x47c5a8], eax
jbe 0x402551
push str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.004024e0
add esp, 4
mov ecx, dword [0x47c5a4]
cmp dword [ecx + 0x20], 0
jne 0x402584
mov edx, dword [0x47c5a8]
sub edx, dword [0x47d664]
cmp edx, 1
jne 0x40257a
mov eax, 1
jmp 0x402880
mov eax, 2
jmp 0x402880
mov eax, dword [0x47c5a8]
sub eax, dword [0x47d664]
sub eax, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x4025a7
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jge 0x4025cd
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x40259e
mov edx, dword [0x47c5a4]
cmp dword [edx + 0x24], 2
jne 0x4025f6
mov dword [0x47c578], 0
mov eax, dword [0x47c5a4]
mov ecx, dword [0x47c578]
mov dword [eax + 0x10], ecx
jmp 0x4027f8
mov edx, dword [0x47c5a4]
mov eax, dword [edx + 0xc]
sub eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x4026ce
mov ecx, dword [0x47c5a4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x47c5a8]
sub eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x14], 0
je 0x402689
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
shl eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jg 0x40265a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
shr edx, 3
mov eax, dword [ebp - 0x1c]
add edx, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], edx
jmp 0x402668
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
shl eax, 1
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
add eax, 2
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
push edx
call fcn.00402e70
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
jmp 0x402693
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jne 0x4026a9
push str.fatal_error___scanner_input_buffer_overflow
call fcn.004024e0
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0x20]
mov dword [0x47c5a8], edx
mov eax, dword [0x47c5a4]
mov ecx, dword [eax + 0xc]
sub ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x402608
cmp dword [ebp - 0x18], 0x2000
jle 0x4026de
mov dword [ebp - 0x18], 0x2000
mov edx, dword [0x47c5a4]
cmp dword [edx + 0x18], 0
je 0x402797
mov dword [ebp - 0x2c], 0x2a
mov dword [ebp - 0x28], 0
jmp 0x402707
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x18]
jge 0x402743
mov edx, dword [0x47c5b0]
push edx
call fcn.00407f20
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x402743
cmp dword [ebp - 0x2c], 0xa
je 0x402743
mov eax, dword [0x47c5a4]
mov ecx, dword [eax + 4]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov al, byte [ebp - 0x2c]
mov byte [ecx + edx], al
jmp 0x4026fe
cmp dword [ebp - 0x2c], 0xa
jne 0x402767
mov ecx, dword [0x47c5a4]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 8]
mov eax, dword [ebp - 0x28]
mov cl, byte [ebp - 0x2c]
mov byte [edx + eax], cl
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x40278c
mov eax, dword [0x47c5b0]
push eax
call fcn.00407ea0
add esp, 4
test eax, eax
je 0x40278c
push 0x47ac7c
call fcn.004024e0
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [0x47c578], ecx
jmp 0x4027ea
mov edx, dword [0x47c5b0]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 1
mov ecx, dword [0x47c5a4]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 8]
push edx
call fcn.00407df0
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4027e1
mov eax, dword [0x47c5b0]
push eax
call fcn.00407ea0
add esp, 4
test eax, eax
je 0x4027e1
push str.input_in_flex_scanner_failed
call fcn.004024e0
add esp, 4
mov ecx, dword [ebp - 0x30]
mov dword [0x47c578], ecx
mov edx, dword [0x47c5a4]
mov eax, dword [0x47c578]
mov dword [edx + 0x10], eax
cmp dword [0x47c578], 0
jne 0x402835
cmp dword [ebp - 8], 0
jne 0x40281f
mov dword [ebp - 0x10], 1
mov ecx, dword [0x47c5b0]
push ecx
call fcn.00402a40
add esp, 4
jmp 0x402833
mov dword [ebp - 0x10], 2
mov edx, dword [0x47c5a4]
mov dword [edx + 0x24], 2
jmp 0x40283c
mov dword [ebp - 0x10], 0
mov eax, dword [0x47c578]
add eax, dword [ebp - 8]
mov dword [0x47c578], eax
mov ecx, dword [0x47c5a4]
mov edx, dword [ecx + 4]
mov eax, dword [0x47c578]
mov byte [edx + eax], 0
mov ecx, dword [0x47c5a4]
mov edx, dword [ecx + 4]
mov eax, dword [0x47c578]
mov byte [eax + edx + 1], 0
mov ecx, dword [0x47c5a4]
mov edx, dword [ecx + 4]
mov dword [0x47d664], edx
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret