Function at 0x4160a0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x587738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x602378]
mov ecx, dword [0x60237c]
xor ebx, ebx
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], ebx
mov dword [0x602378], eax
jle 0x416130
mov ecx, dword [0x602380]
cmp ecx, ebx
jne 0x416103
push 0x10
mov dword [0x60237c], 1
call fcn.0053c3bb
add esp, 4
cmp eax, ebx
mov dword [0x602380], eax
jne 0x41612b
push str.malloc___error_in_PushString__
jmp 0x416123
mov dword [0x60237c], eax
shl eax, 4
push eax
push ecx
call fcn.0053c08c
add esp, 8
cmp eax, ebx
mov dword [0x602380], eax
jne 0x41612b
push str.realloc___error_in_PushString__
call fcn.0053d238
add esp, 4
mov eax, dword [0x602378]
cmp eax, 1
jne 0x416191
mov ecx, dword [0x602380]
mov eax, dword [0x602364]
mov dword [ecx], eax
mov edx, dword [0x602378]
mov eax, dword [0x602380]
mov ecx, dword [0x603558]
shl edx, 4
push ecx
mov dword [edx + eax - 0xc], ecx
mov edx, dword [0x602378]
mov eax, dword [0x602380]
mov ecx, esp
shl edx, 4
mov dword [esp + 0x14], esp
mov dword [edx + eax - 4], ebx
lea edx, [esp + 0x2c]
push edx
call fcn.00556e93
mov eax, dword [esp + 0x28]
push eax
call fcn.004160a0
add esp, 8
mov esi, eax
jmp 0x41637c
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0x10], eax
cmp byte [eax], bl
je 0x4161a8
mov cl, byte [esi + eax + 1]
inc esi
cmp cl, bl
jne 0x41619f
lea ebp, [esi + 2]
push ebp
call fcn.0053c3bb
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x4161d8
push str.out_of_dynamic_memory_in_yy_scan_bytes__
push 0x5ec77c
push 0x5fef80
call fcn.0053cf6b
add esp, 0xc
push 2
call fcn.0053ce78
cmp esi, ebx
jle 0x4161f1
mov ecx, dword [esp + 0x10]
mov eax, edi
sub ecx, edi
mov edx, esi
mov bl, byte [ecx + eax]
mov byte [eax], bl
inc eax
dec edx
jne 0x4161e6
xor ebx, ebx
mov byte [edi + esi + 1], bl
cmp ebp, 2
mov byte [edi + esi], bl
jb 0x4163a2
cmp byte [edi + ebp - 2], bl
jne 0x4163a2
cmp byte [edi + ebp - 1], bl
jne 0x4163a2
push 0x28
call fcn.0053c3bb
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x416243
push str.out_of_dynamic_memory_in_yy_scan_buffer__
push 0x5ec77c
push 0x5fef80
call fcn.0053cf6b
add esp, 0xc
push 2
call fcn.0053ce78
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea eax, [ebp - 2]
mov edi, 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [0x602364]
cmp eax, esi
je 0x4162b0
cmp eax, ebx
je 0x41629f
mov ecx, dword [0x602368]
mov dl, byte [0x602350]
mov byte [ecx], dl
mov eax, dword [0x602364]
mov ecx, dword [0x602368]
mov dword [eax + 8], ecx
mov edx, dword [0x602364]
mov eax, dword [0x602354]
mov dword [edx + 0x10], eax
mov dword [0x602364], esi
call fcn.00415c40
mov dword [0x602348], edi
mov dword [esi + 0x14], edi
mov ecx, dword [0x602378]
mov edx, dword [0x602380]
shl ecx, 4
mov dword [ecx + edx - 0x10], esi
mov ecx, dword [0x602378]
mov edx, dword [0x602380]
mov eax, ecx
shl eax, 4
mov eax, dword [eax + edx - 0x10]
mov edx, dword [0x602364]
cmp edx, eax
je 0x41634d
cmp edx, ebx
je 0x41631b
mov ecx, dword [0x602368]
mov dl, byte [0x602350]
mov byte [ecx], dl
mov ecx, dword [0x602364]
mov edx, dword [0x602368]
mov dword [ecx + 8], edx
mov ecx, dword [0x602364]
mov edx, dword [0x602354]
mov dword [ecx + 0x10], edx
mov ecx, dword [0x602378]
mov dword [0x602364], eax
mov edx, dword [eax + 0x10]
mov dword [0x602354], edx
mov esi, dword [eax + 8]
mov dword [0x602368], esi
mov dword [0x60234c], esi
mov eax, dword [eax]
mov dword [0x602370], eax
mov dl, byte [esi]
mov byte [0x602350], dl
mov dword [0x602348], edi
mov edx, dword [0x602380]
mov eax, dword [esp + 0x24]
shl ecx, 4
mov dword [ecx + edx - 0xc], eax
mov ecx, dword [0x602378]
mov edx, dword [0x602380]
shl ecx, 4
mov dword [ecx + edx - 4], ebx
mov esi, dword [0x602378]
mov dword [0x603558], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0055711e
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret
push str.bad_buffer_in_yy_scan_bytes__
push 0x5ec77c
push 0x5fef80
call fcn.0053cf6b
add esp, 0xc
push 2
call fcn.0053ce78