Function at 0x40414c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4fe434]
mov ecx, dword [0x43027c]
inc eax
push esi
mov esi, dword [0x430284]
mov edx, dword [esi + 4]
add eax, edx
cmp ecx, eax
ja 0x404361
cmp dword [esi + 0x20], 0
jne 0x40418b
sub ecx, dword [0x430280]
xor eax, eax
cmp ecx, 1
setne al
inc eax
jmp 0x40435c
push ebx
push edi
mov edi, ecx
xor ebx, ebx
sub edi, dword [0x430280]
dec edi
mov dword [ebp - 4], edi
test edi, edi
jle 0x4041b6
mov esi, dword [0x430280]
mov al, byte [esi + ebx]
mov byte [edx], al
inc edx
inc ebx
cmp ebx, edi
jl 0x4041a5
mov esi, dword [0x430284]
xor eax, eax
inc eax
cmp dword [esi + 0x24], 2
jne 0x4041d2
mov ebx, dword [ebp - 4]
xor edi, edi
and dword [esi + 0x10], edi
mov dword [0x4fe434], edi
jmp 0x404316
mov edx, dword [esi + 0xc]
mov ebx, edx
sub ebx, edi
dec ebx
test ebx, ebx
jg 0x404233
sub ecx, dword [esi + 4]
cmp dword [esi + 0x14], 0
mov dword [ebp - 8], ecx
je 0x404211
lea eax, [edx + edx]
test eax, eax
jg 0x4041f8
mov eax, edx
shr eax, 3
add eax, edx
mov dword [esi + 0xc], eax
add eax, 2
push eax
push dword [esi + 4]
call fcn.0040a66b
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x404215
and dword [esi + 4], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40428f
mov edx, dword [esi + 0xc]
add ecx, eax
mov ebx, edx
mov dword [0x43027c], ecx
sub ebx, edi
dec ebx
test ebx, ebx
jle 0x4041de
xor eax, eax
inc eax
mov ecx, 0x2000
cmp ebx, ecx
jle 0x40423e
mov ebx, ecx
cmp dword [esi + 0x18], 0
je 0x4042ce
xor edi, edi
test ebx, ebx
jle 0x4042c3
push dword [0x430294]
call fcn.00409ebe
mov esi, dword [0x430284]
mov edx, eax
pop ecx
cmp edx, 0xffffffff
je 0x40427c
cmp edx, 0xa
je 0x404281
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 4]
add ecx, edi
inc edi
mov byte [ecx + eax], dl
cmp edi, ebx
jl 0x40424e
cmp edx, 0xa
jne 0x404299
mov eax, dword [esi + 4]
mov ebx, dword [ebp - 4]
add eax, edi
inc edi
mov byte [eax + ebx], dl
jmp 0x40429c
mov ecx, str.fatal_error___scanner_input_buffer_overflow
jmp 0x404366
mov ebx, dword [ebp - 4]
cmp edx, 0xffffffff
jne 0x4042c6
push dword [0x430294]
call fcn.00409dce
pop ecx
test eax, eax
je 0x4042bb
mov ecx, str.input_in_flex_scanner_failed
jmp 0x404366
mov esi, dword [0x430284]
jmp 0x4042c6
mov ebx, dword [ebp - 4]
mov dword [0x4fe434], edi
jmp 0x40430f
push dword [0x430294]
push ebx
push eax
mov eax, dword [esi + 4]
add eax, edi
push eax
call fcn.0040a3e4
mov edi, eax
add esp, 0x10
mov dword [0x4fe434], edi
test edi, edi
jne 0x404306
push dword [0x430294]
call fcn.00409dce
pop ecx
test eax, eax
jne 0x4042b1
mov edi, dword [0x4fe434]
mov ebx, dword [ebp - 4]
mov esi, dword [0x430284]
mov dword [esi + 0x10], edi
test edi, edi
jne 0x404338
test ebx, ebx
jne 0x404330
call fcn.0040449f
mov esi, dword [0x430284]
xor eax, eax
mov edi, dword [0x4fe434]
inc eax
jmp 0x40433a
push 2
pop eax
mov dword [esi + 0x24], eax
jmp 0x40433a
xor eax, eax
mov ecx, dword [esi + 4]
add edi, ebx
mov dword [0x4fe434], edi
mov byte [edi + ecx], 0
mov ecx, dword [esi + 4]
mov byte [edi + ecx + 1], 0
mov ecx, dword [esi + 4]
pop edi
mov dword [0x430280], ecx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.004045d4
int3