Function at 0x407579
Capabilities:
Terminate process

Disassembly:
xor eax, eax
cmp dword [0x41d034], eax
je 0x406aa8
cmp dword [0x41f74c], eax
mov dword [0x41d034], eax
jne 0x406a65
mov dword [0x41f74c], 1
mov ecx, dword [0x41f750]
cmp ecx, eax
jne 0x406a7a
mov ecx, 0x41e360
mov dword [0x41f750], ecx
cmp dword [0x41f754], eax
jne 0x406a8c
mov dword [0x41f754], 0x41e380
cmp dword [0x41f744], eax
jne 0x406aa3
mov edx, 0x4000
call fcn.00407344
mov dword [0x41f744], eax
call fcn.00407318
push ebx
push ebp
push esi
push edi
mov ecx, dword [0x41f748]
mov al, byte [0x41f415]
mov edi, ecx
mov byte [ecx], al
mov esi, dword [0x41f74c]
mov ebx, edi
movzx eax, byte [edi]
mov dl, byte [eax*4 + 0x41778c]
lea eax, [esi + esi]
cmp word [eax + 0x417744], 0
je 0x406ae6
mov dword [0x41f740], esi
mov dword [0x41f724], edi
movsx ebp, word [eax + 0x417ba8]
xor ecx, ecx
mov cl, dl
add ebp, ecx
movsx ebp, word [ebp*2 + 0x417cd4]
cmp ebp, esi
je 0x406b17
movsx esi, word [eax + 0x417c00]
cmp esi, 0x23
jl 0x406b12
mov dl, byte [ecx*4 + 0x417b8c]
lea eax, [esi + esi]
jmp 0x406ae6
movsx eax, word [esi*2 + 0x417ba8]
xor ecx, ecx
mov cl, dl
add eax, ecx
movsx esi, word [eax*2 + 0x417c58]
inc edi
cmp word [esi*2 + 0x417ba8], 0x36
jne 0x406ac3
movsx eax, word [esi*2 + 0x417744]
test eax, eax
jne 0x406b58
mov eax, dword [0x41f740]
mov edi, dword [0x41f724]
movsx eax, word [eax*2 + 0x417744]
mov ecx, edi
sub ecx, ebx
mov dword [0x41f728], ebx
mov dword [0x41f400], ecx
mov cl, byte [edi]
mov byte [0x41f415], cl
and byte [edi], 0
mov esi, dword [0x41f728]
mov ecx, edi
mov dword [0x41f748], ecx
cmp eax, 0xd
ja case.default.0x406b8a
jmp dword [eax*4 + 0x406ee2]
mov al, byte [0x41f415]
mov ebp, edi
sub ebp, esi
mov byte [edi], al
mov eax, dword [0x41f744]
xor esi, esi
dec ebp
cmp dword [eax + 0x24], esi
jne 0x406bcb
mov ecx, dword [eax + 0x10]
mov dword [0x41f720], ecx
mov ecx, dword [0x41f750]
mov dword [eax], ecx
mov eax, dword [0x41f744]
mov dword [eax + 0x24], 1
mov eax, dword [0x41f744]
mov eax, dword [eax + 4]
add eax, dword [0x41f720]
cmp dword [0x41f748], eax
jbe 0x406c61
call 0x406f1a
sub eax, esi
je 0x406ca3
dec eax
jne 0x406c17
mov eax, dword [0x41f74c]
dec eax
cdq
mov dword [0x41f40c], esi
mov esi, dword [0x41f728]
sub eax, edx
mov ecx, esi
sar eax, 1
mov dword [0x41f748], ecx
add eax, 0xc
jmp 0x406b81
dec eax
jne 0x406aac
mov eax, dword [0x41f744]
mov eax, dword [eax + 4]
add eax, dword [0x41f720]
mov dword [0x41f748], eax
call fcn.0040716b
mov edi, dword [0x41f748]
mov ebx, dword [0x41f728]
mov esi, eax
jmp 0x406b39
mov al, byte [0x41f415]
mov byte [edi], al
mov edi, dword [0x41f724]
mov esi, dword [0x41f740]
jmp 0x406b39
mov eax, dword [0x41f728]
add eax, ebp
mov dword [0x41f748], eax
call fcn.0040716b
mov esi, eax
mov ecx, esi
call fcn.00407201
test eax, eax
mov ebx, dword [0x41f728]
jne 0x406c90
mov edi, dword [0x41f748]
jmp 0x406b39
inc dword [0x41f748]
mov edi, dword [0x41f748]
mov esi, eax
jmp 0x406ac3
mov eax, dword [0x41f728]
add eax, ebp
mov dword [0x41f748], eax
call fcn.0040716b
mov edi, dword [0x41f748]
mov ebx, dword [0x41f728]
mov esi, eax
jmp 0x406ac3
mov al, byte [esi + 1]
cmp al, byte [0x41f414]
jne case.0x406b8a.6
mov edx, dword [0x41f744]
mov eax, ecx
mov dword [0x41f72c], 1
sub eax, dword [edx + 4]
sub eax, dword [0x41f400]
cmp dword [0x41f410], 0
mov dword [0x41f73c], eax
jle 0x406e73
mov dword [0x41f74c], 3
jmp case.0x406b8a.6
mov dl, byte [esi + 1]
push 1
pop eax
test dl, dl
je case.0x406b8a.6
cmp dl, byte [0x41f414]
je 0x406e82
mov dl, byte [esi + eax + 1]
inc eax
jmp 0x406d18
mov eax, dword [0x41f404]
lea eax, [eax + eax*2]
inc esi
push esi
lea ecx, [eax*4 + 0x41f418]
call fcn.00402ede
mov eax, dword [0x41f404]
lea eax, [eax + eax*2]
push 1
lea ecx, [eax*4 + 0x41f418]
call fcn.00403111
jmp 0x406d76
mov eax, dword [0x41f404]
lea eax, [eax + eax*2]
push esi
lea ecx, [eax*4 + 0x41f418]
call fcn.00402ede
inc dword [0x41f404]
mov eax, dword [0x41f404]
cmp eax, dword [0x41f410]
je 0x406eac
jmp 0x406aac
mov eax, dword [0x41f71c]
lea eax, [eax + eax*2]
inc esi
push esi
lea ecx, [eax*4 + 0x41f418]
call fcn.00402ede
mov eax, dword [0x41f71c]
push 1
pop esi
lea eax, [eax + eax*2]
push esi
lea ecx, [eax*4 + 0x41f418]
call fcn.00403111
mov ecx, dword [0x41f748]
mov eax, dword [0x41f744]
mov edx, ecx
sub edx, dword [0x41f400]
sub edx, dword [eax + 4]
mov dword [0x41f73c], edx
mov edx, ecx
sub edx, dword [eax + 4]
mov eax, dword [0x41f71c]
inc dword [0x41f71c]
cmp eax, dword [0x41f718]
mov dword [0x41f408], edx
je 0x406ebc
jmp case.0x406b8a.6
mov eax, dword [0x41f71c]
lea eax, [eax + eax*2]
push esi
lea ecx, [eax*4 + 0x41f418]
call fcn.00402ede
mov ecx, dword [0x41f748]
mov eax, dword [0x41f744]
mov edx, ecx
sub edx, dword [0x41f400]
sub edx, dword [eax + 4]
mov dword [0x41f73c], edx
mov edx, ecx
sub edx, dword [eax + 4]
mov eax, dword [0x41f71c]
inc dword [0x41f71c]
cmp eax, dword [0x41f718]
mov dword [0x41f408], edx
je 0x406ea0
jmp case.0x406b8a.6
push dword [0x41f754]
push 1
push dword [0x41f400]
push esi
call fcn.0040d746
add esp, 0x10
jmp 0x406aac
add eax, 2
mov dword [0x41f408], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [0x41f744]
sub ecx, dword [edx + 4]
sub ecx, dword [0x41f400]
add ecx, eax
mov dword [0x41f73c], ecx
inc ecx
mov dword [0x41f408], ecx
mov dword [0x41f72c], 1
jmp case.0x406b8a.3
mov eax, dword [0x41f748]
mov ecx, dword [0x41f744]
sub eax, dword [ecx + 4]
jmp 0x406e76
mov dword [0x41f72c], esi
jmp case.0x406b8a.3
push str.fatal_flex_scanner_internal_error__no_action_found
push 0x41d038
push 0x41e3a0
call fcn.0040e0a6
add esp, 0xc
push 2
call fcn.0040dfb3
dec ecx
insb byte es:[edi], dx
inc eax
add bh, al
insb byte es:[edi], dx
inc eax
add byte [edx], dl
insd dword es:[edi], dx
inc eax
add byte [ebx + 0x6e], bh
inc eax
add byte [ebx], dh
insd dword es:[edi], dx
inc eax
add byte [ecx + 0x6d], ah
inc eax
add byte [edx - 0x6dffbf96], dh
insd dword es:[edi], dx
inc eax
add byte [ebx], al
outsb dx, byte [esi]
inc eax
add byte [edx + 0x5700406a], dh
outsb dx, byte [esi]
inc eax
add byte [ecx + 0x7b00406b], dl
outsb dx, byte [esi]
inc eax
add byte [ebx + 0x6e], bh
inc eax
add byte [ebx + 0x41f7440d], cl
add byte [ecx + 0x41f720], ah
mov edx, dword [0x41f728]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
lea edi, [esi + eax + 1]
mov eax, dword [0x41f748]
cmp eax, edi
jbe 0x406f5c
push str.fatal_flex_scanner_internal_error__end_of_buffer_missed
push 0x41d038
push 0x41e3a0
call fcn.0040e0a6
add esp, 0xc
push 2
call fcn.0040dfb3
cmp dword [ecx + 0x20], 0
jne 0x406f74
sub eax, edx
xor ecx, ecx
cmp eax, 1
setne cl
inc ecx
mov eax, ecx
jmp 0x407167
mov edi, eax
sub edi, edx
dec edi
test edi, edi
jle 0x406f93
mov eax, edi
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x406f7f
mov ecx, dword [0x41f744]
mov eax, dword [0x41f748]
cmp dword [ecx + 0x24], 2
jne 0x406fa9
and dword [0x41f720], 0
and dword [ecx + 0x10], 0
jmp 0x407104
mov esi, dword [ecx + 0xc]
sub esi, edi
dec esi
test esi, esi
jg 0x407020
sub eax, dword [ecx + 4]
cmp dword [ecx + 0x14], 0
lea esi, [ecx + 4]
mov ebx, eax
je 0x406fe9
mov eax, dword [ecx + 0xc]
lea edx, [eax + eax]
test edx, edx
jg 0x406fd2
mov edx, eax
shr edx, 3
add edx, eax
mov dword [ecx + 0xc], edx
mov eax, dword [ecx + 0xc]
mov ecx, dword [esi]
inc eax
inc eax
push eax
push ecx
call fcn.0040e27e
pop ecx
pop ecx
mov dword [esi], eax
jmp 0x406fec
and dword [esi], 0
mov esi, dword [esi]
test esi, esi
je 0x407002
mov ecx, dword [0x41f744]
lea eax, [esi + ebx]
mov dword [0x41f748], eax
jmp 0x406fa9
push str.fatal_error___scanner_input_buffer_overflow
push 0x41d038
push 0x41e3a0
call fcn.0040e0a6
add esp, 0xc
push 2
call fcn.0040dfb3
mov eax, 0x2000
cmp esi, eax
jle 0x40702b
mov esi, eax
xor ebx, ebx
cmp dword [ecx + 0x18], ebx
je 0x4070b1
test esi, esi
jle 0x4070a8
push dword [0x41f750]
call fcn.0040e273
cmp eax, 0xffffffff
pop ecx
je 0x40705f
cmp eax, 0xa
je 0x407064
mov ecx, dword [0x41f744]
mov ecx, dword [ecx + 4]
add ecx, ebx
inc ebx
cmp ebx, esi
mov byte [ecx + edi], al
jl 0x407036
cmp eax, 0xa
jne 0x407074
mov ecx, dword [0x41f744]
mov ecx, dword [ecx + 4]
add ecx, ebx
mov byte [ecx + edi], 0xa
inc ebx
cmp eax, 0xffffffff
jne 0x4070a2
mov eax, dword [0x41f750]
test byte [eax + 0xc], 0x20
je 0x4070a2
push str.input_in_flex_scanner_failed
push 0x41d038
push 0x41e3a0
call fcn.0040e0a6
add esp, 0xc
push 2
call fcn.0040dfb3
mov ecx, dword [0x41f744]
mov eax, ebx
mov dword [0x41f720], eax
jmp 0x407101
push dword [0x41f750]
mov eax, dword [ecx + 4]
push esi
add eax, edi
push 1
push eax
call fcn.0040d62f
add esp, 0x10
cmp eax, ebx
mov dword [0x41f720], eax
jne 0x4070fb
mov ecx, dword [0x41f750]
test byte [ecx + 0xc], 0x20
je 0x4070fb
push str.input_in_flex_scanner_failed
push 0x41d038
push 0x41e3a0
call fcn.0040e0a6
add esp, 0xc
push 2
call fcn.0040dfb3
mov ecx, dword [0x41f744]
mov dword [ecx + 0x10], eax
xor esi, esi
cmp dword [0x41f720], esi
jne 0x40712d
cmp edi, esi
jne 0x407122
mov ecx, dword [0x41f750]
push 1
pop esi
call fcn.0040728d
jmp 0x40712d
mov eax, dword [0x41f744]
push 2
pop esi
mov dword [eax + 0x24], esi
add dword [0x41f720], edi
mov eax, dword [0x41f744]
mov eax, dword [eax + 4]
mov ecx, dword [0x41f720]
and byte [eax + ecx], 0
mov eax, dword [0x41f744]
mov eax, dword [eax + 4]
mov ecx, dword [0x41f720]
and byte [eax + ecx + 1], 0
mov eax, dword [0x41f744]
mov eax, dword [eax + 4]
mov dword [0x41f728], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov ecx, 0x41f730
mov dword [0x41f74c], 1
call fcn.004031e5
mov ecx, eax
call fcn.00407474
jmp 0x406a44