Function at 0x6418d080
Capabilities:
Query or enumerate 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, 0x68
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [ebp - 0x20], 0
mov esi, dword [ecx + 0x10]
mov edi, dword [ecx + 0x18]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x34], eax
test byte [0x6419a04c], 8
jne 0x6418d2c8
mov dword [esp], 0x6419a328
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
test ebx, ebx
je 0x6418d2a0
cmp ebx, dword [0x6419a304]
ja 0x6418d2a0
mov eax, dword [0x6419a324]
mov ebx, dword [eax + ebx*4 - 4]
mov dword [esp], 0x6419a328
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test ebx, ebx
je 0x6418d3e2
lea eax, [ebp - 0x24]
mov dword [esp + 4], str.SystemCurrentControlSetControlPrintPrinters
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
mov edx, eax
test eax, eax
jne 0x6418d1cc
test byte [0x6419a04c], 8
jne 0x6418d330
mov eax, dword [ebx]
test eax, eax
je 0x6418d1e0
mov ecx, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 4], eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], edx
mov dword [ebp - 0x3c], ecx
mov dword [esp], eax
call ecx
mov ecx, dword [ebp - 0x3c]
sub esp, 0xc
test eax, eax
jne 0x6418d370
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call ecx
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x6418d1e0
test byte [0x6419a04c], 4
jne 0x6418d3a0
mov eax, dword [ebp - 0x20]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x24]
sub esp, 4
mov dword [esp], eax
call ebx
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 0x1c
mov eax, dword [ebp - 0x34]
mov dword [edi], eax
mov eax, dword [ebx]
test eax, eax
je 0x6418d390
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], edi
mov edi, dword [ebp - 0x30]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov edi, dword [ebp - 0x2c]
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov edx, 0xea
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0x18
or esi, eax
cmovne edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x20]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x24]
sub esp, 4
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x2c]
sub esp, 4
test byte [0x6419a04c], 8
je 0x6418d1cc
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str._____ld_n
mov dword [esp + 8], str.GetPrinterDataExW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x2c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
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 0x1c
mov eax, dword [ebp - 0x2c]
call sym._wine_dbgstr_wn.constprop.0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], str.__p___s___s___p___p___lu___p__n
mov dword [esp + 8], str.GetPrinterDataExW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6418d0cf
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.printer__name:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.GetPrinterDataExW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx]
test eax, eax
jne 0x6418d154
jmp 0x6418d1e0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2c]
sub esp, 4
jmp 0x6418d1cc
mov eax, dword [ebp - 0x24]
jmp 0x6418d1f2
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0xc], str.Cant_open_subkey__s:__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.GetPrinterDataExW
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x2c]
jmp 0x6418d1aa
mov edx, 6
jmp 0x6418d1cc