Function at 0x402c70
Capabilities:
Check os version
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x419a3b
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x41f74c]
xor eax, esp
mov dword [esp + 0x2dc], eax
push ebx
push edi
mov eax, dword [0x41f74c]
xor eax, esp
push eax
lea eax, [esp + 0x2ec]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x17
push str.unknown_OperatingSystem
mov ecx, esi
mov dword [esp + 0x54], 0x9c
call fcn.004019e0
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
test eax, eax
je case.default.0x402d0e
mov eax, dword [esp + 0x50]
sub eax, 4
je 0x402def
mov ecx, 1
sub eax, ecx
je 0x402d91
sub eax, ecx
jne case.default.0x402d0e
mov eax, dword [esp + 0x54]
cmp eax, 3
ja case.default.0x402d0e
jmp dword [eax*4 + 0x402f4c]
cmp byte [esp + 0xe6], cl
mov ecx, esi
jne 0x402d2a
push str.Microsoft_Windows_Vista
jmp 0x402e2b
push str.Microsoft_Windows_Server_2008
jmp 0x402e2b
cmp byte [esp + 0xe6], cl
mov ecx, esi
jne 0x402d49
push str.Microsoft_Windows_7
jmp 0x402e2b
push str.Microsoft_Windows_Server_2008_R2
jmp 0x402e2b
cmp byte [esp + 0xe6], cl
mov ecx, esi
jne 0x402d68
push str.Microsoft_Windows_8
jmp 0x402e2b
push str.Microsoft_Windows_Server_2012
jmp 0x402e2b
cmp byte [esp + 0xe6], cl
mov ecx, esi
jne 0x402d87
push str.Microsoft_Windows_8.1
jmp 0x402e2b
push str.Microsoft_Windows_Server_2012_R2
jmp 0x402e2b
mov eax, dword [esp + 0x54]
sub eax, ebx
je 0x402de8
sub eax, ecx
je 0x402de1
sub eax, ecx
jne case.default.0x402d0e
cmp byte [esp + 0xe6], cl
jne 0x402dbd
cmp word [esp + 0x28], 9
jne 0x402dbd
push str.Microsoft_Windows_XP_Professional_x64_Edition
jmp 0x402e29
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x402dd2
push str.Microsoft_Windows_Server_2003
jmp 0x402e29
push 0x59
call edi
test eax, eax
je case.default.0x402d0e
push str.Microsoft_Windows_Server_2003_R2
jmp 0x402e29
push str.Microsoft_Windows_XP
jmp 0x402e29
push str.Microsoft_Windows_2000
jmp 0x402e29
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x402e0f
cmp eax, 0xa
je 0x402e08
cmp eax, 0x5a
jne case.default.0x402d0e
push str.Microsoft_Windows_Me
jmp 0x402e29
push str.Microsoft_Windows_98
jmp 0x402e29
mov eax, dword [esp + 0x5c]
cmp eax, 2
jne 0x402e1f
push str.Microsoft_Windows_NT_4.0
jmp 0x402e29
cmp eax, 1
jne case.default.0x402d0e
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.00401940
push 0xff
lea edx, [esp + 0xed]
push ebx
push edx
mov byte [esp + 0xf4], bl
call fcn.00406530
push 0xff
lea eax, [esp + 0x1f9]
push ebx
push eax
mov byte [esp + 0x200], bl
call fcn.00406530
mov edi, 0x10
add esp, 0x18
cmp dword [esi + 0x18], edi
jb 0x402e76
mov eax, dword [esi + 4]
jmp 0x402e79
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0xec]
push 0x41cbac
push ecx
call fcn.004055af
lea eax, [esp + 0xf4]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402ea0
sub eax, edx
push eax
lea eax, [esp + 0x1ec]
lea ecx, [esp + 0xec]
call section..text
lea eax, [esp + 0x1ec]
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402ee0
sub eax, edx
push eax
lea edx, [esp + 0x1ec]
push edx
lea ecx, [esp + 0x14]
call fcn.004019e0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov dword [esp + 0x300], ebx
call fcn.00401860
cmp dword [esp + 0x24], edi
jb 0x402f24
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00405855
add esp, 4
mov ecx, dword [esp + 0x2ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x2dc]
xor ecx, esp
call fcn.004053b4
add esp, 0x2ec
ret