Function at 0x495d10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x502e34
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x48], ebx
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x48], 1
test esi, esi
je 0x4960b1
movzx eax, word [esi]
test ax, ax
je 0x4960b1
lea edi, [esp + 0x20]
cmp ax, 0x2e
je 0x495da7
push esi
push 0x5161b0
call fcn.00404890
add esp, 8
jmp 0x495dae
mov edx, esi
call fcn.00401600
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x48], 2
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, dword [esp + 0x20]
lea edi, [esp + 0x1c]
push ebx
cmp al, 5
ja 0x495ec8
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_s
call fcn.00404890
add esp, 4
mov eax, esp
mov dword [esp + 0x2c], esp
push eax
mov ecx, str.Progid
lea esi, [esp + 0x20]
xor edi, edi
call fcn.00401640
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x20]
push ecx
mov dword [esp + 0x2c], esp
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
call fcn.004048c0
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
push SHChangeNotifyDeregister
lea edx, [esp + 0x38]
push edx
mov ecx, edi
mov byte [esp + 0x58], 2
call fcn.00404630
mov byte [esp + 0x48], 4
mov edi, 2
push eax
mov dword [esp + 0x28], edi
call fcn.0048f8f0
add esp, 4
test eax, eax
je 0x495e65
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x17], 1
jne 0x495e6a
mov byte [esp + 0x17], 0
lea esi, [esp + 0x2c]
mov dword [esp + 0x48], edi
call fcn.004045f0
cmp byte [esp + 0x17], 0
je 0x495f6f
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004048c0
mov esi, dword [ebp + 8]
add eax, 0x10
lea ecx, [esp + 0x1c]
mov dword [esi], eax
call fcn.004016f0
lea ecx, [esp + 0x20]
call fcn.004016f0
lea ecx, [esp + 0x18]
call fcn.004016f0
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_sUserChoice
call fcn.00404890
add esp, 4
mov ecx, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, str.Progid
lea edi, [esp + 0x20]
xor esi, esi
call fcn.00401640
mov byte [esp + 0x4c], 5
mov eax, dword [esp + 0x20]
push ecx
mov dword [esp + 0x2c], esp
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
call fcn.004048c0
mov edx, esp
add eax, 0x10
mov dword [edx], eax
push SHChangeNotifyDeregister
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov byte [esp + 0x58], 2
call fcn.00404630
mov byte [esp + 0x48], 6
push eax
mov esi, edi
mov dword [esp + 0x28], 4
call fcn.0048f8f0
mov edi, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x495f4e
cmp dword [edi - 0xc], 0
mov byte [esp + 0x17], 1
jne 0x495f53
mov byte [esp + 0x17], 0
lea esi, [esp + 0x2c]
mov dword [esp + 0x48], 2
call fcn.004045f0
cmp byte [esp + 0x17], 0
jne 0x4960a9
push ebx
push str.SoftwareClasses_s
lea edi, [esp + 0x24]
call fcn.00404890
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x563288
lea edi, [esp + 0x1c]
mov dword [esp + 0x2c], esp
mov esi, esp
call eax
add eax, 0x10
mov dword [esi], eax
call fcn.004013b0
mov byte [esp + 0x4c], 8
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.004048c0
push SHChangeNotifyDeregister
lea ecx, [esp + 0x38]
add eax, 0x10
push ecx
mov dword [esi], eax
xor ecx, ecx
mov byte [esp + 0x58], 2
call fcn.00404630
mov byte [esp + 0x48], 9
push eax
mov esi, edi
mov dword [esp + 0x28], 8
call fcn.0048f8f0
mov edi, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x496003
cmp dword [edi - 0xc], 0
mov byte [esp + 0x17], 1
jne 0x496008
mov byte [esp + 0x17], 0
lea esi, [esp + 0x2c]
mov dword [esp + 0x48], 2
call fcn.004045f0
cmp byte [esp + 0x17], 0
jne 0x4960a9
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
xor ecx, ecx
lea esi, [esp + 0x20]
xor edi, edi
call fcn.00401640
push ecx
mov byte [esp + 0x50], 0xa
add ebx, 0xfffffff0
mov dword [esp + 0x2c], esp
mov eax, ebx
mov dword [esp + 0x2c], esp
call fcn.004048c0
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
push SHChangeNotifyDeregister
lea edx, [esp + 0x38]
push edx
mov ecx, edi
mov byte [esp + 0x58], 2
call fcn.00404630
mov byte [esp + 0x48], 0xb
push eax
mov dword [esp + 0x28], 0x10
call fcn.0048f8f0
mov edi, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x496096
cmp dword [edi - 0xc], 0
je 0x496096
mov bl, 1
jmp 0x496098
xor bl, bl
lea esi, [esp + 0x2c]
mov dword [esp + 0x48], 2
call fcn.004045f0
lea eax, [edi - 0x10]
jmp 0x495e89
lea esi, [edi - 0x10]
mov eax, esi
call fcn.004048c0
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x48], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4960e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496105
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4