Function at 0x1000cc50
Capabilities:
Check os version
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10012046
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x1001a018]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push esi
push edi
mov eax, dword [0x1001a018]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
push 0x9c
lea eax, [esp + 0x78]
push esi
push eax
mov dword [esp + 0x2d4], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 0x74]
push ecx
mov dword [esp + 0x78], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea edx, [esp + 0x14]
push edx
push 0x64
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
lea ebx, [esi + 3]
test eax, eax
jne 0x1000cd04
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
push eax
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edi
jmp 0x1000cd65
cmp dword [esp + 0x78], 6
jne 0x1000cd65
cmp dword [esp + 0x7c], 2
jne 0x1000cd65
push 1
push 1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0x11c
mov esi, eax
lea eax, [esp + 0x118]
push 0
push eax
mov edi, edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
push esi
push 1
lea ecx, [esp + 0x120]
push ecx
mov dword [esp + 0x124], 0x11c
mov dword [esp + 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1000cd65
mov dword [esp + 0x7c], ebx
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000cd85
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea edx, [esp + 0x18]
push edx
call eax
mov edi, 0xa
cmp dword [esp + 0x78], edi
jne 0x1000ce02
cmp byte [esp + 0x10e], 1
je 0x1000cddc
lea esi, [edi + 7]
mov eax, str.Windows_10_Server
lea ecx, [esp + 0x3c]
call fcn.1000fae0
mov ecx, dword [0x1001ee5c]
mov ecx, dword [ecx + 0x1cc]
mov eax, 0x1000aca0
call fcn.10001f40
cmp dword [esp + 0x78], edi
jne 0x1000ce02
cmp byte [esp + 0x10e], 1
jne 0x1000d06a
mov esi, edi
mov eax, str.Windows_10
lea ecx, [esp + 0x3c]
call fcn.1000fae0
mov edx, dword [0x1001ee5c]
mov ecx, dword [edx + 0x1cc]
mov eax, 0x1000aca0
call fcn.10001f40
cmp dword [esp + 0x78], 6
jne 0x1000d03c
cmp dword [esp + 0x7c], ebx
jne 0x1000ce9d
cmp byte [esp + 0x10e], 1
je 0x1000ce69
mov esi, 0x16
mov eax, str.Windows_Server_2012_R2
lea ecx, [esp + 0x3c]
call fcn.1000fae0
mov ecx, dword [0x1001ee5c]
mov ecx, dword [ecx + 0x1cc]
mov eax, 0x1000aca0
call fcn.10001f40
cmp dword [esp + 0x78], 6
jne 0x1000d03c
cmp dword [esp + 0x7c], ebx
jne 0x1000ce9d
cmp byte [esp + 0x10e], 1
jne 0x1000d06a
mov esi, 0xb
mov eax, str.Windows_8.1
lea ecx, [esp + 0x3c]
call fcn.1000fae0
mov edx, dword [0x1001ee5c]
mov ecx, dword [edx + 0x1cc]
mov eax, 0x1000aca0
call fcn.10001f40
cmp dword [esp + 0x78], 6
jne 0x1000d03c
cmp dword [esp + 0x7c], 2
jne 0x1000cf2f
cmp byte [esp + 0x10e], 1
je 0x1000cefb
mov esi, 0x13
mov eax, str.Windows_Server_2012
lea ecx, [esp + 0x3c]
call fcn.1000fae0
mov ecx, dword [0x1001ee5c]
mov ecx, dword [ecx + 0x1cc]
mov eax, 0x1000aca0
call fcn.10001f40
cmp dword [esp + 0x78], 6
jne 0x1000d03c
cmp dword [esp + 0x7c], 2
jne 0x1000cf2f
cmp byte [esp + 0x10e], 1
jne 0x1000d06a
mov esi, 9
mov eax, str.Windows_8
lea ecx, [esp + 0x3c]
call fcn.1000fae0
mov edx, dword [0x1001ee5c]
mov ecx, dword [edx + 0x1cc]
mov eax, 0x1000aca0
call fcn.10001f40
cmp dword [esp + 0x78], 6
jne 0x1000d03c
cmp dword [esp + 0x7c], 1
jne 0x1000cfbd
cmp byte [esp + 0x10e], 1
je 0x1000cf8d
mov esi, 0x16
mov eax, str.Windows_Server_2008_R2
lea ecx, [esp + 0x3c]
call fcn.1000fae0
mov ecx, dword [0x1001ee5c]
mov ecx, dword [ecx + 0x1cc]
mov eax, 0x1000ac50
call fcn.10001f40
cmp dword [esp + 0x78], 6
jne 0x1000d03c
cmp dword [esp + 0x7c], 1
jne 0x1000cfbd
cmp byte [esp + 0x10e], 1
jne 0x1000d06a
mov esi, 9
mov eax, str.Windows_7
lea ecx, [esp + 0x3c]
call fcn.1000fae0
mov edx, dword [0x1001ee5c]
mov ecx, dword [edx + 0x1cc]
mov eax, 0x1000ac50
call fcn.10001f40
cmp dword [esp + 0x78], 6
jne 0x1000d03c
cmp dword [esp + 0x7c], 0
jne 0x1000d06a
cmp byte [esp + 0x10e], 1
je 0x1000d013
mov esi, 0x13
mov eax, str.Windows_Server_2008
lea ecx, [esp + 0x3c]
call fcn.1000fae0
mov ecx, dword [0x1001ee5c]
mov ecx, dword [ecx + 0x1cc]
mov eax, 0x1000ac50
call fcn.10001f40
cmp dword [esp + 0x78], 6
jne 0x1000d03c
cmp dword [esp + 0x7c], 0
jne 0x1000d06a
cmp byte [esp + 0x10e], 1
jne 0x1000d06a
mov esi, 0xd
mov eax, str.Windows_Vista
lea ecx, [esp + 0x3c]
call fcn.1000fae0
mov edx, dword [0x1001ee5c]
mov ecx, dword [edx + 0x1cc]
mov eax, 0x1000ac50
call fcn.10001f40
cmp dword [esp + 0x78], 5
jae 0x1000d06a
mov esi, 7
mov eax, str.unknown
lea ecx, [esp + 0x3c]
call fcn.1000fae0
push 0
push 0x10014510
push str.Unknown
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp word [esp + 0x108], 0
mov ebx, 0x10
je 0x1000d137
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
push 0x7f
lea eax, [esp + 0x239]
push 0
mov byte [esp + 0x2d0], 1
push eax
mov byte [esp + 0x240], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea esi, [ebx - 2]
mov eax, str._Service_Pack
lea ecx, [esp + 0x58]
call fcn.1000fae0
movzx ecx, word [esp + 0x108]
push ecx
push 0x100169dc
lea edx, [esp + 0x23c]
push 0x80
push edx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
lea eax, [esp + 0x244]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d0f6
sub eax, edx
push eax
lea eax, [esp + 0x238]
lea ecx, [esp + 0x5c]
call fcn.1000f4b0
push 0
lea eax, [esp + 0x5c]
push eax
or eax, 0xffffffff
lea edi, [esp + 0x44]
call fcn.1000fa30
cmp dword [esp + 0x6c], ebx
jb 0x1000d137
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x50], ebx
jb 0x1000d14b
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.1001115f
mov esp, ebp
pop ebp
ret