Function at 0x1000db22
Capabilities:
Check os version
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
and byte [ebp - 0x35a], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
lea eax, [ebp - 0x444]
mov edi, 0x9c
push eax
mov byte [ebp - 0x448], 0x66
mov dword [ebp - 0x444], edi
call esi
lea eax, [ebp - 0x610]
push 0x100
push eax
push dword [ebp + 8]
call fcn.1000d983
push 0x10
lea eax, [ebp - 0x34]
pop ebx
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax + 0xa8]
call dword [0x10003edc]
lea eax, [ebp - 0x30]
push 4
push eax
lea eax, [ebp - 0x390]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x610]
push 0x32
push eax
lea eax, [ebp - 0x38c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
call fcn.1000d440
mov dword [ebp - 0x3a8], eax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x134], edi
call esi
cmp dword [ebp - 0x130], 5
mov esi, dword [fcn.10003e9c]
mov edi, 0x100023f8
jne 0x1000dc0b
cmp dword [ebp - 0x12c], 0
jne 0x1000dc0b
lea eax, [ebp - 0x3a4]
push 0x10001be0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1000dc2b
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0x84]
lea eax, [ebp - 0x3a4]
push edi
push eax
call esi
add esp, 0xc
call fcn.1000d4ed
mov byte [ebp - 0x35a], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ebx, 0x5265c00
cdq
mov ecx, ebx
idiv ecx
push eax
lea eax, [ebp - 0x4ac]
push edi
push eax
call esi
mov eax, dword [ebp - 4]
mov ecx, 0x36ee80
cdq
idiv ebx
mov eax, edx
cdq
idiv ecx
push eax
lea eax, [ebp - 0x510]
push edi
push eax
call esi
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x327]
push 0x10002804
push eax
call esi
lea eax, [ebp - 0x24]
push eax
call fcn.1000d4a0
add esp, 0x2c
test eax, eax
je 0x1000dcdc
xor edi, edi
push edi
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
call fcn.100151e0
push edi
push dword [ebp - 0x18]
push edx
push eax
call fcn.100151e0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push edx
push eax
call fcn.100151e0
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
fild qword [ebp - 8]
fmul dword [0x10003fdc]
call sub.MSVCRT.dll__ftol
mov dword [ebp - 0x1f8], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
push 0x14
pop ecx
call fcn.10015190
add eax, 1
adc edx, 0
push edx
push eax
lea eax, [ebp - 0x1f4]
push 0x100027fc
push eax
call esi
push 0xa
lea eax, [ebp - 0x1c2]
push dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_memcpy
call fcn.1000d522
push eax
lea eax, [ebp - 0x1b8]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x24
call fcn.1000da4a
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x154]
push 0x20
push eax
push dword [ebp + 8]
call fcn.1000daa7
mov ecx, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp - 0x448]
push 0x314
push eax
call fcn.10005b34
pop edi
pop esi
pop ebx
leave
ret