Function at 0x64193920
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings
Delete directory
Delete registry value
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2fc
mov dword [esp + 8], str.__WINE_WINSPOOL_MUTEX__
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [0x6419a114], eax
sub esp, 0xc
test eax, eax
je 0x64194060
mov edx, dword fs:[0x18]
cmp dword [edx + 0x34], 0xb7
je 0x641940a0
lea eax, [ebp - 0x2b8]
mov dword [esp + 4], str.SystemCurrentControlSetControlPrintPrinters
mov ebx, dword [sym.imp.advapi32.dll_RegCreateKeyW]
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call ebx
sub esp, 0xc
test eax, eax
je 0x64193d30
xor eax, eax
call sym._old_printer_check
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x284], eax
xor eax, eax
mov word [ebp - 0x26e], ax
xor eax, eax
mov word [ebp - 0x2ba], ax
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x294], 0x410052
mov dword [ebp - 0x290], 0x57
mov dword [ebp - 0x27e], 0x690057
mov dword [ebp - 0x27a], 0x50006e
mov dword [ebp - 0x276], 0x690072
mov dword [ebp - 0x272], 0x74006e
mov dword [esp + 8], eax
mov dword [esp + 4], str.SystemCurrentControlSetControlPrintPrinters
mov dword [esp], 0x80000002
call ebx
sub esp, 0xc
test eax, eax
jne 0x64193cf8
mov eax, 0x2710
lea ebx, [ebp - 0x28c]
jmp 0x64193a4e
mov eax, dword [ebp - 0x2a8]
add eax, eax
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x28c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x2a8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [0x6419a074]
mov dword [esp + 0xc], ebx
mov dword [ebp - 0x28c], eax
mov eax, dword [0x6419a070]
mov dword [esp + 8], 1
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [0x6419a06c]
sub esp, 0x10
cmp eax, 0x80000005
je 0x64193a48
mov esi, eax
test eax, eax
jne 0x64193ed8
mov eax, dword [ebp - 0x2a4]
test byte [0x6419a04c], 8
jne 0x64193e88
test eax, eax
je 0x64193ed8
mov dword [ebp - 0x2d8], 0
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2d4], eax
jmp 0x64193c23
mov edi, dword [ebp - 0x2cc]
test edi, edi
je 0x64193f68
mov edx, dword [ebp - 0x2cc]
mov eax, dword [ebx]
call sym._add_printer_driver
test eax, eax
je 0x64193c16
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 4], str.CUPS:
mov edi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov eax, dword [ebx]
mov dword [ebp - 0x2d0], edi
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcscat]
lea edx, [ebp - 0x26c]
xor eax, eax
mov ecx, 0x15
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x2d0]
mov eax, dword [ebx]
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x294]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x27e]
mov dword [ebp - 0x248], eax
mov eax, dword [ebx]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x258], eax
mov eax, dword [ebx + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], 2
mov dword [esp], 0
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x2ba]
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x24c], eax
call sym.winspool.drv_AddPrinterW
sub esp, 0xc
test eax, eax
je 0x64193fd0
mov dword [esp], eax
call sym.winspool.drv_ClosePrinter
sub esp, 4
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x64193c16
mov eax, dword [ebx]
mov dword [ebp - 0x2d8], eax
inc esi
cmp dword [ebp - 0x2a4], esi
jbe 0x64193f80
mov ebx, esi
lea eax, [ebp - 0x2a0]
shl ebx, 4
add ebx, dword [ebp - 0x28c]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x64193af8
mov eax, dword [ebp - 0x2a0]
mov edx, str.Status
call sym._get_dword_from_reg
mov edi, eax
test byte [0x6419a04c], 8
jne 0x64194030
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 4], str.WineMayDeleteMe
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov eax, edi
or eax, 0x4000000
sub esp, 8
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x298]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2a0]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Status
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x2a0]
sub esp, 0x18
mov dword [esp], eax
mov eax, dword [ebp - 0x2d4]
call eax
sub esp, 4
jmp 0x64193c07
test byte [0x6419a04c], 2
jne 0x64193f38
mov eax, 1
call sym._old_printer_check
mov eax, dword [0x6419a114]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x2ac]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2b8]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
sub esp, 0x30
test eax, eax
jne 0x64193f10
mov eax, dword [ebp - 0x2ac]
test eax, eax
je 0x64193f10
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
xor edi, edi
lea esi, [ebp - 0x218]
mov dword [ebp - 0x2d4], eax
jmp 0x64193ddd
inc edi
cmp dword [ebp - 0x2ac], edi
jbe 0x64193f1b
mov eax, dword [ebp - 0x2b8]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x64193dd0
lea eax, [ebp - 0x2b4]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2b8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x64193dd0
lea eax, [ebp - 0x2b0]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2b4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Name
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
cmp eax, 2
je 0x64194130
mov eax, dword [ebp - 0x2b4]
mov dword [esp], eax
mov eax, dword [ebp - 0x2d4]
call eax
sub esp, 4
jmp 0x64193dd0
cmp eax, 1
mov ecx, str.printers
mov dword [esp + 0x10], eax
mov edx, str.printer
cmovne edx, ecx
mov dword [esp + 0xc], str.Found__d_CUPS__s:_n
mov dword [esp + 8], str.init_unix_printers
mov dword [esp + 0x14], edx
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x2a4]
test eax, eax
jne 0x64193acd
lea esi, [esi]
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x28c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x29c]
mov dword [esp], eax
mov eax, dword [ebp - 0x2d4]
call eax
sub esp, 4
jmp 0x64193d05
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x2b8]
mov dword [esp], eax
mov eax, dword [ebp - 0x2d4]
call eax
sub esp, 4
jmp 0x64193999
mov dword [esp + 0xc], str.Cant_create_Printers_key_n
mov dword [esp + 8], str.init_unix_printers
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x64193d05
call sym._get_ppd_dir
mov dword [ebp - 0x2cc], eax
test eax, eax
jne 0x64193b06
lea esi, [esi]
nop
mov edx, dword [ebp - 0x2d8]
test edx, edx
je 0x64194100
mov eax, dword [ebp - 0x2d8]
mov dword [esp], eax
call sym.winspool.drv_SetDefaultPrinterW
sub esp, 4
mov esi, dword [ebp - 0x2cc]
test esi, esi
je 0x64193ee3
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x64193ee3
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x70a
je 0x64193bf8
test byte [0x6419a04c], 2
je 0x64193bf8
mov edi, dword [eax + 0x34]
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.printer__s_not_added_by_AddPrinter__error__ld__n
mov dword [esp + 8], str.init_unix_printers
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x64193bf8
mov dword [esp + 0xc], str.Printer_already_exists_n
mov dword [esp + 8], str.init_unix_printers
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x64193c77
test byte [0x6419a04c], 2
je 0x64193d20
mov dword [esp + 0xc], str.Failed_to_create_mutex_n
mov dword [esp + 8], str.WINSPOOL_LoadSystemPrinters
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x64193d20
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [0x6419a114]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
sub esp, 4
test byte [0x6419a04c], 8
je 0x64193d20
mov dword [esp + 0xc], str.Init_already_done_n
mov dword [esp + 8], str.WINSPOOL_LoadSystemPrinters
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x64193d20
mov eax, dword [ebp - 0x2a4]
test eax, eax
je 0x64193f9f
mov eax, dword [ebp - 0x28c]
mov eax, dword [eax]
mov dword [ebp - 0x2d8], eax
test eax, eax
je 0x64193f9f
jmp 0x64193f8e
mov edx, dword [ebp - 0x2b4]
mov dword [esp], esi
mov dword [ebp - 0x2cc], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x2cc]
mov dword [esp + 0x10], esi
lea eax, [eax + eax + 2]
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Name
mov dword [esp], edx
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
jmp 0x64193e6c