Function at 0x418dd0
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 0x4190b9
sub ebx, edi
dec ebx
cmp dword [edx + 0x28], 0
jne 0x418e14
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 0x418e2c
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 0x418e20
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 0x418e52
mov dword [esi + 0x1c], 0
mov eax, dword [edx]
mov dword [eax + 0x10], 0
jmp 0x419005
mov edi, dword [eax + 0xc]
sub edi, ebx
dec edi
test edi, edi
jg 0x418ecb
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 0x418ea1
mov ecx, dword [edi + 0xc]
lea eax, [ecx + ecx]
test eax, eax
jg 0x418e89
mov eax, ecx
shr eax, 3
add eax, ecx
mov dword [edi + 0xc], eax
add eax, 2
push eax
push edx
call fcn.0041ef28
mov ecx, dword [ebp - 4]
add esp, 8
mov dword [edi + 4], eax
jmp 0x418ea8
mov dword [edi + 4], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x4190c3
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 0x418e60
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 0x418f73
xor ecx, ecx
mov dword [ebp - 4], ecx
test edi, edi
je 0x418f6b
push dword [esi + 4]
call fcn.0041fef7
mov edx, eax
add esp, 4
mov dword [ebp - 8], edx
cmp edx, 0xffffffff
je 0x418f30
cmp edx, 0xa
je 0x418f38
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 0x418ef5
jmp 0x418f33
mov ecx, dword [ebp - 4]
cmp edx, 0xa
jne 0x418f50
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 0x418f6b
push dword [esi + 4]
call fcn.0041fc47
add esp, 4
test eax, eax
jne 0x4190cd
mov ecx, dword [ebp - 4]
mov dword [esi + 0x1c], ecx
jmp 0x418ff6
call fcn.0041f708
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.0041fb9b
add esp, 0x10
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x418ff6
push dword [esi + 4]
call fcn.0041fc47
add esp, 4
test eax, eax
je 0x418ff6
call fcn.0041f708
cmp dword [eax], 4
jne 0x4190cd
call fcn.0041f708
mov dword [eax], 0
push dword [esi + 4]
call fcn.0041fff0
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.0041fb9b
add esp, 0x14
mov dword [esi + 0x1c], eax
test eax, eax
je 0x418fa2
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 0x419031
test ebx, ebx
jne 0x41901e
mov ecx, dword [esi + 4]
lea edi, [ebx + 1]
mov edx, esi
call fcn.00419250
jmp 0x419033
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 0x419033
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 0x41907e
mov eax, ecx
sar eax, 1
add eax, ecx
add eax, ebx
push eax
mov eax, dword [edx]
push dword [eax + 4]
call fcn.0041ef28
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 0x4190d7
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.00419720
mov ecx, str.fatal_error___scanner_input_buffer_overflow
call fcn.00419720
mov ecx, str.input_in_flex_scanner_failed
call fcn.00419720
mov ecx, str.out_of_dynamic_memory_in_yy_get_next_buffer__
call fcn.00419720
int3