Function at 0x4a0e50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov word [esp + 0x130], bx
mov ecx, 0x3f
lea edi, [esp + 0x132]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
mov word [esp + 0x330], bx
mov ecx, 0x3f
lea edi, [esp + 0x332]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x230], bx
mov ecx, 0x3f
lea edi, [esp + 0x232]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x11c
call esi
cmp eax, ebx
jne 0x4a0eed
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x114
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
dec eax
je 0x4a1259
dec eax
jne 0x4a0ee4
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, 5
cmp eax, edi
jne 0x4a0f4f
cmp dword [esp + 0x18], ebx
jne 0x4a0f23
push str.Microsoft_Windows_2000
lea edx, [esp + 0x134]
push edx
call esi
cmp dword [esp + 0x18], 1
jne 0x4a0f39
push str.Microsoft_Windows_XP
lea eax, [esp + 0x134]
push eax
call esi
cmp dword [esp + 0x18], 2
jne 0x4a0f4f
push str.Microsoft_Windows_Server_2003_family
lea ecx, [esp + 0x134]
push ecx
call esi
cmp dword [esp + 0x14], 4
jae 0x4a0f65
push str.Windows_NT
lea edx, [esp + 0x134]
push edx
call esi
cmp byte [esp + 0x12a], 1
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
jne 0x4a0fb5
cmp dword [esp + 0x14], 4
jne 0x4a0f8b
push str._Workstation_4.0
lea eax, [esp + 0x134]
push eax
jmp 0x4a0fb3
mov eax, dword [esp + 0x128]
test ah, 2
je 0x4a0fa6
push str._Home_Edition
lea ecx, [esp + 0x134]
push ecx
jmp 0x4a0fb3
push str._Professional
lea edx, [esp + 0x134]
push edx
call esi
cmp byte [esp + 0x12a], 3
jne 0x4a107f
cmp dword [esp + 0x14], edi
jne 0x4a1057
cmp dword [esp + 0x18], 2
jne 0x4a101d
mov eax, dword [esp + 0x128]
test al, al
jns 0x4a0fe6
push str._Datacenter_Edition
jmp 0x4a1013
test al, 2
je 0x4a0ff9
push str._Enterprise_Edition
lea ecx, [esp + 0x134]
push ecx
jmp 0x4a101b
cmp ax, 0x400
jne 0x4a100e
push str._Web_Edition
lea edx, [esp + 0x134]
push edx
jmp 0x4a101b
push str._Standard_Edition
lea eax, [esp + 0x134]
push eax
call esi
cmp dword [esp + 0x18], ebx
jne 0x4a107f
mov al, byte [esp + 0x128]
test al, al
jns 0x4a103d
push str._Datacenter_Server
lea ecx, [esp + 0x134]
push ecx
jmp 0x4a107d
test al, 2
je 0x4a1048
push str._Advance_Server
jmp 0x4a1075
push str._Server
lea eax, [esp + 0x134]
push eax
jmp 0x4a107d
test byte [esp + 0x128], 2
je 0x4a1070
push str._Server_4.0__Enterprise_Edition
lea ecx, [esp + 0x134]
push ecx
jmp 0x4a107d
push str._Server_4.0
lea edx, [esp + 0x134]
push edx
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCR71.dll_swprintf]
push eax
push ecx
push edx
lea eax, [esp + 0x33c]
push str._d._d._d
push eax
call esi
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, 4
jne 0x4a1134
push str.Service_Pack_6
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a1134
lea edx, [esp + 0xc]
push edx
push 1
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.BugReportU.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
lea ecx, [esp + 0x230]
jne 0x4a110c
mov eax, dword [esp + 0x1c]
and eax, 0xffff
push eax
push str.Service_Pack_6a__Build__d_
push ecx
call esi
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a1155
mov edx, dword [esp + 0x1c]
and edx, 0xffff
push edx
lea eax, [esp + 0x28]
push eax
push str._s__Build__d_
push ecx
call esi
mov edx, dword [esp + 0x1c]
add esp, 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a1155
mov eax, dword [esp + 0x1c]
and eax, 0xffff
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x238]
push str._s__Build__d__n
push edx
call esi
add esp, 0x10
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
lea ecx, [ebx + ebx]
mov edx, ecx
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
add ecx, ecx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
add ecx, ecx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test esi, esi
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x4a11dd
lea eax, [esp + 0x130]
push eax
call edi
cmp ebx, eax
jle 0x4a11c4
lea ecx, [esp + 0x130]
push ecx
call edi
jmp 0x4a11c6
mov eax, ebx
push eax
lea edx, [esp + 0x134]
push edx
push esi
mov esi, dword [sym.imp.MSVCR71.dll_wcsncpy]
call esi
add esp, 0xc
jmp 0x4a11e3
mov esi, dword [sym.imp.MSVCR71.dll_wcsncpy]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4a1218
lea eax, [esp + 0x330]
push eax
call edi
mov ecx, dword [ebp + 0x14]
cmp ecx, eax
jle 0x4a1207
lea ecx, [esp + 0x330]
push ecx
call edi
jmp 0x4a1209
mov eax, ecx
push eax
lea edx, [esp + 0x334]
push edx
push ebx
call esi
add esp, 0xc
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x4a124d
lea eax, [esp + 0x230]
push eax
call edi
mov ecx, dword [ebp + 0x1c]
cmp ecx, eax
jle 0x4a123c
lea ecx, [esp + 0x230]
push ecx
call edi
jmp 0x4a123e
mov eax, ecx
push eax
lea edx, [esp + 0x234]
push edx
push ebx
call esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x14], 4
jne 0x4a12de
cmp dword [esp + 0x18], ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
jne 0x4a129b
push 0x516430
lea eax, [esp + 0x134]
push eax
call esi
mov ax, word [esp + 0x26]
cmp ax, 0x43
je 0x4a128c
cmp ax, 0x42
jne 0x4a129b
push str.OSR2
lea ecx, [esp + 0x234]
push ecx
call esi
cmp dword [esp + 0x18], 0xa
jne 0x4a12c8
push str.Microsoft_Window_98
lea edx, [esp + 0x134]
push edx
call esi
cmp word [esp + 0x26], 0x41
jne 0x4a12c8
push 0x5163f4
lea eax, [esp + 0x234]
push eax
call esi
cmp dword [esp + 0x18], 0x5a
jne 0x4a12de
push str.Microsoft_Windows_Millennium_Edition
lea ecx, [esp + 0x134]
push ecx
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0x33c]
push str._d._d._d
push edx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret