Function at 0x64192450
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x26c
mov dword [ebp - 0x240], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x23c], edx
test byte [0x6419a04c], 8
jne 0x641925c8
test esi, esi
je 0x6419249c
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], esi
mov eax, dword [eax*4 + 0x6419e760]
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp - 0x23c]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [ebp - 0x244], eax
call eax
mov edi, dword [ebp + 0x18]
lea eax, [eax + eax + 2]
mov dword [edi], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192628
cmp dword [ebp + 8], 1
je 0x64192648
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x641924ed
mov eax, dword [ebx + 8]
mov dword [esi + 4], edi
mov dword [esi], eax
mov eax, edi
xor edi, edi
test eax, eax
je 0x641924ed
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
lea eax, [ebp - 0x22c]
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebx]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [ebp - 0x22c], 0x200
call sym.winspool.drv_GetPrinterDriverDirectoryW
sub esp, 0x18
test eax, eax
jne 0x64192540
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov edx, dword [sym.imp.ucrtbase.dll_wcscat]
mov dword [esp + 4], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x248], edx
mov dword [esp], eax
call edx
lea eax, [ebp - 0x220]
mov edx, dword [ebp - 0x248]
mov dword [esp + 4], 0x6419c908
mov dword [esp], eax
call edx
lea eax, [ebp - 0x220]
mov dword [esp], eax
mov eax, dword [ebp - 0x244]
call eax
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x23c]
cmp word [eax], 0
jne 0x64192668
test byte [0x6419a04c], 2
jne 0x64192b78
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x705
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x240]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], str.__p___s___p___ld___p___p___ld__n
mov dword [esp + 8], str.WINSPOOL_GetDriverInfoFromReg
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6419247a
mov eax, dword [ebp - 0x23c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
cmp dword [ebp + 8], 1
jne 0x641924ce
test esi, esi
je 0x64192b67
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x224]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x23c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x240]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x6419259e
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [ebp - 0x244]
call eax
mov ecx, dword [ebp + 0x18]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x22c], eax
add eax, dword [ecx]
mov dword [ecx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192c00
lea eax, [ebp - 0x22c]
mov ebx, dword [ebp - 0x248]
mov dword [esp + 4], edi
lea edx, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 8], 0
add ebx, ebx
mov dword [esp], str.Driver
mov ecx, ebx
call sym._get_filename_from_reg
test eax, eax
je 0x64192729
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ecx]
add eax, edx
mov dword [ecx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192cf0
test esi, esi
je 0x64192718
mov dword [esi + 0xc], edi
mov ecx, dword [ebp + 0x10]
xor edi, edi
test ecx, ecx
je 0x64192729
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
lea eax, [ebp - 0x22c]
mov dword [esp + 4], edi
mov ecx, ebx
lea edx, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 8], 0
mov dword [esp], str.Data_File
call sym._get_filename_from_reg
test eax, eax
je 0x6419278d
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ecx]
add eax, edx
mov dword [ecx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192d28
test esi, esi
je 0x6419277c
mov dword [esi + 0x10], edi
mov edx, dword [ebp + 0x10]
xor edi, edi
test edx, edx
je 0x6419278d
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
lea eax, [ebp - 0x22c]
mov dword [esp + 4], edi
mov ecx, ebx
lea edx, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 8], 0
mov dword [esp], str.Configuration_File
call sym._get_filename_from_reg
test eax, eax
je 0x641927f1
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ecx]
add eax, edx
mov dword [ecx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192d60
test esi, esi
je 0x641927e0
mov dword [esi + 0x14], edi
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x641927f1
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x224]
je 0x64192c40
cmp dword [ebp + 8], 5
je 0x64192ca0
lea ecx, [ebp - 0x22c]
mov dword [esp + 8], 0
lea edx, [ebp - 0x220]
mov dword [esp + 0xc], ecx
mov ecx, ebx
mov dword [esp + 4], edi
mov dword [esp], str.Help_File
call sym._get_filename_from_reg
test eax, eax
je 0x64192869
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ecx]
add eax, edx
mov dword [ecx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192e78
test esi, esi
je 0x64192858
mov dword [esi + 0x18], edi
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x64192869
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
lea eax, [ebp - 0x22c]
mov dword [esp + 4], edi
mov ecx, ebx
lea edx, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 8], 0
mov dword [esp], str.Dependent_Files
call sym._get_filename_from_reg
test eax, eax
je 0x64192bb0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ecx]
add eax, edx
mov dword [ecx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192dd0
test esi, esi
je 0x641928c0
mov dword [esi + 0x1c], edi
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x641928d1
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
lea eax, [ebp - 0x22c]
mov dword [esp], 0
mov ecx, edi
mov edx, str.Monitor
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
test eax, eax
je 0x64192928
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192eb0
test esi, esi
je 0x64192917
mov dword [esi + 0x20], edi
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x64192928
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
lea eax, [ebp - 0x22c]
mov dword [esp], 0
mov ecx, edi
mov edx, str.Datatype
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
test eax, eax
je 0x6419297f
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192ed8
test esi, esi
je 0x6419296e
mov dword [esi + 0x24], edi
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x6419297f
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
cmp dword [ebp + 8], 3
mov eax, dword [ebp - 0x224]
je 0x64192c40
lea ebx, [ebp - 0x22c]
mov dword [esp], 0
mov ecx, edi
mov edx, str.Previous_Names
mov dword [esp + 4], ebx
call sym._WINSPOOL_GetStringFromReg
test eax, eax
je 0x641929e0
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192efc
test esi, esi
je 0x641929cf
mov dword [esi + 0x28], edi
mov ebx, dword [ebp + 0x10]
xor edi, edi
test ebx, ebx
je 0x641929e0
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
cmp dword [ebp + 8], 4
je 0x64192c30
test byte [0x6419a04c], 8
jne 0x64192d98
lea eax, [ebp - 0x22c]
mov dword [esp], 0
mov ecx, edi
mov edx, str.Manufacturer
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
test eax, eax
je 0x64192a4e
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192f44
test esi, esi
je 0x64192a3d
mov dword [esi + 0x40], edi
mov ecx, dword [ebp + 0x10]
xor edi, edi
test ecx, ecx
je 0x64192a4e
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
lea eax, [ebp - 0x22c]
mov dword [esp], 0
mov ecx, edi
mov edx, str.OEM_Url
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
test eax, eax
je 0x64192aa5
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192f20
test esi, esi
je 0x64192a94
mov dword [esi + 0x44], edi
mov edx, dword [ebp + 0x10]
xor edi, edi
test edx, edx
je 0x64192aa5
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
lea eax, [ebp - 0x22c]
mov dword [esp], 0
mov ecx, edi
mov edx, str.HardwareID
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
test eax, eax
je 0x64192afc
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192f68
test esi, esi
je 0x64192aeb
mov dword [esi + 0x48], edi
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x64192afc
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
lea eax, [ebp - 0x22c]
mov dword [esp], 0
mov ecx, edi
mov edx, str.Provider
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
test eax, eax
je 0x64192b42
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp eax, dword [ebp + 0x14]
jbe 0x64192f8c
test esi, esi
je 0x64192b42
mov dword [esi + 0x4c], edi
cmp dword [ebp + 8], 6
je 0x64192b55
test byte [0x6419a04c], 8
jne 0x64192e08
mov eax, dword [ebp - 0x224]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x23c]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.Cant_find_driver__s_in_registry_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WINSPOOL_GetDriverInfoFromReg
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x641925ab
call dword [sym.imp.kernel32.dll_GetVersion]
test eax, eax
jns 0x641928d1
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x22c], 4
mov eax, dword [eax]
mov dword [ebp - 0x240], eax
add eax, 4
mov dword [ebx], eax
test edi, edi
je 0x641928b9
cmp eax, dword [ebp + 0x14]
ja 0x641928b9
mov dword [edi], 0
jmp 0x641928b9
mov eax, dword [ebx]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
test esi, esi
je 0x64192c16
mov dword [esi + 8], edi
mov ebx, dword [ebp + 0x10]
xor edi, edi
test ebx, ebx
je 0x641926bd
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
jmp 0x641926bd
mov eax, dword [ebp - 0x224]
lea esi, [esi]
lea esi, [esi]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x6419a04c], 8
je 0x64192b67
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0xc], str.buffer_space__ld_required__ld_n
mov dword [esp + 8], str.WINSPOOL_GetDriverInfoFromReg
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0x6419a04c
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, 1
jmp 0x64192534
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x6419a04c], 1
je 0x64192b67
mov dword [esp + 0xc], str.level_5:_incomplete_n
mov dword [esp + 8], str.WINSPOOL_GetDriverInfoFromReg
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov eax, 1
jmp 0x64192534
lea eax, [ebp - 0x228]
mov dword [esp + 8], edx
mov ecx, ebx
lea edx, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 4], edi
mov dword [esp], str.Driver
call sym._get_filename_from_reg
jmp 0x64192711
lea eax, [ebp - 0x22c]
mov dword [esp + 8], edx
mov ecx, ebx
lea edx, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 4], edi
mov dword [esp], str.Data_File
call sym._get_filename_from_reg
jmp 0x64192775
lea eax, [ebp - 0x22c]
mov dword [esp + 8], edx
mov ecx, ebx
lea edx, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 4], edi
mov dword [esp], str.Configuration_File
call sym._get_filename_from_reg
jmp 0x641927d9
mov eax, dword [ebp - 0x23c]
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str._s:_DriverDate__DriverVersion_not_supported_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WINSPOOL_GetDriverInfoFromReg
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x641929f7
lea eax, [ebp - 0x22c]
mov dword [esp + 8], edx
mov ecx, ebx
lea edx, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 4], edi
mov dword [esp], str.Dependent_Files
call sym._get_filename_from_reg
jmp 0x641928b9
mov dword [esp + 0xc], str.level_8:_incomplete_n
mov dword [esp + 8], str.WINSPOOL_GetDriverInfoFromReg
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x6419a04c], 8
je 0x64192b55
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0xc], str.buffer_space__ld_required__ld_n
mov dword [esp + 8], str.WINSPOOL_GetDriverInfoFromReg
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0x6419a04c
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x64192b55
lea eax, [ebp - 0x22c]
mov dword [esp + 8], edx
mov ecx, ebx
lea edx, [ebp - 0x220]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 4], edi
mov dword [esp], str.Help_File
call sym._get_filename_from_reg
jmp 0x64192851
lea eax, [ebp - 0x22c]
mov dword [esp], edx
mov ecx, edi
mov edx, str.Monitor
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
jmp 0x64192910
lea eax, [ebp - 0x22c]
mov dword [esp], edx
mov ecx, edi
mov edx, str.Datatype
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
jmp 0x64192967
lea eax, [ebp - 0x22c]
mov dword [esp], edx
mov ecx, edi
mov edx, str.Previous_Names
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
jmp 0x641929c8
lea eax, [ebp - 0x22c]
mov dword [esp], edx
mov ecx, edi
mov edx, str.OEM_Url
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
jmp 0x64192a8d
lea eax, [ebp - 0x22c]
mov dword [esp], edx
mov ecx, edi
mov edx, str.Manufacturer
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
jmp 0x64192a36
lea eax, [ebp - 0x22c]
mov dword [esp], edx
mov ecx, edi
mov edx, str.HardwareID
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
jmp 0x64192ae4
lea eax, [ebp - 0x22c]
mov dword [esp], edx
mov ecx, edi
mov edx, str.Provider
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x224]
call sym._WINSPOOL_GetStringFromReg
jmp 0x64192b3b