Function at 0x10014390
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
xor ecx, ecx
mov edx, 5
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x24]
push ebx
lea ebx, [ebp - 0x2c]
sub esp, 0x40
mov dword [ebp - 0x30], eax
mov eax, 2
mov dword [ebp - 0x18], 1
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.100074a0
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
je 0x100143e0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp - 0x2c]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, 5
mov dword [ebp - 0x34], eax
mov ecx, eax
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 4], ebx
mov ebx, eax
mov eax, 2
mov dword [esp], edi
call fcn.100074a0
mov edi, dword [ebp - 0x24]
test edi, edi
jne 0x10014470
jmp 0x1001459a
lea edx, [ebp - 0x18]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.WineMayDeleteMe
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
add esi, 1
add ebx, 0x14
cmp esi, edi
je 0x1001459a
mov eax, dword [ebx + 4]
test eax, eax
je 0x10014462
mov dword [esp + 8], 5
mov dword [esp + 4], str.CUPS:
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsncmp]
test eax, eax
je 0x100144b4
mov dword [esp + 8], 4
mov dword [esp + 4], str.LPR:
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcsncmp]
test eax, eax
jne 0x10014462
mov eax, dword [ebx]
lea edx, [ebp - 0x14]
call fcn.100027d0
test eax, eax
jne 0x10014462
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
test edx, edx
je 0x10014420
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 4
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x20]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.WineMayDeleteMe
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
sub esp, 4
test eax, eax
je 0x10014462
test byte [0x1001a0b8], 8
jne 0x100145d0
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym.winspool.drv_OpenPrinter2W
sub esp, 0x10
test eax, eax
jne 0x100145b0
mov dword [esp + 0x10], 0
add esi, 1
add ebx, 0x14
mov dword [esp + 0xc], 0
mov eax, dword [ebx - 0x14]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call sym.winspool.drv_DeletePrinterDriverExW
sub esp, 0x14
cmp esi, edi
jne 0x10014470
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.winspool.drv_DeletePrinter
mov eax, dword [ebp - 0x10]
sub esp, 4
mov dword [esp], eax
call sym.winspool.drv_ClosePrinter
sub esp, 4
jmp 0x1001455e
mov eax, dword [ebx]
call fcn.10002fe0
mov dword [esp + 0xc], str.Deleting_old_printer__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.old_printer_check
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
jmp 0x10014536