Function at 0x46ba80
Capabilities:
Check os version

Disassembly:
sub esp, 0x240
mov eax, dword [0x58f080]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push edi
push str.RtlGetVersion
push str.ntdll.dll
mov esi, ecx
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov edi, eax
lea eax, [esp + 0x14]
push 0x11c
push eax
call fcn.00479960
add esp, 8
mov dword [esp + 0x14], 0x11c
test edi, edi
je 0x46bcf3
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x46bcf3
mov eax, dword [esp + 0x24]
sub eax, 0
je 0x46bcd8
dec eax
je 0x46bc68
dec eax
je 0x46bb19
push str.OS_Unknown...
lea eax, [esi + 0x14]
mov dword [esi], 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46bcde
mov eax, dword [esp + 0x18]
add eax, 0xfffffffd
cmp eax, 7
ja case.default.0x46bb57
jmp dword [eax*4 + 0x46be04]
push str.Windows_10
lea eax, [esi + 0x14]
mov dword [esi], 0x64
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46bcde
mov eax, dword [esp + 0x1c]
cmp eax, 3
ja case.default.0x46bb57
jmp dword [eax*4 + 0x46be24]
push str.Windows_Vista
lea eax, [esi + 0x14]
mov dword [esi], 0x60
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46bcde
push str.Windows_7
lea eax, [esi + 0x14]
mov dword [esi], 0x61
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46bcde
push str.Windows_8
lea eax, [esi + 0x14]
mov dword [esi], 0x62
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46bcde
push str.Windows_8.1
lea eax, [esi + 0x14]
mov dword [esi], 0x63
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46bcde
mov eax, dword [esp + 0x1c]
sub eax, 0
je 0x46bc03
dec eax
lea eax, [esi + 0x14]
je 0x46bbec
push str.Windows_NT
push eax
mov dword [esi], 0x10
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46bcde
push str.Windows_XP
push eax
mov dword [esi], 0x50
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46bcde
push str.Windows_2000
lea eax, [esi + 0x14]
mov dword [esi], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46bcde
push str.Windows_NT_4.x
lea eax, [esi + 0x14]
mov dword [esi], 0x30
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46bcde
push str.Windows_NT_3.x
lea eax, [esi + 0x14]
mov dword [esi], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46bcde
push str.Windows_NT
lea eax, [esi + 0x14]
mov dword [esi], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x46bcde
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46bca4
cmp eax, 0xa
je 0x46bc97
cmp eax, 0x5a
lea eax, [esi + 0x14]
je 0x46bc8a
mov dword [esi], 0xf
push str.Windows_9x
jmp 0x46bcb2
mov dword [esi], 4
push str.Windows_Me
jmp 0x46bcb2
mov dword [esi], 3
push str.Windows_98
jmp 0x46bcaf
mov dword [esi], 2
push str.Windows_95
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 0x20]
mov ecx, edx
shr ecx, 0x10
mov eax, ecx
shr eax, 8
movzx eax, al
mov dword [esi + 4], eax
movzx eax, cl
mov dword [esi + 8], eax
movzx eax, dx
jmp 0x46bcf0
mov dword [esi], 1
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0xc], eax
push str.Kernel32.dll
mov dword [esi + 0x10], 0x20
call ebp
test eax, eax
je 0x46bd3b
push str.IsWow64Process
push eax
mov dword [esp + 0x18], 0
call ebx
mov edi, eax
test edi, edi
je 0x46bd3b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x46bd3b
cmp dword [esp + 0x10], 0
je 0x46bd3b
mov dword [esi + 0x10], 0x40
mov eax, dword [esi + 0x10]
cmp eax, 0x20
je 0x46bd4f
cmp eax, 0x40
jne 0x46bd67
push str.__x64_
jmp 0x46bd54
push str.__x86_
call fcn.004667c0
add esp, 4
push eax
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x28]
push eax
lea eax, [esi + 0x114]
push eax
call fcn.0047a490
add esp, 8
push str.Kernel32.dll
call ebp
test eax, eax
je 0x46bdea
push str.GetProductInfo
push eax
call ebx
mov edi, eax
test edi, edi
je 0x46bdea
lea eax, [esp + 0x130]
mov dword [esp + 0x130], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [esp + 0x10]
push eax
movzx eax, word [esp + 0x24a]
push eax
movzx eax, word [esp + 0x24c]
push eax
push dword [esp + 0x144]
push dword [esp + 0x144]
call edi
test eax, eax
je 0x46bdea
lea eax, [esi + 0x218]
mov ecx, esi
push eax
push dword [esp + 0x14]
call fcn.0046ad70
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049493f
add esp, 0x240
ret