Function at 0x4d9620
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x552ed7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x294], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov ebx, dword [esp + 0x2a8]
xor esi, esi
mov byte [esp + 0x294], 1
mov dword [esp + 0x4c], 0x1000
mov eax, dword [ebx]
cmp eax, ebp
je 0x4d9689
mov esi, dword [eax]
cmp esi, 0x1000
ja 0x4d969a
push ebp
push 0x1000
mov ecx, ebx
call fcn.004da0b0
mov eax, dword [ebx]
mov dword [eax], esi
mov edx, dword [ebx]
cmp edx, ebp
je 0x4d96ba
mov ecx, dword [edx + 0xc]
mov edi, dword [edx + 8]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx]
mov dword [eax], ebp
mov edx, dword [0x9f8df4]
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
xor ebx, ebx
mov ebp, ecx
test edx, edx
mov dword [esp + 0x38], ecx
jne 0x4d9743
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
test edx, edx
mov dword [0x9f8df4], edx
jne 0x4d9743
push eax
push 0x8fc0ac
push 0x8fc09c
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x2ac]
test eax, eax
je 0x4d9bbb
push 0x3a8
push 0
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004da330
add esp, 0x10
mov eax, dword [eax]
mov byte [esp + 0x294], 3
test eax, eax
je 0x4d9b8a
mov eax, dword [eax + 8]
jmp 0x4d9b8c
mov ecx, 0x46
xor eax, eax
lea edi, [esp + 0x54]
mov dword [esp + 0x50], 0x11c
push str.RtlGetVersion
push edx
rep stosd dword es:[edi], eax
call esi
test eax, eax
je 0x4d9780
lea edx, [esp + 0x50]
push edx
call eax
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov al, byte [esp + 0x16a]
jmp 0x4d97ff
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x170]
mov dword [esp + 0x170], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d9705
mov ecx, dword [0x9f8df4]
push str.RtlGetNtVersionNumbers
push ecx
call esi
lea edx, [esp + 0x17c]
lea ecx, [esp + 0x178]
push edx
lea edx, [esp + 0x178]
push ecx
push edx
call eax
mov al, byte [esp + 0x296]
mov edx, dword [esp + 0x180]
mov ecx, dword [esp + 0x184]
mov esi, dword [esp + 0x188]
add esp, 0xc
mov byte [esp + 0x16a], al
lea edi, [esp + 0x28]
test edi, edi
je 0x4d981e
mov ebp, dword [esp + 0x16a]
mov ebx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], esi
and ebp, 0xff
cmp edx, 5
jne 0x4d987c
test ecx, ecx
jne 0x4d9831
mov eax, 0x14
jmp 0x4d98e3
cmp ecx, 1
jne 0x4d9840
mov eax, 0x13
jmp 0x4d98e3
cmp ecx, 2
jne 0x4d9705
cmp al, 1
jne 0x4d9857
mov eax, 0x12
jmp 0x4d98e3
cmp word [esp + 0x168], 0x8000
jne 0x4d986a
mov eax, 0xf
jmp 0x4d98e3
xor eax, eax
cmp word [esp + 0x164], ax
setne al
add eax, 0x10
jmp 0x4d98e3
cmp edx, 6
jne 0x4d98c7
test ecx, ecx
jne 0x4d9890
dec al
neg al
sbb eax, eax
add eax, 0xd
jmp 0x4d98e3
cmp ecx, 1
jne 0x4d98a0
dec al
neg al
sbb eax, eax
add eax, 0xb
jmp 0x4d98e3
cmp ecx, 2
jne 0x4d98b0
dec al
neg al
sbb eax, eax
add eax, 9
jmp 0x4d98e3
cmp ecx, 3
jne 0x4d9705
xor ecx, ecx
cmp al, 1
setne cl
add ecx, 6
mov eax, ecx
jmp 0x4d98e3
cmp edx, 0xa
jne 0x4d9705
test ecx, ecx
jne 0x4d9705
dec al
neg al
sbb eax, eax
and al, 0xfe
add eax, 5
mov ecx, dword [esp + 0x2ac]
test ecx, ecx
je 0x4d9a64
cmp word [ecx], 0
je 0x4d9a64
dec eax
cmp eax, 0x1c
ja case.default.0x4d9906
jmp dword [eax*4 + 0x4d9e44]
mov esi, str.Server2022
jmp 0x4d99fe
mov esi, str.Server2019
jmp 0x4d99fe
mov esi, str.Server2016
jmp 0x4d99fe
mov esi, str.Windows_11
jmp 0x4d99fe
mov esi, str.Windows_10
jmp 0x4d99fe
mov esi, str.Windows_8.1
jmp 0x4d99fe
mov esi, str.Server2012_R2
jmp 0x4d99fe
mov esi, str.Server2012
jmp 0x4d99fe
mov esi, str.Windows_8
jmp 0x4d99fe
mov esi, str.Server2008_R2
jmp 0x4d99fe
mov esi, str.Windows_7
jmp 0x4d99fe
mov esi, str.Server2008
jmp 0x4d99fe
mov esi, str.Windows_Vista
jmp 0x4d99fe
mov esi, str.Server2003
jmp 0x4d99fe
mov esi, str.Windows_Home_Server
jmp 0x4d99fe
mov esi, str.Windows_2003
jmp 0x4d99fe
mov esi, str.Windows_2003_SP1_SP2
jmp 0x4d99fe
mov esi, str.Windows_XP64
jmp 0x4d99fe
mov esi, str.Windows_XP
jmp 0x4d99fe
mov esi, str.Windows_2000
jmp 0x4d99fe
mov esi, str.Windows_7_7600
jmp 0x4d99fe
mov esi, str.Windows_7_7000
jmp 0x4d99fe
mov esi, str.Windows_10_15063
jmp 0x4d99fe
mov esi, str.Windows_10_16299
jmp 0x4d99fe
mov esi, str.Windows_10_17134
jmp 0x4d99fe
mov esi, str.Windows_10_17763
jmp 0x4d99fe
mov esi, str.Windows_10_18362
jmp 0x4d99fe
mov esi, str.Windows_10_18363
jmp 0x4d99fe
mov esi, str.Windows_10_19041
jmp 0x4d99fe
mov esi, 0x8fbea0
push 0x3a8
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.004da330
add esp, 0x10
mov eax, dword [eax]
mov byte [esp + 0x294], 2
test eax, eax
je 0x4d9a26
mov eax, dword [eax + 8]
jmp 0x4d9a28
xor eax, eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push esi
push ebp
push ecx
mov ecx, dword [esp + 0x2b0]
push edx
mov edx, dword [esp + 0x2b8]
push ebx
push ecx
push eax
push 0x8fbe04
push edx
call fcn.004da220
add esp, 0x24
mov byte [esp + 0x294], 1
lea ecx, [esp + 0x14]
jmp 0x4d9bb6
dec eax
cmp eax, 0x1c
ja case.default.0x4d9a6e
jmp dword [eax*4 + 0x4d9eb8]
mov eax, str.Server2022
jmp 0x4d9b66
mov eax, str.Server2019
jmp 0x4d9b66
mov eax, str.Server2016
jmp 0x4d9b66
mov eax, str.Windows_11
jmp 0x4d9b66
mov eax, str.Windows_10
jmp 0x4d9b66
mov eax, str.Windows_8.1
jmp 0x4d9b66
mov eax, str.Server2012_R2
jmp 0x4d9b66
mov eax, str.Server2012
jmp 0x4d9b66
mov eax, str.Windows_8
jmp 0x4d9b66
mov eax, str.Server2008_R2
jmp 0x4d9b66
mov eax, str.Windows_7
jmp 0x4d9b66
mov eax, str.Server2008
jmp 0x4d9b66
mov eax, str.Windows_Vista
jmp 0x4d9b66
mov eax, str.Server2003
jmp 0x4d9b66
mov eax, str.Windows_Home_Server
jmp 0x4d9b66
mov eax, str.Windows_2003
jmp 0x4d9b66
mov eax, str.Windows_2003_SP1_SP2
jmp 0x4d9b66
mov eax, str.Windows_XP64
jmp 0x4d9b66
mov eax, str.Windows_XP
jmp 0x4d9b66
mov eax, str.Windows_2000
jmp 0x4d9b66
mov eax, str.Windows_7_7600
jmp 0x4d9b66
mov eax, str.Windows_7_7000
jmp 0x4d9b66
mov eax, str.Windows_10_15063
jmp 0x4d9b66
mov eax, str.Windows_10_16299
jmp 0x4d9b66
mov eax, str.Windows_10_17134
jmp 0x4d9b66
mov eax, str.Windows_10_17763
jmp 0x4d9b66
mov eax, str.Windows_10_18362
jmp 0x4d9b66
mov eax, str.Windows_10_18363
jmp 0x4d9b66
mov eax, str.Windows_10_19041
jmp 0x4d9b66
mov eax, 0x8fbea0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x2a8]
push eax
mov eax, dword [esp + 0x34]
push ebp
push eax
push ecx
push ebx
push 0x8fbd78
push edx
call fcn.004da220
add esp, 0x1c
jmp 0x4d9bbb
xor eax, eax
mov ecx, dword [esp + 0x2a4]
mov edx, dword [esp + 0x2a8]
push ecx
push eax
push 0x8fbd44
push edx
call fcn.004da220
add esp, 0x10
mov byte [esp + 0x294], 1
lea ecx, [esp + 0x14]
call fcn.004d9360
mov ecx, dword [esp + 0x2a8]
push 0
push 0x8fbd10
call fcn.004d9f30
mov ecx, dword [esp + 0x29c]
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004dae50
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x4d9e02
mov eax, dword [edi + 0x3c]
push 0x64
add eax, edi
push 1
lea ecx, [esp + 0x18]
mov esi, dword [eax + 0x80]
add esi, edi
call fcn.004da6d0
push 0
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x29c], 4
call fcn.004da7d0
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0xc]
test ecx, ecx
je 0x4d9df1
add esi, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov ebp, dword [eax]
add ebp, edi
cmp byte [ebp], 0
jne 0x4d9c5b
mov edx, dword [esp + 0x1c]
add edx, 0x14
add eax, 0x14
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jmp 0x4d9de8
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4d9c71
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
push 0
push 0
lea ecx, [esp + 0x18]
call fcn.004da7d0
mov edx, dword [esp + 0x1c]
mov edi, dword [edx]
mov edx, dword [esp + 0x14]
add edi, edx
mov eax, dword [edi]
test eax, eax
je 0x4d9cf7
test eax, 0x80000000
je 0x4d9ca0
and eax, 0xffff
mov esi, eax
jmp 0x4d9ca8
mov ecx, dword [esp + 0x14]
lea esi, [eax + ecx + 2]
test ebx, ebx
je 0x4d9cb8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4d9ced
cmp esi, 0xffff
mov eax, 0x8fbd00
jbe 0x4d9cca
mov eax, 0x8fbcfc
push esi
lea edx, [esp + 0x40]
push eax
push edx
call fcn.004da560
add esp, 0xc
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
push eax
call fcn.004da940
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
jne 0x4d9c90
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d9dc9
mov edi, dword [eax + 4]
test edi, edi
jle 0x4d9dc9
test ebx, ebx
push 0
jne 0x4d9d46
mov ecx, dword [esp + 0x2ac]
push 0x8fbcf8
push 0
push ebp
push 0
push 0x8fbcec
call fcn.004d9f30
mov ecx, eax
call fcn.004d9f30
mov ecx, eax
call fcn.004d9f30
mov ebx, dword [esp + 0x2a8]
jmp 0x4d9dae
mov ebx, dword [esp + 0x2ac]
push 0x8fbcd8
push 0
push ebp
push 0
push 0x8fbcd0
mov ecx, ebx
call fcn.004d9f30
mov ecx, eax
call fcn.004d9f30
mov ecx, eax
call fcn.004d9f30
xor esi, esi
test edi, edi
jle 0x4d9dae
push 0
push 0x8fbcf8
push 0
push esi
lea ecx, [esp + 0x20]
call fcn.004da780
mov ecx, dword [eax]
push ecx
push 0
push 0x8fbcc4
mov ecx, ebx
call fcn.004d9f30
mov ecx, eax
call fcn.004d9f30
mov ecx, eax
call fcn.004d9f30
inc esi
cmp esi, edi
jl 0x4d9d77
push 0
push 0x8fbcf8
mov ecx, ebx
call fcn.004d9f30
push 0
push 0
lea ecx, [esp + 0x18]
call fcn.004da7d0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, 0x14
add edx, eax
add ecx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov eax, ecx
cmp dword [eax], 0
jne 0x4d9c3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 1
call fcn.004da750
lea ecx, [esp + 0x3c]
mov byte [esp + 0x294], 0
call fcn.004da510
lea ecx, [esp + 0x20]
mov dword [esp + 0x294], 0xffffffff
call fcn.004d9360
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x288
ret 0x14