Function at 0x40bde7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10f8
call fcn.0040ce40
push ebx
push esi
push edi
mov edi, 0x94
xor esi, esi
push edi
lea eax, [ebp - 0xb0]
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
call sub.MSVCRT.dll_memset
push dword [ebp + 0xc]
mov dword [ebp - 0xb0], edi
call sub.MSVCRT.dll_strlen
add esp, 0x10
test eax, eax
je 0x40c026
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x40c026
push dword [ebp + 0x14]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x40c026
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40bf9d
cmp dword [ebp + 8], esi
je 0x40bf9d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40bf9d
cmp dword [ebp - 0xac], 6
jb 0x40bf9d
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x10f6]
mov word [ebp - 0x10f8], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
call fcn.00407e73
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x10]
call fcn.00407e73
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x14]
call fcn.00407e73
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0x24
mov ebx, 0x40f418
lea eax, [ebp - 0x10f8]
push ebx
push eax
call esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10f8]
push eax
call esi
mov edi, 0x41013c
lea eax, [ebp - 0x10f8]
push edi
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x10f8]
push eax
call esi
lea eax, [ebp - 0x10f8]
push edi
push eax
call esi
push dword [ebp - 0xc]
lea eax, [ebp - 0x10f8]
push eax
call esi
lea eax, [ebp - 0x10f8]
push ebx
push eax
call esi
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x40bf49
push dword [ebp - 0x14]
call sub.MSVCRT.dll_free
pop ecx
cmp dword [ebp - 0x18], esi
je 0x40bf57
push dword [ebp - 0x18]
call sub.MSVCRT.dll_free
pop ecx
cmp dword [ebp - 0xc], esi
je 0x40bf65
push dword [ebp - 0xc]
call sub.MSVCRT.dll_free
pop ecx
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00407e73
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10f8]
push eax
push dword [ebp - 4]
call fcn.00409395
add esp, 0x18
test eax, eax
jne 0x40c002
cmp dword [ebp - 4], esi
je 0x40bf9b
push dword [ebp - 4]
call sub.MSVCRT.dll_free
pop ecx
xor esi, esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
call fcn.0040b0ed
mov edi, eax
push edi
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b1b1
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 8]
call fcn.0040b17c
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.0040b9c6
add esp, 0x30
cmp dword [ebp - 0x10], esi
mov edi, eax
je 0x40bfea
push dword [ebp - 0x10]
call sub.MSVCRT.dll_free
pop ecx
cmp dword [ebp - 8], esi
je 0x40bff8
push dword [ebp - 8]
call sub.MSVCRT.dll_free
pop ecx
cmp ebx, esi
jne 0x40c015
cmp edi, esi
jne 0x40c01d
jmp 0x40c026
cmp dword [ebp - 4], esi
je 0x40c010
push dword [ebp - 4]
call sub.MSVCRT.dll_free
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x40c028
cmp edi, esi
jne 0x40c021
push 1
jmp 0x40c023
push 2
jmp 0x40c023
push 3
pop eax
jmp 0x40c028
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret