Function at 0x617820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [0x770438]
mov eax, dword [0x770430]
push ebx
push esi
mov esi, dword [0x770440]
lea ebx, [ecx + eax*4]
mov ecx, dword [0x770424]
mov eax, dword [0x77043c]
mov dword [ebp - 8], ebx
inc eax
mov ebx, dword [ebx]
push edi
mov edx, dword [ebx + 4]
add eax, edx
cmp esi, eax
ja 0x617b3d
cmp dword [ebx + 0x28], 0
jne 0x617874
sub esi, ecx
dec esi
neg esi
sbb esi, esi
neg esi
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, esi
sub edi, ecx
dec edi
mov dword [ebp - 4], edi
test edi, edi
jle 0x617898
mov ebx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
sub ebx, 1
jne 0x617882
mov ecx, dword [ebp - 8]
mov ebx, dword [ecx]
jmp 0x61789b
mov ecx, dword [ebp - 8]
cmp dword [ebx + 0x2c], 2
jne 0x6178b1
xor esi, esi
mov dword [0x77043c], esi
mov dword [ebx + 0x10], esi
jmp 0x617a89
mov edi, dword [ebx + 0xc]
sub edi, dword [ebp - 4]
dec edi
test edi, edi
jg 0x617922
nop dword [eax]
mov edi, dword [ebx + 4]
sub esi, edi
cmp dword [ebx + 0x14], 0
je 0x617b47
mov ecx, dword [ebx + 0xc]
lea eax, [ecx + ecx]
test eax, eax
jg 0x6178e6
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, ecx
mov dword [ebx + 0xc], eax
add eax, 2
push eax
push edi
call fcn.00628929
add esp, 8
mov dword [ebx + 4], eax
test eax, eax
je 0x617b4e
mov ecx, dword [0x770438]
add esi, eax
mov eax, dword [0x770430]
mov dword [0x770440], esi
mov ebx, dword [ecx + eax*4]
mov edi, dword [ebx + 0xc]
sub edi, dword [ebp - 4]
dec edi
test edi, edi
jle 0x6178c0
mov ecx, dword [0x770438]
mov eax, 0x2000
cmp edi, eax
cmovg edi, eax
mov eax, dword [0x770430]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x18], 0
je 0x6179c0
xor esi, esi
test edi, edi
jle 0x6179b5
mov ebx, dword [ebp - 4]
nop dword [eax]
push dword [0x77041c]
call fcn.0062317a
mov edx, eax
add esp, 4
cmp edx, 0xffffffff
je 0x61799f
mov ecx, dword [0x770438]
mov eax, dword [0x770430]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 4]
add eax, esi
inc esi
cmp edx, 0xa
je 0x617990
mov byte [eax + ebx], dl
cmp esi, edi
jl 0x617950
mov dword [0x77043c], esi
jmp 0x617a6f
mov byte [eax + ebx], 0xa
mov dword [0x77043c], esi
jmp 0x617a6f
push dword [0x77041c]
call fcn.0062300a
add esp, 4
test eax, eax
jne 0x617b58
mov dword [0x77043c], esi
jmp 0x617a6f
call fcn.00626d30
mov ecx, dword [0x770438]
mov ebx, dword [ebp - 4]
mov dword [eax], 0
mov eax, dword [0x770430]
push dword [0x77041c]
push edi
mov eax, dword [ecx + eax*4]
push 1
mov eax, dword [eax + 4]
add eax, ebx
push eax
call fcn.00623439
mov esi, eax
add esp, 0x10
mov dword [0x77043c], esi
test esi, esi
jne 0x617a6f
nop
push dword [0x77041c]
call fcn.0062300a
add esp, 4
test eax, eax
je 0x617a69
call fcn.00626d30
cmp dword [eax], 4
jne 0x617b58
call fcn.00626d30
mov dword [eax], 0
push dword [0x77041c]
call fcn.00628978
mov ecx, dword [0x770438]
mov eax, dword [0x770430]
push dword [0x77041c]
push edi
mov eax, dword [ecx + eax*4]
push 1
mov eax, dword [eax + 4]
add eax, ebx
push eax
call fcn.00623439
mov esi, eax
add esp, 0x14
mov dword [0x77043c], esi
test esi, esi
je 0x617a00
jmp 0x617a6f
mov esi, dword [0x77043c]
mov eax, dword [0x770430]
mov ecx, dword [0x770438]
mov edi, dword [ebp - 4]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
mov dword [eax + 0x10], esi
test esi, esi
jne 0x617ab2
test edi, edi
jne 0x617aa6
push dword [0x77041c]
lea ebx, [edi + 1]
call fcn.0061c780
mov esi, dword [0x77043c]
add esp, 4
jmp 0x617ab4
mov eax, dword [ecx]
mov ebx, 2
mov dword [eax + 0x2c], ebx
jmp 0x617ab4
xor ebx, ebx
mov ecx, dword [0x770438]
mov eax, dword [0x770430]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
lea eax, [esi + edi]
cmp eax, dword [ecx + 0xc]
jle 0x617b10
mov eax, esi
sar eax, 1
add eax, esi
add eax, edi
push eax
push dword [ecx + 4]
mov dword [ebp - 8], eax
call fcn.00628929
mov ecx, dword [0x770430]
add esp, 8
mov edx, dword [0x770438]
lea edx, [edx + ecx*4]
mov ecx, dword [edx]
mov dword [ecx + 4], eax
mov ecx, dword [edx]
cmp dword [ecx + 4], 0
je 0x617b62
mov eax, dword [ebp - 8]
mov esi, dword [0x77043c]
add eax, 0xfffffffe
mov dword [ecx + 0xc], eax
mov ecx, dword [edx]
mov ecx, dword [ecx + 4]
add esi, edi
pop edi
mov dword [0x77043c], esi
mov eax, ebx
mov byte [esi + ecx], 0
mov ecx, dword [edx]
mov ecx, dword [ecx + 4]
mov byte [ecx + esi + 1], 0
mov ecx, dword [edx]
pop esi
pop ebx
mov ecx, dword [ecx + 4]
mov dword [0x770424], ecx
mov esp, ebp
pop ebp
ret
push str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call fcn.006177f0
mov dword [ebx + 4], 0
push str.fatal_error___scanner_input_buffer_overflow
call fcn.006177f0
push str.input_in_flex_scanner_failed
call fcn.006177f0
push str.out_of_dynamic_memory_in_yy_get_next_buffer__
call fcn.006177f0
int3