Function at 0x42464b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x470824]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x144], edi
test edi, edi
je 0x4246a1
mov byte [edi], 0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 2
pop edx
test ax, ax
jne 0x4246e4
test edi, edi
je 0x4246da
push 0xf
pop ecx
mov esi, str.Could_not_identify_the_operating_system___assuming_NT_style
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x144]
mov esi, dword [ebp - 0x13c]
mov eax, edx
mov dword [ebp - 0x88], eax
jmp 0x4246ea
mov eax, dword [ebp - 0x88]
cmp eax, edx
je 0x424712
test edi, edi
je 0x4246fd
push 9
pop ecx
mov esi, str.OS_identified_as_NOT_a_NT_derivative
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x42470a
and dword [eax], 0
or eax, 0xffffffff
jmp 0x424a14
mov eax, dword [ebp - 0x140]
xor edi, edi
inc edi
test eax, eax
je 0x424721
mov dword [eax], edi
push 4
pop eax
cmp dword [ebp - 0x94], eax
ja 0x42472f
and dword [esi], 0
push 5
pop ecx
cmp dword [ebp - 0x94], ecx
jne 0x424761
cmp dword [ebp - 0x90], 0
jne 0x424745
mov dword [esi], edi
cmp dword [ebp - 0x90], edi
jne 0x42474f
mov dword [esi], edx
cmp dword [ebp - 0x90], edx
jne 0x42475d
mov dword [esi], 3
jbe 0x42476c
mov dword [esi], eax
cmp dword [ebp - 0x94], 6
jne 0x42476c
mov dword [esi], ecx
mov edi, dword [ebp - 0x138]
test edi, edi
je 0x4248dd
mov eax, dword [esi]
sub eax, 0
je 0x4248d7
sub eax, 1
je 0x4248c4
sub eax, 1
je 0x4248bc
sub eax, 1
je 0x4248b1
sub eax, 1
je 0x4248a6
sub eax, 1
jne 0x4248dd
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x42480d
push str.RtlGetVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x13c], eax
test eax, eax
je 0x424806
push 0x98
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.0042faa0
add esp, 0xc
mov dword [ebp - 0x134], 0x9c
lea eax, [ebp - 0x134]
push eax
call dword [ebp - 0x13c]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x130], 7
jae 0x42487a
cmp dword [ebp - 0x90], 0
jne 0x424830
mov esi, str.Vista_Server_2008
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0x138]
cmp dword [ebp - 0x90], 1
jne 0x424843
push 5
pop ecx
mov esi, str.Win7_Server_2008_R2
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x90], 2
mov eax, dword [ebp - 0x138]
jne 0x42485e
mov esi, str.Win8_Server_2012
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x90], 3
jne 0x424874
push 5
pop ecx
mov esi, str.Win8.1_Server_2012R2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x138]
cmp dword [ebp - 0x130], 0xa
jne 0x4248dd
cmp dword [ebp - 0x12c], 0
jne 0x424898
push 0xc
pop ecx
mov esi, str.Win10_Win11_Server_2016_Server_2019_Server_2022
rep movsd dword es:[edi], dword [esi]
jmp 0x4248dd
push 5
pop ecx
mov esi, str.post_Win11_Server_2022
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x4248b9
mov esi, str.Post_XP_W2003_Server
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x4248dd
mov esi, str.2003_Server
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x4248dd
mov dword [edi], 0x205058
jmp 0x4248dd
mov eax, dword [str.2000]
mov dword [edi], eax
mov ax, word [0x458168]
mov word [edi + 4], ax
jmp 0x4248dd
mov dword [edi], 0x20544e
test ebx, ebx
je 0x4249ee
and dword [ebx], 0
lea eax, [ebp - 0x84]
push 0x31
push eax
call fcn.0042eba0
pop ecx
pop ecx
test eax, eax
je 0x424907
mov dword [ebx], 1
jmp 0x4249ee
lea eax, [ebp - 0x84]
push 0x32
push eax
call fcn.0042eba0
pop ecx
pop ecx
test eax, eax
je 0x424926
mov dword [ebx], 2
jmp 0x4249ee
lea eax, [ebp - 0x84]
push 0x33
push eax
call fcn.0042eba0
pop ecx
pop ecx
test eax, eax
je 0x424945
mov dword [ebx], 3
jmp 0x4249ee
lea eax, [ebp - 0x84]
push 0x34
push eax
call fcn.0042eba0
pop ecx
pop ecx
test eax, eax
je 0x424964
mov dword [ebx], 4
jmp 0x4249ee
lea eax, [ebp - 0x84]
push 0x35
push eax
call fcn.0042eba0
pop ecx
pop ecx
test eax, eax
je 0x424980
mov dword [ebx], 5
jmp 0x4249ee
lea eax, [ebp - 0x84]
push 0x36
push eax
call fcn.0042eba0
pop ecx
pop ecx
test eax, eax
je 0x42499c
mov dword [ebx], 6
jmp 0x4249ee
lea eax, [ebp - 0x84]
push 0x37
push eax
call fcn.0042eba0
pop ecx
pop ecx
test eax, eax
je 0x4249b8
mov dword [ebx], 7
jmp 0x4249ee
lea eax, [ebp - 0x84]
push 0x38
push eax
call fcn.0042eba0
pop ecx
pop ecx
test eax, eax
je 0x4249d4
mov dword [ebx], 8
jmp 0x4249ee
lea eax, [ebp - 0x84]
push 0x39
push eax
call fcn.0042eba0
pop ecx
pop ecx
test eax, eax
je 0x4249ee
mov dword [ebx], 9
mov ecx, dword [ebp - 0x148]
test ecx, ecx
je 0x424a00
mov eax, dword [ebp - 0x94]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
je 0x424a12
mov eax, dword [ebp - 0x90]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042dc3d
leave
ret