Function at 0x1000c1d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x250
mov dword [ebp - 0x228], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x224], edx
test byte [0x1001a0b8], 8
jne 0x1000c340
test esi, esi
je 0x1000c21c
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], esi
mov eax, dword [eax*4 + 0x1001e8a0]
mov dword [esp + 8], eax
call sub.ucrtbase.dll_memset
mov eax, dword [ebp - 0x224]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [ebp - 0x22c], eax
call eax
mov edi, dword [ebp + 0x18]
lea eax, [eax + eax + 2]
mov dword [edi], eax
cmp dword [ebp + 0x14], eax
jae 0x1000c3a0
cmp dword [ebp + 8], 1
je 0x1000c3c0
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x1000c26d
mov eax, dword [ebx + 8]
mov dword [esi + 4], edi
mov dword [esi], eax
mov eax, edi
xor edi, edi
test eax, eax
je 0x1000c26d
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
mov dword [ebp - 0x220], 0x200
lea eax, [ebp - 0x220]
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x214]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebx]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym.winspool.drv_GetPrinterDriverDirectoryW
sub esp, 0x18
test eax, eax
jne 0x1000c2c0
xor eax, eax
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 - 0x214]
mov dword [esp], eax
mov dword [ebp - 0x230], edx
call edx
lea eax, [ebp - 0x214]
mov dword [esp + 4], 0x1001c914
mov dword [esp], eax
mov edx, dword [ebp - 0x230]
call edx
lea eax, [ebp - 0x214]
mov dword [esp], eax
mov eax, dword [ebp - 0x22c]
call eax
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x224]
cmp word [eax], 0
jne 0x1000c3d8
test byte [0x1001a0b8], 2
jne 0x1000c8e8
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x705
jmp 0x1000c2b4
mov eax, edx
call fcn.10002fe0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp - 0x228]
mov dword [esp + 0xc], str.__p___s___p___ld___p___p___ld__n
mov dword [esp + 8], str.WINSPOOL_GetDriverInfoFromReg
mov dword [esp + 4], 0x1001a0b8
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.100032c0
jmp 0x1000c1fa
mov eax, dword [ebp - 0x224]
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 0x1000c24e
test esi, esi
je 0x1000c3c9
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, 1
jmp 0x1000c2b6
lea eax, [ebp - 0x218]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x228]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x1000c31e
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [ebp - 0x22c]
call eax
mov ecx, dword [ebp + 0x18]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x220], eax
add eax, dword [ecx]
mov dword [ecx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000c970
mov ebx, dword [ebp - 0x230]
mov dword [esp + 8], 0
lea eax, [ebp - 0x220]
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x214]
mov dword [esp], str.Driver
mov eax, dword [ebp - 0x218]
add ebx, ebx
mov ecx, ebx
call fcn.10004e40
test eax, eax
je 0x1000c499
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x220]
mov eax, dword [ecx]
add eax, edx
mov dword [ecx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000ca40
test esi, esi
je 0x1000c488
mov dword [esi + 0xc], edi
mov ecx, dword [ebp + 0x10]
xor edi, edi
test ecx, ecx
je 0x1000c499
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
mov dword [esp + 8], 0
mov ecx, ebx
lea eax, [ebp - 0x220]
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x214]
mov dword [esp], str.Data_File
mov eax, dword [ebp - 0x218]
call fcn.10004e40
test eax, eax
je 0x1000c4fd
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x220]
mov eax, dword [ecx]
add eax, edx
mov dword [ecx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000ca78
test esi, esi
je 0x1000c4ec
mov dword [esi + 0x10], edi
mov edx, dword [ebp + 0x10]
xor edi, edi
test edx, edx
je 0x1000c4fd
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
mov dword [esp + 8], 0
mov ecx, ebx
lea eax, [ebp - 0x220]
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x214]
mov dword [esp], str.Configuration_File
mov eax, dword [ebp - 0x218]
call fcn.10004e40
test eax, eax
je 0x1000c561
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x220]
mov eax, dword [ecx]
add eax, edx
mov dword [ecx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000cab0
test esi, esi
je 0x1000c550
mov dword [esi + 0x14], edi
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x1000c561
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x218]
je 0x1000c9a0
cmp dword [ebp + 8], 5
je 0x1000c9f8
lea ecx, [ebp - 0x220]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
lea edx, [ebp - 0x214]
mov ecx, ebx
mov dword [esp + 4], edi
mov dword [esp], str.Help_File
call fcn.10004e40
test eax, eax
je 0x1000c5d9
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x220]
mov eax, dword [ecx]
add eax, edx
mov dword [ecx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000cc18
test esi, esi
je 0x1000c5c8
mov dword [esi + 0x18], edi
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x1000c5d9
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
mov dword [esp + 8], 0
mov ecx, ebx
lea eax, [ebp - 0x220]
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x214]
mov dword [esp], str.Dependent_Files
mov eax, dword [ebp - 0x218]
call fcn.10004e40
test eax, eax
je 0x1000c920
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x220]
mov eax, dword [ecx]
add eax, edx
mov dword [ecx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000cb20
test esi, esi
je 0x1000c630
mov dword [esi + 0x1c], edi
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x1000c641
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
mov dword [esp], 0
mov ecx, edi
mov edx, str.Monitor
lea eax, [ebp - 0x220]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
test eax, eax
je 0x1000c698
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x220]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000cbc8
test esi, esi
je 0x1000c687
mov dword [esi + 0x20], edi
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x1000c698
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
mov dword [esp], 0
mov ecx, edi
mov edx, str.Datatype
lea eax, [ebp - 0x220]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
test eax, eax
je 0x1000c6ef
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x220]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000cbf0
test esi, esi
je 0x1000c6de
mov dword [esi + 0x24], edi
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x1000c6ef
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
cmp dword [ebp + 8], 3
mov eax, dword [ebp - 0x218]
je 0x1000c9a0
lea ebx, [ebp - 0x220]
mov dword [esp], 0
mov ecx, edi
mov edx, str.Previous_Names
mov dword [esp + 4], ebx
call fcn.10003440
test eax, eax
je 0x1000c750
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x220]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000cc49
test esi, esi
je 0x1000c73f
mov dword [esi + 0x28], edi
mov ebx, dword [ebp + 0x10]
xor edi, edi
test ebx, ebx
je 0x1000c750
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
cmp dword [ebp + 8], 4
mov eax, dword [ebp - 0x218]
je 0x1000c9a0
test byte [0x1001a0b8], 8
jne 0x1000cae8
mov dword [esp], 0
mov ecx, edi
mov edx, str.Manufacturer
lea eax, [ebp - 0x220]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
test eax, eax
je 0x1000c7c4
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x220]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000cc6d
test esi, esi
je 0x1000c7b3
mov dword [esi + 0x40], edi
mov ecx, dword [ebp + 0x10]
xor edi, edi
test ecx, ecx
je 0x1000c7c4
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
mov dword [esp], 0
mov ecx, edi
mov edx, str.OEM_Url
lea eax, [ebp - 0x220]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
test eax, eax
je 0x1000c81b
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x220]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000ccd9
test esi, esi
je 0x1000c80a
mov dword [esi + 0x44], edi
mov edx, dword [ebp + 0x10]
xor edi, edi
test edx, edx
je 0x1000c81b
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
mov dword [esp], 0
mov ecx, edi
mov edx, str.HardwareID
lea eax, [ebp - 0x220]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
test eax, eax
je 0x1000c872
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x220]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000ccb5
test esi, esi
je 0x1000c861
mov dword [esi + 0x48], edi
mov eax, dword [ebp + 0x10]
xor edi, edi
test eax, eax
je 0x1000c872
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
mov dword [esp], 0
mov ecx, edi
mov edx, str.Provider
lea eax, [ebp - 0x220]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
test eax, eax
je 0x1000c8b8
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x220]
mov eax, dword [ebx]
add eax, edx
mov dword [ebx], eax
cmp dword [ebp + 0x14], eax
jae 0x1000cc91
test esi, esi
je 0x1000c8b8
mov dword [esi + 0x4c], edi
cmp dword [ebp + 8], 6
je 0x1000c8cb
test byte [0x1001a0b8], 8
jne 0x1000cb58
mov eax, dword [ebp - 0x218]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000c3c9
mov eax, dword [ebp - 0x224]
call fcn.10002fe0
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], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x1000c32b
call dword [sym.imp.kernel32.dll_GetVersion]
test eax, eax
jns 0x1000c641
mov dword [ebp - 0x220], 4
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x228], eax
add eax, 4
mov dword [ebx], eax
test edi, edi
je 0x1000c629
cmp dword [ebp + 0x14], eax
jb 0x1000c629
mov dword [edi], 0
jmp 0x1000c629
mov eax, dword [ebx]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
test esi, esi
je 0x1000c986
mov dword [esi + 8], edi
mov ebx, dword [ebp + 0x10]
xor edi, edi
test ebx, ebx
je 0x1000c42d
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
add edi, dword [eax]
jmp 0x1000c42d
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x1001a0b8], 8
je 0x1000c3c9
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], str.buffer_space__ld_required__ld_n
mov dword [esp + 8], str.WINSPOOL_GetDriverInfoFromReg
mov dword [esp + 4], 0x1001a0b8
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.100032c0
jmp 0x1000c3c9
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x1001a0b8], 1
je 0x1000c3c9
mov dword [esp + 0xc], str.level_5:_incomplete_n
mov dword [esp + 8], str.WINSPOOL_GetDriverInfoFromReg
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 0
call fcn.100032c0
jmp 0x1000c3c9
lea eax, [ebp - 0x21c]
mov dword [esp + 8], edx
mov ecx, ebx
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x214]
mov dword [esp + 4], edi
mov dword [esp], str.Driver
mov eax, dword [ebp - 0x218]
call fcn.10004e40
jmp 0x1000c481
lea eax, [ebp - 0x220]
mov dword [esp + 8], edx
mov ecx, ebx
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x214]
mov dword [esp + 4], edi
mov dword [esp], str.Data_File
mov eax, dword [ebp - 0x218]
call fcn.10004e40
jmp 0x1000c4e5
lea eax, [ebp - 0x220]
mov dword [esp + 8], edx
mov ecx, ebx
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x214]
mov dword [esp + 4], edi
mov dword [esp], str.Configuration_File
mov eax, dword [ebp - 0x218]
call fcn.10004e40
jmp 0x1000c549
mov eax, dword [ebp - 0x224]
call fcn.10002fe0
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], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
jmp 0x1000c76d
lea eax, [ebp - 0x220]
mov dword [esp + 8], edx
mov ecx, ebx
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x214]
mov dword [esp + 4], edi
mov dword [esp], str.Dependent_Files
mov eax, dword [ebp - 0x218]
call fcn.10004e40
jmp 0x1000c629
mov dword [esp + 0xc], str.level_8:_incomplete_n
mov dword [esp + 8], str.WINSPOOL_GetDriverInfoFromReg
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
test byte [0x1001a0b8], 8
je 0x1000c8cb
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], str.buffer_space__ld_required__ld_n
mov dword [esp + 8], str.WINSPOOL_GetDriverInfoFromReg
mov dword [esp + 4], 0x1001a0b8
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.100032c0
jmp 0x1000c8cb
lea eax, [ebp - 0x220]
mov dword [esp], edx
mov ecx, edi
mov edx, str.Monitor
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
jmp 0x1000c680
lea eax, [ebp - 0x220]
mov dword [esp], edx
mov ecx, edi
mov edx, str.Datatype
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
jmp 0x1000c6d7
lea eax, [ebp - 0x220]
mov dword [esp + 8], edx
mov ecx, ebx
mov dword [esp + 0xc], eax
lea edx, [ebp - 0x214]
mov dword [esp + 4], edi
mov dword [esp], str.Help_File
mov eax, dword [ebp - 0x218]
call fcn.10004e40
jmp 0x1000c5c1
lea eax, [ebp - 0x220]
mov dword [esp], edx
mov ecx, edi
mov edx, str.Previous_Names
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
jmp 0x1000c738
lea eax, [ebp - 0x220]
mov dword [esp], edx
mov ecx, edi
mov edx, str.Manufacturer
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
jmp 0x1000c7ac
lea eax, [ebp - 0x220]
mov dword [esp], edx
mov ecx, edi
mov edx, str.Provider
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
jmp 0x1000c8b1
lea eax, [ebp - 0x220]
mov dword [esp], edx
mov ecx, edi
mov edx, str.HardwareID
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
jmp 0x1000c85a
lea eax, [ebp - 0x220]
mov dword [esp], edx
mov ecx, edi
mov edx, str.OEM_Url
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x218]
call fcn.10003440
jmp 0x1000c803