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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x10194180]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xd4], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [esi + 0xc], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea eax, [esp + 0x30]
mov ebx, 1
push eax
mov dword [esi], ebx
mov dword [esp + 0x34], 0x9c
call edi
test eax, eax
jne 0x1001de6a
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x94
call edi
test eax, eax
je 0x1001e065
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
push str.GetNativeSystemInfo
mov dword [esp + 0x2c], edx
push str.kernel32.dll
mov dword [esp + 0x34], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001deb4
lea ecx, [esp + 0xc]
push ecx
call eax
jmp 0x1001debf
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x40]
dec eax
je 0x1001e05b
dec eax
jne 0x1001e05e
mov eax, dword [esp + 0x34]
cmp eax, 6
jne 0x1001df55
mov eax, dword [esp + 0x38]
cmp eax, 2
mov edi, 9
jne 0x1001defe
mov dl, byte [esp + 0xca]
xor eax, eax
cmp dl, bl
setne al
add eax, 0xb
mov dword [esi + 4], eax
jmp 0x1001df2f
cmp eax, ebx
jne 0x1001df17
mov dl, byte [esp + 0xca]
xor ecx, ecx
cmp dl, bl
setne cl
add ecx, edi
mov dword [esi + 4], ecx
jmp 0x1001df2f
test eax, eax
jne 0x1001df2f
mov cl, byte [esp + 0xca]
xor edx, edx
cmp cl, bl
setne dl
add edx, 7
mov dword [esi + 4], edx
mov eax, dword [esp + 0xc]
cmp ax, di
jne 0x1001df40
mov dword [esi + 0xc], ebx
jmp 0x1001dff0
test ax, ax
jne 0x1001dff0
mov dword [esi + 0xc], 0
jmp 0x1001dff0
cmp eax, 5
jne 0x1001dfce
cmp dword [esp + 0x38], 2
jne 0x1001dfbf
cmp byte [esp + 0xca], bl
mov edi, 9
jne 0x1001df80
cmp word [esp + 0xc], di
jne 0x1001df80
mov dword [esi + 4], 4
mov dword [esi + 0xc], ebx
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1001dfa2
xor eax, eax
cmp word [esp + 0xc], di
mov dword [esi + 4], 6
sete al
mov dword [esi + 0xc], eax
jmp 0x1001dfb6
xor ecx, ecx
cmp word [esp + 0xc], di
mov dword [esi + 4], 5
sete cl
mov dword [esi + 0xc], ecx
mov eax, dword [esp + 0x34]
cmp eax, 5
jne 0x1001dfce
cmp dword [esp + 0x38], ebx
jne 0x1001dfe1
mov dword [esi + 4], 4
jmp 0x1001dff0
cmp eax, 4
ja 0x1001dfdc
mov dword [esi + 4], 2
jmp 0x1001dff0
cmp eax, 5
jne 0x1001dff0
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x1001dff0
mov dword [esi + 4], 3
mov ax, word [esp + 0xc4]
test ax, ax
jne 0x1001e006
mov dword [esi + 8], 0
jmp 0x1001e05e
cmp ax, bx
jne 0x1001e010
mov dword [esi + 8], ebx
jmp 0x1001e05e
cmp ax, 2
jne 0x1001e01f
mov dword [esi + 8], 2
jmp 0x1001e05e
cmp ax, 3
jne 0x1001e02e
mov dword [esi + 8], 3
jmp 0x1001e05e
cmp ax, 4
jne 0x1001e03d
mov dword [esi + 8], 4
jmp 0x1001e05e
cmp ax, 5
jne 0x1001e04c
mov dword [esi + 8], 5
jmp 0x1001e05e
cmp ax, 6
jne 0x1001e05e
mov dword [esi + 8], 6
jmp 0x1001e05e
mov dword [esi + 4], ebx
mov ecx, esi
call fcn.1001dba0
mov ecx, dword [esp + 0xd4]
mov eax, esi
call fcn.100571c6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret