Function at 0x10050110
Capabilities:
Check os version

Disassembly:
sub esp, 0xb4
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xbc]
push ebp
mov ebp, dword [esp + 0xd0]
push esi
mov esi, dword [esp + 0xc0]
push edi
mov edi, dword [esp + 0xe0]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xcc]
push 0x90
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
call fcn.10116880
add esp, 0xc
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, 2
sete cl
mov dword [esi], ecx
test edi, edi
je 0x100501d8
mov dword [edi], 0
cmp eax, 2
jne 0x100501d8
cmp edx, 6
jne 0x100501d0
cmp dword [esp + 0x30], eax
jae 0x100501d2
jmp 0x100501d8
jbe 0x100501d8
mov dword [edi], 1
test ebp, ebp
je 0x100501fb
mov dword [ebp], 0
cmp eax, 2
jne 0x100501fb
cmp edx, 6
jne 0x100501fb
cmp dword [esp + 0x30], 1
jne 0x100501fb
mov dword [ebp], 1
test ebx, ebx
je 0x1005021c
mov dword [ebx], 0
cmp eax, 2
jne 0x1005021c
cmp edx, 6
jne 0x1005021c
cmp dword [esp + 0x30], 0
jne 0x1005021c
mov dword [ebx], 1
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1005026b
mov dword [esi], 0
cmp eax, 2
jne 0x1005026b
cmp edx, 6
jne 0x1005026b
call fcn.1004c7c0
cmp eax, 2
jle 0x10050263
mov dword [esi], 1
test ebx, ebx
je 0x1005024e
mov dword [ebx], 0
test ebp, ebp
je 0x10050259
mov dword [ebp], 0
test edi, edi
je 0x10050263
mov dword [edi], 0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x100502a1
mov dword [esi], 0
cmp eax, 2
jne 0x100502a1
cmp edx, 5
jne 0x100502a1
cmp dword [esp + 0x30], eax
jne 0x100502a1
call fcn.1004c7c0
mov edx, dword [esp + 0x2c]
cmp eax, 2
mov eax, dword [esp + 0x38]
jle 0x100502a1
mov dword [esi], 1
mov esi, dword [esp + 0x24]
test esi, esi
je 0x100502de
mov dword [esi], 0
cmp eax, 2
jne 0x100502de
cmp edx, 5
jne 0x100502de
mov ecx, dword [esp + 0x30]
cmp ecx, 1
je 0x100502d8
cmp ecx, eax
jne 0x100502de
call fcn.1004c7c0
mov edx, dword [esp + 0x2c]
cmp eax, 2
mov eax, dword [esp + 0x38]
jg 0x100502de
mov dword [esi], 1
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x10050306
mov dword [ecx], 0
cmp eax, 2
jne 0x10050306
cmp edx, 5
jne 0x10050306
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x1005030a
mov dword [ecx], 1
jmp 0x1005030a
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10050329
mov dword [ecx], 0
cmp eax, 1
jne 0x10050329
cmp edx, 4
jne 0x10050329
cmp esi, 0xa
jne 0x10050329
mov dword [ecx], eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10050348
mov dword [ecx], 0
cmp eax, 1
jne 0x10050348
cmp edx, 4
jne 0x10050348
cmp esi, 0x5a
jne 0x10050348
mov dword [ecx], eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10050366
mov dword [ecx], 0
cmp eax, 1
jne 0x10050366
cmp edx, 4
jne 0x10050366
test esi, esi
jne 0x10050366
mov dword [ecx], eax
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1010d699
add esp, 0xb4
ret