Function at 0x4aafa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x24]
mov edi, dword [esi + 0x50]
mov edx, dword [eax + ecx*4]
mov eax, dword [esi + 0x1c]
inc eax
mov ecx, dword [edx + 4]
add eax, ecx
cmp ebx, eax
ja 0x4ab28a
sub ebx, edi
cmp dword [edx + 0x28], 0
jne 0x4aafe5
dec ebx
neg ebx
pop edi
sbb ebx, ebx
neg ebx
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
dec ebx
je 0x4aaffc
sub edi, ecx
mov edx, ebx
lea esp, [esp]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x4aaff0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov edi, dword [eax + ecx*4]
cmp dword [edi + 0x2c], 2
jne 0x4ab021
mov dword [esi + 0x1c], 0
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x10], 0
jmp 0x4ab1d3
mov edx, dword [edi + 0xc]
sub edx, ebx
dec edx
jne 0x4ab092
lea esp, [esp]
mov ecx, dword [esi + 0x24]
mov edx, dword [edi + 4]
sub ecx, edx
cmp dword [edi + 0x14], 0
mov dword [ebp - 8], ecx
je 0x4ab06a
mov ecx, dword [edi + 0xc]
lea eax, [ecx + ecx]
test eax, eax
jne 0x4ab052
mov eax, ecx
shr eax, 3
add eax, ecx
mov dword [edi + 0xc], eax
add eax, 2
push eax
push edx
call fcn.004bb52a
mov ecx, dword [ebp - 8]
add esp, 8
mov dword [edi + 4], eax
jmp 0x4ab071
mov dword [edi + 4], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x4ab295
add eax, ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x14]
mov edi, dword [eax + ecx*4]
mov edx, dword [edi + 0xc]
sub edx, ebx
dec edx
je 0x4ab030
mov ecx, dword [esi + 0xc]
mov eax, 0x2000
cmp edx, eax
cmova edx, eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], edx
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x18], 0
je 0x4ab13e
xor ecx, ecx
mov dword [ebp - 4], ecx
test edx, edx
je 0x4ab136
mov edi, edx
lea ecx, [ecx]
push dword [esi + 4]
call fcn.004bb0e6
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
cmp edx, 0xffffffff
je 0x4ab0fb
cmp edx, 0xa
je 0x4ab103
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + edx*4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 4]
add eax, ecx
inc ecx
mov dword [ebp - 4], ecx
mov byte [eax + ebx], dl
cmp ecx, edi
jb 0x4ab0c0
jmp 0x4ab0fe
mov ecx, dword [ebp - 4]
cmp edx, 0xa
jne 0x4ab11b
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, ecx
inc ecx
mov dword [ebp - 4], ecx
mov byte [eax + ebx], dl
cmp edx, 0xffffffff
jne 0x4ab136
push dword [esi + 4]
call fcn.004c2a09
add esp, 4
test eax, eax
jne 0x4ab2a0
mov ecx, dword [ebp - 4]
mov dword [esi + 0x1c], ecx
jmp 0x4ab1c4
call fcn.004bf304
mov edi, dword [ebp - 8]
mov dword [eax], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
push dword [esi + 4]
push edi
mov eax, dword [eax + ecx*4]
push 1
mov eax, dword [eax + 4]
add eax, ebx
push eax
call fcn.004c1dfb
add esp, 0x10
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x4ab1c4
push dword [esi + 4]
call fcn.004c2a09
add esp, 4
test eax, eax
je 0x4ab1c4
call fcn.004bf304
cmp dword [eax], 4
jne 0x4ab2a0
call fcn.004bf304
mov dword [eax], 0
push dword [esi + 4]
call fcn.004c2939
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
push dword [esi + 4]
push edi
mov eax, dword [eax + ecx*4]
push 1
mov eax, dword [eax + 4]
add eax, ebx
push eax
call fcn.004c1dfb
add esp, 0x14
mov dword [esi + 0x1c], eax
test eax, eax
je 0x4ab170
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x10], eax
cmp dword [esi + 0x1c], 0
jne 0x4ab201
test ebx, ebx
jne 0x4ab1ee
push esi
push dword [esi + 4]
lea edi, [ebx + 1]
call fcn.004aad90
add esp, 8
jmp 0x4ab203
mov ecx, dword [esi + 0xc]
mov edi, 2
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x2c], edi
jmp 0x4ab203
xor edi, edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea edx, [eax + ecx*4]
mov ecx, dword [esi + 0x1c]
mov esi, dword [edx]
lea eax, [ecx + ebx]
cmp eax, dword [esi + 0xc]
mov esi, dword [ebp + 8]
jbe 0x4ab24f
mov eax, ecx
shr eax, 1
add eax, ecx
add eax, ebx
push eax
mov eax, dword [edx]
push dword [eax + 4]
call fcn.004bb52a
mov edx, dword [esi + 0xc]
add esp, 8
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + edx*4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
lea edx, [eax + ecx*4]
mov eax, dword [edx]
cmp dword [eax + 4], 0
je 0x4ab2ab
add dword [esi + 0x1c], ebx
mov eax, dword [edx]
mov ecx, dword [esi + 0x1c]
mov eax, dword [eax + 4]
mov byte [ecx + eax], 0
mov eax, edi
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
pop edi
mov ecx, dword [ecx + edx*4]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x1c]
mov byte [edx + ecx + 1], 0
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + edx*4]
mov ecx, dword [ecx + 4]
mov dword [esi + 0x50], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.fatal_flex_scanner_internal_error__end_of_buffer_missed
push esi
call fcn.004aa270
push str.fatal_error___scanner_input_buffer_overflow
push esi
call fcn.004aa270
push str.input_in_flex_scanner_failed
push esi
call fcn.004aa270
push str.out_of_dynamic_memory_in_yy_get_next_buffer__
push esi
call fcn.004aa270
int3