Function at 0x422cc0
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c51c2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x200
mov eax, dword [0x4ff12c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18c], edi
mov eax, dword [edi + 4]
mov esi, dword [edi]
cmp esi, eax
je 0x422d2a
mov edi, eax
mov ecx, esi
call fcn.0040c880
add esi, 0x48
cmp esi, edi
jne 0x422d14
mov edi, dword [ebp - 0x18c]
mov esi, dword [edi]
push 0x118
lea eax, [ebp - 0x17c]
mov dword [edi + 4], esi
push 0
push eax
call fcn.004a21c0
add esp, 0xc
mov dword [ebp - 0x180], 0x11c
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422f36
cmp dword [ebp - 0x17c], 6
jb 0x422f36
mov esi, dword [sym.imp.WINSPOOL.DRV_EnumPrinterDriversW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x184], 0
push eax
push 0
push 0
push 8
push 0
push 0
mov dword [ebp - 0x18], 0
call esi
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x4230f2
push eax
call fcn.004a9e83
mov edi, eax
add esp, 4
mov dword [ebp - 0x194], edi
test edi, edi
je 0x4230f2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp - 0x184]
push edi
push 8
push 0
push 0
call esi
test eax, eax
je 0x422f30
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x190], 0
jbe 0x422f30
mov edx, edi
mov dword [ebp - 0x188], edi
nop dword [eax]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov esi, edx
mov dword [ebp - 4], eax
mov ecx, 0x1e
lea edi, [ebp - 0x210]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x20c]
test edx, edx
je 0x422e7a
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422e61
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00406ee0
mov edx, dword [ebp - 0x1b4]
test edx, edx
je 0x422ea9
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422e90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00406ee0
mov esi, dword [ebp - 0x18c]
lea eax, [ebp - 0x60]
push eax
mov edi, dword [esi + 4]
cmp dword [esi + 8], edi
je 0x422eee
mov ecx, edi
mov dword [ebp - 0x198], edi
call fcn.00405ba0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x18]
call fcn.00405ba0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x30]
call fcn.00405ba0
add dword [esi + 4], 0x48
jmp 0x422ef6
push edi
mov ecx, esi
call fcn.004286a0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c880
mov eax, dword [ebp - 0x190]
mov edx, dword [ebp - 0x188]
inc eax
add edx, 0x78
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x188], edx
cmp eax, dword [ebp - 0x18]
jb 0x422e10
mov edi, dword [ebp - 0x194]
push edi
jmp 0x4230ea
mov esi, dword [sym.imp.WINSPOOL.DRV_EnumPrinterDriversW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x184], 0
push eax
push 0
push 0
push 6
push 0
push 0
mov dword [ebp - 0x18], 0
call esi
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x4230f2
push eax
call fcn.004a9e83
add esp, 4
mov dword [ebp - 0x18c], eax
test eax, eax
je 0x4230f2
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x184]
push ecx
push dword [ebp - 0x184]
push eax
push 6
push 0
push 0
call esi
test eax, eax
je 0x4230e4
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x188], 0
jbe 0x4230e4
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x190], eax
nop dword [eax + eax]
xor ecx, ecx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], cx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], cx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], cx
mov dword [ebp - 4], 3
movups xmm0, xmmword [eax + 0x10]
movups xmm1, xmmword [eax]
movups xmmword [ebp - 0x1d8], xmm0
movups xmm0, xmmword [eax + 0x20]
psrldq xmm1, 4
movups xmmword [ebp - 0x1c8], xmm0
movups xmm0, xmmword [eax + 0x30]
movd edx, xmm1
movups xmmword [ebp - 0x1b8], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [ebp - 0x1a8], xmm0
test edx, edx
je 0x423069
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423050
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00406ee0
mov esi, dword [edi + 4]
lea eax, [ebp - 0x60]
push eax
cmp dword [edi + 8], esi
je 0x4230a8
mov ecx, esi
mov dword [ebp - 0x198], esi
call fcn.00405ba0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x18]
call fcn.00405ba0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x30]
call fcn.00405ba0
add dword [edi + 4], 0x48
jmp 0x4230b0
push esi
mov ecx, edi
call fcn.004286a0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c880
mov ecx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x190]
inc ecx
add eax, 0x50
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x190], eax
cmp ecx, dword [ebp - 0x18]
jb 0x422fd0
push dword [ebp - 0x18c]
call fcn.004a9a64
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048aaf4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret