Function at 0x64191730
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x26c
mov dword [ebp - 0x230], ecx
test byte [0x6419a04c], 8
jne 0x64191970
mov eax, ebx
call sym._validate_envW
mov dword [ebp - 0x234], eax
test eax, eax
je 0x64191935
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, ebx
call sym._WINSPOOL_OpenDriverReg
mov edi, eax
test eax, eax
je 0x64191928
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], 0
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 + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x240], eax
sub esp, 0x30
test eax, eax
jne 0x64191ab8
test byte [0x6419a04c], 8
jne 0x64191a80
mov eax, dword [ebp - 0x230]
mov esi, dword [ebp + 0x1c]
mov eax, dword [eax*4 + 0x6419e760]
mov dword [ebp - 0x238], eax
test esi, esi
je 0x64191a10
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x1c]
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax]
test ebx, ebx
je 0x64191a50
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x238]
sub esi, eax
imul ebx, eax
mov dword [ebp - 0x23c], esi
xor esi, esi
jmp 0x641918bd
mov ecx, dword [ebp + 8]
add ecx, edx
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp + 0x10]
sub ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x22c]
lea edx, [ebp - 0x21c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x230]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x216]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x234]
mov dword [esp], eax
mov eax, edi
call sym._WINSPOOL_GetDriverInfoFromReg
test eax, eax
je 0x641919ed
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x21c]
inc esi
add ebx, dword [ebp - 0x238]
add dword [ecx], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax], esi
jbe 0x64191a50
lea eax, [ebp - 0x216]
mov dword [esp + 0xc], 0xff
mov dword [ebp - 0x21c], 0
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x641919e0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [edx]
test ecx, ecx
je 0x64191950
mov ecx, dword [ebp - 0x23c]
add ecx, ebx
cmp ebx, dword [ebp + 0x10]
cmovbe eax, ecx
cmp dword [ebp + 0x10], edx
jae 0x64191850
mov dword [ebp - 0x22c], 0
xor ecx, ecx
jmp 0x64191860
test byte [0x6419a04c], 2
jne 0x64191a20
mov dword [ebp - 0x240], 0
mov eax, dword [ebp - 0x240]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x22c], 0
xor eax, eax
xor ecx, ecx
cmp dword [ebp + 0x10], edx
jae 0x6419185b
jmp 0x64191860
mov esi, eax
mov eax, edx
call sym._wine_dbgstr_wn.constprop.0
mov edi, eax
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0xc], str._s__s__ld__p__ld__ld__ld_n
mov dword [esp + 0x24], esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 8], str.WINSPOOL_EnumPrinterDrivers
mov dword [esp + 0x20], esi
mov esi, dword [ebp + 8]
mov dword [esp + 4], 0x6419a04c
mov dword [esp + 0x1c], esi
mov esi, dword [ebp - 0x230]
mov dword [esp], 3
mov dword [esp + 0x18], esi
call sym._wine_dbg_log.constprop.0
jmp 0x64191751
test byte [0x6419a04c], 2
jne 0x64191ae0
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x240]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp + 0x18]
imul eax, dword [ebx]
mov dword [ebp + 0x1c], eax
jmp 0x6419181c
mov dword [esp + 0xc], str.Cant_open_Drivers_key_n
mov dword [esp + 8], str.WINSPOOL_EnumPrinterDrivers
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x64191935
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
sub esp, 4
cmp dword [eax], edi
ja 0x64191b10
mov dword [ebp - 0x240], 1
jmp 0x6419193f
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0xc], str.Found__ld_Drivers_n
mov dword [esp + 8], str.WINSPOOL_EnumPrinterDrivers
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x641917fe
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x6419a04c], 2
je 0x64191935
mov dword [esp + 0xc], str.Cant_query_Drivers_key_n
jmp 0x64191a28
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Cant_enum_key_number__ld_n
mov dword [esp + 8], str.WINSPOOL_EnumPrinterDrivers
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x641919ed
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7a
jmp 0x6419193f