Function at 0x420020
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
mov edi, ecx
call fcn.00415e60
push 0x60
lea eax, [ebp - 0xd4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
mov dword [ebp - 0xd4], 0x60
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0xcc], eax
mov eax, dword [edi + 0x10]
push str.ApplicationDisplayName
mov dword [ebp - 0xc8], 0x821b
mov dword [ebp - 0xc4], 8
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x50]
push eax
push str.ApplicationDisplayName
call fcn.00403040
sub esp, 0x10
lea ecx, [ebp - 0x50]
mov eax, esp
push ecx
mov ecx, dword [edi + 0x14]
push eax
call fcn.0040f970
lea eax, [ebp - 0x60]
push eax
push 0xc9
call fcn.0041a900
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
add esp, 0x18
add eax, eax
push eax
push dword [ebp - 0x48]
call fcn.00420bb0
push 0x114
lea eax, [ebp - 0x1e8]
mov dword [ebp - 0x30], 0
push 0
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x1e8]
add esp, 0xc
mov dword [ebp - 0x1e8], 0x114
push eax
call ebx
cmp dword [ebp - 0x1e4], 6
lea eax, [ebp - 0x30]
push eax
push 0xfb
jb 0x420158
call fcn.0041d6d0
jmp 0x42015d
call fcn.0041d760
add esp, 8
mov dword [ebp - 0x40], 0
sub esp, 0x10
mov dword [ebp - 0x3c], 0
mov eax, esp
mov dword [ebp - 0x38], 0
push esi
push dword [ebp + 8]
push eax
call fcn.0041d4f0
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push 0xfc
call fcn.0041a900
mov eax, dword [ebp - 0x58]
mov esi, 0x5b3144
test eax, eax
mov dword [ebp - 0x20], 0
mov ecx, esi
mov dword [ebp - 0x1c], 0
cmovne ecx, eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x28]
test eax, eax
mov dword [ebp - 0xc0], ecx
mov ecx, esi
cmovne ecx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xb8], ecx
test eax, eax
mov ecx, esi
cmovne ecx, eax
lea eax, [ebp - 0x1e8]
push 0x114
push 0
push eax
mov dword [ebp - 0xb4], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
mov dword [ebp - 0x1e8], 0x114
lea eax, [ebp - 0x1e8]
push eax
call ebx
cmp dword [ebp - 0x1e4], 6
lea eax, [ebp - 0x20]
push eax
push 0xfd
jb 0x420221
call fcn.0041d6d0
jmp 0x420226
call fcn.0041d760
add esp, 8
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x1e8]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0x114
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1e8], 0x114
lea eax, [ebp - 0x1e8]
push eax
call ebx
cmp dword [ebp - 0x1e4], 6
lea eax, [ebp - 0x10]
push eax
push 0xfe
jb 0x420280
call fcn.0041d6d0
jmp 0x420285
call fcn.0041d760
mov eax, dword [ebp - 0x18]
add esp, 8
test eax, eax
mov dword [ebp - 0x70], 0x4e5
mov ecx, esi
mov dword [ebp - 0x68], 0x4e6
cmovne ecx, eax
mov dword [ebp - 0xb0], 2
mov dword [ebp - 0x6c], ecx
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 8]
test ecx, ecx
mov dword [ebp - 0xac], eax
mov eax, dword [edi + 0xa4]
cmovne esi, ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0xa8], 0x4e5
mov dword [ebp - 0x80], 0x41ad90
mov dword [ebp - 0x7c], edi
test eax, eax
jne 0x4202ff
mov eax, dword [0x5b317c]
test eax, eax
je 0x420317
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xd4]
push ecx
call eax
jmp 0x420314
lea ecx, [ebp - 0xd4]
push ecx
push 0
push 0x465
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push ecx
lea ecx, [ebp - 4]
call fcn.00420bb0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
add eax, eax
mov dword [ebp - 8], 0
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
add eax, eax
mov dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x38]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
add eax, eax
mov dword [ebp - 0x38], 0
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x54]
add eax, eax
mov dword [ebp - 0x28], 0
push eax
push dword [ebp - 0x58]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.00420bb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8