from Util.MemoryDataInterpreter import MemoryDataInterpreter

class CreateMutexA:

    DEFAULT_READ_SIZE = 50

    @staticmethod
    def get_arguments_list(vivisect_engine):
        arguments_array = vivisect_engine.get_function_arguments(3)


        lp_mutex_attributes = arguments_array[0]
        b_initial_owner = arguments_array[1]
        lp_name = arguments_array[2]

        mutex_name = ''
        if lp_name != 0x0:
            bytes = vivisect_engine.read_memory(lp_name, CreateMutexA.DEFAULT_READ_SIZE)
            mutex_name = MemoryDataInterpreter.bytearray_to_ascii_string(bytes)

        return [hex(lp_mutex_attributes), bool(b_initial_owner), mutex_name]
52f6348ea45f17068f6e3369d7dd0e84b469e960
<mask token>


class CreateMutexA:
    <mask token>
    <mask token>

<mask token>


class CreateMutexA:
    <mask token>

    @staticmethod
    def get_arguments_list(vivisect_engine):
        arguments_array = vivisect_engine.get_function_arguments(3)
        lp_mutex_attributes = arguments_array[0]
        b_initial_owner = arguments_array[1]
        lp_name = arguments_array[2]
        mutex_name = ''
        if lp_name != 0:
            bytes = vivisect_engine.read_memory(lp_name, CreateMutexA.
                DEFAULT_READ_SIZE)
            mutex_name = MemoryDataInterpreter.bytearray_to_ascii_string(bytes)
        return [hex(lp_mutex_attributes), bool(b_initial_owner), mutex_name]

<mask token>


class CreateMutexA:
    DEFAULT_READ_SIZE = 50

    @staticmethod
    def get_arguments_list(vivisect_engine):
        arguments_array = vivisect_engine.get_function_arguments(3)
        lp_mutex_attributes = arguments_array[0]
        b_initial_owner = arguments_array[1]
        lp_name = arguments_array[2]
        mutex_name = ''
        if lp_name != 0:
            bytes = vivisect_engine.read_memory(lp_name, CreateMutexA.
                DEFAULT_READ_SIZE)
            mutex_name = MemoryDataInterpreter.bytearray_to_ascii_string(bytes)
        return [hex(lp_mutex_attributes), bool(b_initial_owner), mutex_name]

from Util.MemoryDataInterpreter import MemoryDataInterpreter


class CreateMutexA:
    DEFAULT_READ_SIZE = 50

    @staticmethod
    def get_arguments_list(vivisect_engine):
        arguments_array = vivisect_engine.get_function_arguments(3)
        lp_mutex_attributes = arguments_array[0]
        b_initial_owner = arguments_array[1]
        lp_name = arguments_array[2]
        mutex_name = ''
        if lp_name != 0:
            bytes = vivisect_engine.read_memory(lp_name, CreateMutexA.
                DEFAULT_READ_SIZE)
            mutex_name = MemoryDataInterpreter.bytearray_to_ascii_string(bytes)
        return [hex(lp_mutex_attributes), bool(b_initial_owner), mutex_name]

from Util.MemoryDataInterpreter import MemoryDataInterpreter

class CreateMutexA:

    DEFAULT_READ_SIZE = 50

    @staticmethod
    def get_arguments_list(vivisect_engine):
        arguments_array = vivisect_engine.get_function_arguments(3)


        lp_mutex_attributes = arguments_array[0]
        b_initial_owner = arguments_array[1]
        lp_name = arguments_array[2]

        mutex_name = ''
        if lp_name != 0x0:
            bytes = vivisect_engine.read_memory(lp_name, CreateMutexA.DEFAULT_READ_SIZE)
            mutex_name = MemoryDataInterpreter.bytearray_to_ascii_string(bytes)

        return [hex(lp_mutex_attributes), bool(b_initial_owner), mutex_name]