Function at 0x416130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
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 0x416419
sub ebx, edi
dec ebx
cmp dword [edx + 0x28], 0
jne 0x416174
neg ebx
pop edi
sbb ebx, ebx
neg ebx
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jle 0x41618c
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 0x416180
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea edx, [ecx + eax*4]
mov eax, dword [edx]
cmp dword [eax + 0x2c], 2
jne 0x4161b2
mov dword [esi + 0x1c], 0
mov eax, dword [edx]
mov dword [eax + 0x10], 0
jmp 0x416365
mov edi, dword [eax + 0xc]
sub edi, ebx
dec edi
test edi, edi
jg 0x41622b
lea esp, [esp]
xor edi, edi
test ecx, ecx
mov ecx, dword [esi + 0x24]
cmovne edi, eax
mov edx, dword [edi + 4]
sub ecx, edx
cmp dword [edi + 0x14], 0
mov dword [ebp - 4], ecx
je 0x416201
mov ecx, dword [edi + 0xc]
lea eax, [ecx + ecx]
test eax, eax
jg 0x4161e9
mov eax, ecx
shr eax, 3
add eax, ecx
mov dword [edi + 0xc], eax
add eax, 2
push eax
push edx
call fcn.0041befc
mov ecx, dword [ebp - 4]
add esp, 8
mov dword [edi + 4], eax
jmp 0x416208
mov dword [edi + 4], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x416423
add eax, ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0xc]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax + 0xc]
sub edi, ebx
dec edi
test edi, edi
jle 0x4161c0
mov ecx, dword [esi + 0xc]
mov eax, 0x2000
cmp edi, eax
cmovg edi, eax
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x18], 0
je 0x4162d3
xor ecx, ecx
mov dword [ebp - 4], ecx
test edi, edi
je 0x4162cb
push dword [esi + 4]
call fcn.0041cecb
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
cmp edx, 0xffffffff
je 0x416290
cmp edx, 0xa
je 0x416298
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 0x416255
jmp 0x416293
mov ecx, dword [ebp - 4]
cmp edx, 0xa
jne 0x4162b0
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 0x4162cb
push dword [esi + 4]
call fcn.0041cc1b
add esp, 4
test eax, eax
jne 0x41642d
mov ecx, dword [ebp - 4]
mov dword [esi + 0x1c], ecx
jmp 0x416356
call fcn.0041c6dc
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.0041cb6f
add esp, 0x10
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x416356
push dword [esi + 4]
call fcn.0041cc1b
add esp, 4
test eax, eax
je 0x416356
call fcn.0041c6dc
cmp dword [eax], 4
jne 0x41642d
call fcn.0041c6dc
mov dword [eax], 0
push dword [esi + 4]
call fcn.0041cfc4
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.0041cb6f
add esp, 0x14
mov dword [esi + 0x1c], eax
test eax, eax
je 0x416302
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 0x416391
test ebx, ebx
jne 0x41637e
mov ecx, dword [esi + 4]
lea edi, [ebx + 1]
mov edx, esi
call fcn.004165b0
jmp 0x416393
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 0x416393
xor edi, edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x1c]
mov ecx, dword [edx]
add eax, ebx
cmp eax, dword [ecx + 0xc]
mov ecx, dword [esi + 0x1c]
jbe 0x4163de
mov eax, ecx
sar eax, 1
add eax, ecx
add eax, ebx
push eax
mov eax, dword [edx]
push dword [eax + 4]
call fcn.0041befc
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 0x416437
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
mov ecx, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.00416a80
mov ecx, str.fatal_error___scanner_input_buffer_overflow
call fcn.00416a80
mov ecx, str.input_in_flex_scanner_failed
call fcn.00416a80
mov ecx, str.out_of_dynamic_memory_in_yy_get_next_buffer__
call fcn.00416a80
int3