Function at 0x4226d0
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 0x4c5155
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
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 eax, ecx
mov dword [ebp - 0x1f0], eax
mov edi, dword [eax + 4]
mov esi, dword [eax]
cmp esi, edi
je 0x422738
mov ecx, esi
call fcn.0040c880
add esi, 0x48
cmp esi, edi
jne 0x422722
mov eax, dword [ebp - 0x1f0]
mov esi, dword [eax]
push 0x118
mov dword [eax + 4], esi
lea eax, [ebp - 0x1d4]
push 0
push eax
call fcn.004a21c0
add esp, 0xc
mov dword [ebp - 0x1d8], 0x11c
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422779
cmp dword [ebp - 0x1d4], 6
jb 0x422779
mov al, 1
jmp 0x42277b
xor al, al
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov byte [ebp - 0x1e1], al
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
test al, al
je 0x422972
mov esi, dword [sym.imp.WINSPOOL.DRV_EnumPrinterDriversW]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1dc]
push eax
push 0
push 0
push 8
push 0
push 0
call esi
mov eax, dword [ebp - 0x1dc]
test eax, eax
je 0x422972
push eax
call fcn.004a9e83
mov edi, eax
add esp, 4
mov dword [ebp - 0x1f4], edi
test edi, edi
je 0x422972
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1dc]
push eax
push dword [ebp - 0x1dc]
push edi
push 8
push 0
push 0
call esi
test eax, eax
je 0x422972
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x1e8], 0
jbe 0x422972
mov edx, edi
mov dword [ebp - 0x1ec], edi
nop dword [eax]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov esi, edx
mov byte [ebp - 4], 1
mov ecx, 0x1e
lea edi, [ebp - 0x270]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x26c]
test edx, edx
je 0x4228cb
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4228b2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00406ee0
mov edx, dword [ebp - 0x214]
test edx, edx
je 0x4228f9
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4228e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00406ee0
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x70]
push eax
cmp dword [ebp - 0x18], esi
je 0x422938
mov ecx, esi
mov dword [ebp - 0x1f8], esi
call fcn.00405ba0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.00405ba0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x30]
call fcn.00405ba0
add dword [ebp - 0x1c], 0x48
jmp 0x422941
push esi
lea ecx, [ebp - 0x20]
call fcn.004286a0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.0040c880
mov eax, dword [ebp - 0x1e8]
mov edx, dword [ebp - 0x1ec]
inc eax
add edx, 0x78
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1ec], edx
cmp eax, dword [ebp - 0x24]
jb 0x422860
mov esi, dword [sym.imp.WINSPOOL.DRV_EnumPrintersW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1e0]
push eax
push 0
push 0
push 2
push 0
push 6
call esi
push dword [ebp - 0x1e0]
call fcn.004a9e83
mov edi, eax
add esp, 4
mov dword [ebp - 0x1f8], edi
test edi, edi
je 0x422c1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1e0]
push edi
push 2
push 0
push 6
call esi
cmp dword [ebp - 0x28], 0
mov dword [ebp - 0x1ec], 0
jbe 0x422c13
mov dword [ebp - 0x1e8], edi
movups xmm0, xmmword [edi]
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
movups xmmword [ebp - 0x250], xmm0
mov word [ebp - 0xb8], ax
movups xmm0, xmmword [edi + 0x20]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 7
movups xmmword [ebp - 0x230], xmm0
mov word [ebp - 0xa0], ax
movups xmm0, xmmword [edi + 0x30]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
movups xmmword [ebp - 0x220], xmm0
mov word [ebp - 0x88], ax
movups xmm0, xmmword [edi + 0x40]
movups xmmword [ebp - 0x210], xmm0
mov byte [ebp - 4], 4
mov edx, dword [edi + 0x10]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422a60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa0]
call fcn.00406ee0
mov edx, dword [ebp - 0x24c]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422a87
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.00406ee0
cmp byte [ebp - 0x1e1], 0
je 0x422b62
mov esi, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x1c]
je 0x422b62
nop dword [eax]
push esi
lea ecx, [ebp - 0x70]
call fcn.00405ba0
lea edi, [esi + 0x30]
mov byte [ebp - 4], 5
lea eax, [edi - 0x18]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405ba0
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00405ba0
mov byte [ebp - 4], 7
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 8
lea edi, [ebp - 0x58]
mov edx, dword [ebp - 0x48]
cmovae eax, dword [ebp - 0xa0]
cmp dword [ebp - 0x44], 8
cmovae edi, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x90]
jne 0x422bb6
test edx, edx
je 0x422b36
sub edi, eax
mov cx, word [edi + eax]
cmp cx, word [eax]
jne 0x422bb6
add eax, 2
sub edx, 1
jne 0x422b21
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x88]
push eax
call fcn.00406ee0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.0040c880
mov edi, dword [ebp - 0x1e8]
mov eax, dword [ebp - 0x1f0]
mov esi, dword [eax + 4]
cmp dword [eax + 8], esi
je 0x422bd0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x1e8], esi
push eax
mov ecx, esi
call fcn.00405ba0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0x18]
call fcn.00405ba0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 9
push eax
lea ecx, [esi + 0x30]
call fcn.00405ba0
mov eax, dword [ebp - 0x1f0]
add dword [eax + 4], 0x48
jmp 0x422bdf
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.0040c880
add esi, 0x48
cmp esi, dword [ebp - 0x1c]
jne 0x422ac0
jmp 0x422b5c
lea ecx, [ebp - 0xb8]
push ecx
push esi
mov ecx, eax
call fcn.004286a0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0
call fcn.0040c880
mov eax, dword [ebp - 0x1ec]
add edi, 0x54
inc eax
mov dword [ebp - 0x1e8], edi
mov dword [ebp - 0x1ec], eax
cmp eax, dword [ebp - 0x28]
jb 0x4229e1
mov edi, dword [ebp - 0x1f8]
push edi
call fcn.004a9a64
add esp, 4
mov eax, dword [ebp - 0x1f4]
test eax, eax
je 0x422c2f
push eax
call fcn.004a9a64
add esp, 4
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x422c91
mov edi, dword [ebp - 0x1c]
cmp esi, edi
je 0x422c51
nop dword [eax]
mov ecx, esi
call fcn.0040c880
add esi, 0x48
cmp esi, edi
jne 0x422c40
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov eax, 0x38e38e39
sub ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*8]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x422c87
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422caf
push ecx
push esi
call fcn.0048ab28
add esp, 8
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
call fcn.004a6c47
int3