Function at 0x64190450
Capabilities:
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov eax, dword [ecx + 0xc]
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x34], eax
test byte [0x6419a04c], 8
jne 0x641905d0
mov dword [esp], 0x6419a328
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
test edi, edi
je 0x641905a8
cmp edi, dword [0x6419a304]
ja 0x641905a8
mov eax, dword [0x6419a324]
mov eax, dword [eax + edi*4 - 4]
mov dword [esp], 0x6419a328
mov dword [ebp - 0x38], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x38]
sub esp, 4
test eax, eax
je 0x64190670
mov eax, dword [eax]
test eax, eax
je 0x64190670
lea edx, [ebp - 0x20]
call sym._open_printer_reg_key
mov edx, eax
test eax, eax
jne 0x64190530
lea eax, [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x64190540
test byte [0x6419a04c], 2
jne 0x64190630
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2c]
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x18
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x20]
sub esp, 4
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x2c]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov dword [esp], 0x6419a328
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, 6
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [ebp - 0x38], eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0xc], str.__p___s___s__08lx___p___08lx__n
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 8], str.SetPrinterDataExW
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], 0x6419a04c
mov dword [esp + 0x18], edx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6419048b
mov dword [ebp - 0x2c], eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Cant_create_subkey__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.SetPrinterDataExW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x2c]
jmp 0x6419051b
lea esp, [ebp - 0x10]
mov edx, 6
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18