Function at 0x46c7e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54253b
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x580124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
mov dword [ebp - 0x40], 0x591209c7
xor bl, bl
mov dword [ebp - 0x3c], 0x42b2767b
mov dword [ebp - 0x38], 0xee44ba9f
mov dword [ebp - 0x34], 0xc7f21546
mov dword [ebp - 0x30], 0x4e530b0a
mov dword [ebp - 0x2c], 0x4c77e611
mov dword [ebp - 0x28], 0x3190aca3
mov dword [ebp - 0x24], 0x1b2822d0
mov dword [ebp - 0x50], 0x229d59e2
mov dword [ebp - 0x4c], 0x402ef94a
mov dword [ebp - 0x48], 0x843b9f9a
mov dword [ebp - 0x44], 0x77edaca1
mov dword [ebp - 0x20], 0xc7225171
mov dword [ebp - 0x1c], 0x4cf7b9a7
mov dword [ebp - 0x18], 0xab851f86
mov dword [ebp - 0x14], 0xb2c5a37b
mov dword [ebp - 0x60], 0x4cd6ed57
mov dword [ebp - 0x5c], 0x4b47618e
mov dword [ebp - 0x58], 0x630993bd
mov dword [ebp - 0x54], 0xf44febd3
mov dword [ebp - 0x180], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
mov dword [ebp - 0x178], 0
lea eax, [ebp - 0x178]
mov dword [ebp - 0x184], esi
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x188], 0
push eax
push 3
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18c], 0
push eax
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x194], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x46cc03
mov ecx, dword [ebp - 0x178]
test ecx, ecx
je 0x46cc03
mov eax, dword [ecx]
lea edx, [ebp - 0x188]
push edx
lea edx, [ebp - 0x50]
push edx
push ecx
call dword [eax]
test eax, eax
js 0x46c96d
mov eax, dword [ebp - 0x188]
push edi
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov ecx, dword [ebp - 0x188]
test eax, eax
movzx ebx, bl
mov eax, 1
cmovns ebx, eax
test ecx, ecx
je 0x46c95b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x188], 0
test bl, bl
jne 0x46cab7
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x18c]
push edx
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x46c9df
mov eax, dword [ebp - 0x18c]
push edi
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
movzx ebx, bl
mov eax, 1
lea edx, [ebp - 0x180]
cmovns ebx, eax
mov eax, dword [ebp - 0x178]
push edx
push edi
push 1
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [ebp - 0x18c]
test ecx, ecx
je 0x46c9cd
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0x18c], 0
test bl, bl
jne 0x46cab7
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x190]
push edx
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x46ca4d
mov eax, dword [ebp - 0x190]
push edi
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
movzx ebx, bl
mov eax, 1
lea edx, [ebp - 0x180]
cmovns ebx, eax
mov eax, dword [ebp - 0x178]
push edx
push edi
push 1
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [ebp - 0x190]
test ecx, ecx
je 0x46ca3f
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0x190], 0
test bl, bl
jne 0x46cab7
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x194]
push edx
lea edx, [ebp - 0x60]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x46cab7
mov eax, dword [ebp - 0x194]
push edi
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
movzx ebx, bl
mov eax, 1
lea edx, [ebp - 0x180]
cmovns ebx, eax
mov eax, dword [ebp - 0x178]
push edx
push edi
push 1
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [ebp - 0x194]
test ecx, ecx
je 0x46caad
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0x194], 0
push 0x110
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.004e8ae0
add esp, 0xc
mov dword [ebp - 0x174], 0x114
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test bl, bl
jne 0x46cbe9
cmp dword [ebp - 0x170], 0xa
jne 0x46cbe9
mov eax, dword [ebp - 0x178]
mov eax, dword [eax]
mov ebx, dword [eax + 0x1c]
lea eax, [ebp - 0x198]
push eax
push 4
push 1
lea esi, [ebx + 6]
mov dword [ebp - 0x198], 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x46cbe3
mov byte [ebp - 0x179], 0
mov dword [ebp - 0x1a0], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x1a0]
push ecx
push 1
lea ecx, [ebp - 0x179]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x46cbe3
lea eax, [ebp - 0x198]
push eax
push dword [ebp - 0x198]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x46cbe3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x10
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x46cbe3
mov eax, dword [ebp - 0x178]
push edi
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x1c]
call eax
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x180], eax
call fcn.004081d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x19c]
push dword [ebp - 0x180]
push str.SetAppAsDefault_WIN10_ret:_d
push eax
call fcn.004232b0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x19c]
call fcn.00407b80
mov esi, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x178]
test ecx, ecx
je 0x46cbf9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x178], 0
test esi, esi
je 0x46cc0d
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4c11
mov esp, ebp
pop ebp
ret