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

Disassembly:
sub esp, 0x1ec
mov eax, dword [0x62ece4]
xor eax, esp
mov dword [esp + 0x1e8], eax
xor eax, eax
push 0x11c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x34]
push eax
call fcn.0049af70
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x403a8b
xor al, al
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.00499aa8
add esp, 0x1ec
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push str.kernel32.dll
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403ab2
lea edx, [esp + 8]
push edx
call eax
jmp 0x403abd
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esi + 0x500], ecx
mov dword [esi + 0x504], eax
mov dword [esi + 0x508], edx
cmp ecx, 2
jne 0x403fd3
cmp eax, 4
jbe 0x403faf
push ebx
push str.Microsoft
push 0x200
push edi
call fcn.0049aef3
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, 6
jb 0x403ce7
mov dword [esi + 0x50c], 0xb
jne 0x403ce7
cmp dword [esp + 0x3c], 0
jne 0x403f21
mov ebx, 1
mov eax, edi
cmp byte [esp + 0x14e], bl
jne 0x403b51
mov byte [esi + 0x514], 0
mov dword [esi + 0x50c], 9
push str.Windows_Vista
jmp 0x403b66
mov byte [esi + 0x514], bl
mov dword [esi + 0x50c], 0xa
push str.Windows_Server_2008
call fcn.00403890
push str.GetProductInfo
push str.kernel32.dll
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
push 6
call eax
mov eax, dword [esp + 8]
dec eax
cmp eax, 0x18
ja case.0x403b9b.5
jmp dword [eax*4 + 0x404048]
push str.Ultimate_Edition
jmp 0x403ca9
push str.Home_Premium_Edition
mov eax, edi
call fcn.00403890
mov dword [esi + 0x510], ebx
jmp case.0x403b9b.5
push str.Home_Basic_Edition
mov eax, edi
call fcn.00403890
mov dword [esi + 0x510], ebx
jmp case.0x403b9b.5
push str.Enterprise_Edition
jmp 0x403ca9
push str.Business_Edition
jmp 0x403ca9
push str.Starter_Edition
jmp 0x403ca9
push str.Cluster_Server_Edition
mov eax, edi
call fcn.00403890
mov byte [esi + 0x514], bl
jmp case.0x403b9b.5
push str.Datacenter_Edition
mov eax, edi
call fcn.00403890
mov byte [esi + 0x514], bl
jmp case.0x403b9b.5
push str.Datacenter_Edition__core_installation_
mov eax, edi
call fcn.00403890
mov byte [esi + 0x514], bl
jmp case.0x403b9b.5
push str.Enterprise_Edition
mov eax, edi
call fcn.00403890
mov byte [esi + 0x514], bl
jmp case.0x403b9b.5
push str.Enterprise_Edition__core_installation_
mov eax, edi
call fcn.00403890
mov byte [esi + 0x514], bl
jmp case.0x403b9b.5
push str.Enterprise_Edition_for_Itanium_based_Systems
mov eax, edi
call fcn.00403890
mov byte [esi + 0x514], bl
mov byte [esi + 0x516], bl
mov byte [esi + 0x515], bl
jmp case.0x403b9b.5
push str.Small_Business_Server
jmp 0x403ca3
push str.Small_Business_Server_Premium_Edition
jmp 0x403ca3
push str.Standard_Edition
jmp 0x403ca3
push str.Standard_Edition__core_installation_
jmp 0x403ca3
push str.Web_Server_Edition
mov byte [esi + 0x514], bl
mov eax, edi
call fcn.00403890
mov eax, dword [esp + 0xc]
cmp ax, 9
jne 0x403cce
push str.__64_bit
mov eax, edi
mov byte [esi + 0x516], bl
call fcn.00403890
jmp 0x403cec
test ax, ax
jne 0x403cec
mov byte [esi + 0x516], al
push str.__32_bit
mov eax, edi
call fcn.00403890
jmp 0x403cec
mov ebx, 1
mov ebp, 5
cmp dword [esp + 0x38], ebp
jne 0x403f21
cmp dword [esp + 0x3c], 2
jne 0x403e53
push 0x59
mov byte [esi + 0x514], bl
mov dword [esi + 0x50c], 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x403d33
mov dword [esi + 0x50c], 8
push str.Windows_Server_2003_R2_
jmp 0x403d7d
mov edx, 0x2000
cmp word [esp + 0x14c], dx
jne 0x403d49
push str.Windows_Storage_Server_2003
jmp 0x403d7d
cmp byte [esp + 0x14e], bl
jne 0x403d78
cmp word [esp + 0xc], 9
jne 0x403d78
mov byte [esi + 0x514], 0
mov dword [esi + 0x50c], 6
mov byte [esi + 0x516], bl
push str.Windows_XP_Professional_x64_Edition
jmp 0x403d7d
push str.Windows_Server_2003_
mov eax, edi
call fcn.00403890
cmp byte [esp + 0x14e], bl
je 0x403e49
mov eax, dword [esp + 0xc]
cmp ax, 6
jne 0x403dcb
mov al, byte [esp + 0x14c]
mov byte [esi + 0x516], bl
mov byte [esi + 0x515], bl
test al, al
jns 0x403dbc
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x403e42
test al, 2
je 0x403e49
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x403e42
cmp ax, 9
jne 0x403dfd
mov al, byte [esp + 0x14c]
mov byte [esi + 0x516], bl
test al, al
jns 0x403de9
push str.Datacenter_x64_Edition
jmp 0x403e42
test al, 2
mov eax, edi
je 0x403df6
push str.Enterprise_x64_Edition
jmp 0x403e44
push str.Standard_x64_Edition
jmp 0x403e44
mov eax, dword [esp + 0x14c]
mov byte [esi + 0x516], 0
test eax, 0x4000
je 0x403e19
push str.Compute_Cluster_Edition
jmp 0x403e42
test al, al
jns 0x403e24
push str.Datacenter_Edition
jmp 0x403e42
test al, 2
je 0x403e2f
push str.Enterprise_Edition
jmp 0x403e42
test eax, 0x400
je 0x403e3d
push str.Web_Edition
jmp 0x403e42
push str.Standard_Edition
mov eax, edi
call fcn.00403890
cmp dword [esp + 0x38], ebp
jne 0x403f21
cmp dword [esp + 0x3c], ebx
jne 0x403eb1
push str.Windows_XP
mov eax, edi
mov byte [esi + 0x514], 0
mov dword [esi + 0x50c], 6
call fcn.00403890
test dword [esp + 0x14c], 0x200
mov eax, edi
je 0x403e97
push str.Home_Edition
call fcn.00403890
mov dword [esi + 0x510], ebx
jmp 0x403eab
push str.Professional
call fcn.00403890
mov dword [esi + 0x510], 2
cmp dword [esp + 0x38], ebp
jne 0x403f21
cmp dword [esp + 0x3c], 0
jne 0x403f21
push str.Windows_2000
mov eax, edi
mov byte [esi + 0x514], 0
mov dword [esi + 0x50c], ebp
call fcn.00403890
cmp byte [esp + 0x14e], bl
jne 0x403ef2
push str.Professional
mov eax, edi
call fcn.00403890
mov dword [esi + 0x510], 2
jmp 0x403f21
mov al, byte [esp + 0x14c]
mov byte [esi + 0x514], bl
test al, al
jns 0x403f0a
push str.Datacenter_Server
jmp 0x403f1a
test al, 2
je 0x403f15
push str.Advanced_Server
jmp 0x403f1a
push str.Server
mov eax, edi
call fcn.00403890
lea eax, [esp + 0x48]
lea edx, [eax + 2]
jmp 0x403f30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403f30
sub eax, edx
sar eax, 1
je 0x403f68
lea ecx, [esi + 0x400]
lea edx, [esp + 0x48]
call fcn.00403830
push 0x604820
mov eax, edi
call fcn.00403890
lea eax, [esp + 0x48]
push eax
mov eax, edi
call fcn.00403890
mov eax, dword [esp + 0x40]
push eax
push 0x604824
mov ecx, 0x50
lea ebx, [esp + 0x158]
mov dword [esi + 0x518], eax
call fcn.00403920
add esp, 8
mov ecx, ebx
push ecx
mov eax, edi
call fcn.00403890
pop ebx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.00499aa8
add esp, 0x1ec
ret
jne 0x404030
mov dword [esi + 0x50c], 4
xor al, al
pop ebp
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.00499aa8
add esp, 0x1ec
ret
cmp ecx, 1
jne 0x404030
test eax, eax
jne 0x403ffa
mov dword [esi + 0x50c], ecx
xor al, al
pop ebp
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.00499aa8
add esp, 0x1ec
ret
cmp eax, 0xa
jne 0x404021
mov dword [esi + 0x50c], 2
xor al, al
pop ebp
mov ecx, dword [esp + 0x1e8]
xor ecx, esp
call fcn.00499aa8
add esp, 0x1ec
ret
cmp eax, 0x5a
jne 0x404030
mov dword [esi + 0x50c], 3
mov ecx, dword [esp + 0x1ec]
pop ebp
xor ecx, esp
xor al, al
call fcn.00499aa8
add esp, 0x1ec
ret