Function at 0x45b050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x515bc4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [0x5171b8]
mov dword [ebp - 0x14], edx
mov eax, dword [0x515bc4]
mov ecx, dword [eax + 4]
mov edx, dword [0x515bb8]
lea eax, [edx + ecx + 1]
cmp dword [0x515bc8], eax
jbe 0x45b091
push str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.0045b980
add esp, 4
mov ecx, dword [0x515bc4]
cmp dword [ecx + 0x20], 0
jne 0x45b0c4
mov edx, dword [0x515bc8]
sub edx, dword [0x5171b8]
cmp edx, 1
jne 0x45b0ba
mov eax, 1
jmp 0x45b395
mov eax, 2
jmp 0x45b395
mov eax, dword [0x515bc8]
sub eax, dword [0x5171b8]
sub eax, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x45b0e7
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jge 0x45b10d
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 0x45b0de
mov edx, dword [0x515bc4]
cmp dword [edx + 0x24], 2
jne 0x45b136
mov dword [0x515bb8], 0
mov eax, dword [0x515bc4]
mov ecx, dword [0x515bb8]
mov dword [eax + 0x10], ecx
jmp 0x45b30b
mov edx, dword [0x515bc4]
mov eax, dword [edx + 0xc]
sub eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x45b20e
mov ecx, dword [0x515bc4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x515bc8]
sub eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x14], 0
je 0x45b1c9
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
shl eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jg 0x45b19a
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 0x45b1a8
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.0045b9d0
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
jmp 0x45b1d3
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jne 0x45b1e9
push str.fatal_error___scanner_input_buffer_overflow
call fcn.0045b980
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0x20]
mov dword [0x515bc8], edx
mov eax, dword [0x515bc4]
mov ecx, dword [eax + 0xc]
sub ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x45b148
cmp dword [ebp - 0x18], 0x2000
jle 0x45b21e
mov dword [ebp - 0x18], 0x2000
mov edx, 1
test edx, edx
je 0x45b2ae
mov dword [ebp - 0x2c], 0x2a
mov dword [ebp - 0x28], 0
jmp 0x45b244
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x18]
jge 0x45b280
mov edx, dword [0x515bd0]
push edx
call fcn.0045aab0
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x45b280
cmp dword [ebp - 0x2c], 0xa
je 0x45b280
mov eax, dword [0x515bc4]
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 0x45b23b
cmp dword [ebp - 0x2c], 0xa
jne 0x45b2a4
mov ecx, dword [0x515bc4]
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
mov eax, dword [ebp - 0x28]
mov dword [0x515bb8], eax
jmp 0x45b2fd
mov ecx, dword [0x515bd0]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 1
mov eax, dword [0x515bc4]
mov ecx, dword [eax + 4]
add ecx, dword [ebp - 8]
push ecx
call fcn.00495599
add esp, 0x10
mov dword [0x515bb8], eax
cmp dword [0x515bb8], 0
jne 0x45b2fd
mov edx, dword [0x515bd0]
push edx
call fcn.00493ade
add esp, 4
test eax, eax
je 0x45b2fd
push str.input_in_flex_scanner_failed
call fcn.0045b980
add esp, 4
mov eax, dword [0x515bc4]
mov ecx, dword [0x515bb8]
mov dword [eax + 0x10], ecx
cmp dword [0x515bb8], 0
jne 0x45b347
cmp dword [ebp - 8], 0
jne 0x45b332
mov dword [ebp - 0x10], 1
mov edx, dword [0x515bd0]
push edx
call fcn.0045b540
add esp, 4
jmp 0x45b345
mov dword [ebp - 0x10], 2
mov eax, dword [0x515bc4]
mov dword [eax + 0x24], 2
jmp 0x45b34e
mov dword [ebp - 0x10], 0
mov ecx, dword [0x515bb8]
add ecx, dword [ebp - 8]
mov dword [0x515bb8], ecx
mov edx, dword [0x515bc4]
mov eax, dword [edx + 4]
mov ecx, dword [0x515bb8]
mov byte [eax + ecx], 0
mov edx, dword [0x515bc4]
mov eax, dword [edx + 4]
mov ecx, dword [0x515bb8]
mov byte [ecx + eax + 1], 0
mov edx, dword [0x515bc4]
mov eax, dword [edx + 4]
mov dword [0x5171b8], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret