Function at 0x5bad2a6a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x36c
mov eax, dword [0x5bb70c3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x154], edi
call fcn.5bad29fd
test eax, eax
je 0x5bad2cf4
push ebx
push esi
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x174], edi
mov ebx, 0x5ba4442c
lea esi, [ebp - 0x364]
mov dword [ebp - 0x14c], 0xa
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x148], eax
mov eax, dword [ebx]
cmp eax, 0x30
jne 0x5bad2b07
call fcn.5ba94a1d
test eax, eax
je 0x5bad2c54
cmp dword [ebp + 0xc], 2
jne 0x5bad2bf5
mov eax, dword [ebp - 0x174]
mov dword [ebp + 0x10], eax
jmp 0x5bad2bf5
cmp eax, 0x98
jne 0x5bad2b24
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x5bad2c54
mov dword [ebp - 0x148], eax
jmp 0x5bad2bf5
cmp eax, 0x32
jne 0x5bad2b90
push 0x26
pop ecx
xor eax, eax
lea edi, [ebp - 0x138]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 0x13c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5bad2bf3
cmp dword [ebp - 0x12c], 2
jne 0x5bad2bf3
cmp dword [ebp - 0x138], 5
jne 0x5bad2bf3
cmp dword [ebp - 0x134], 1
jne 0x5bad2bf3
cmp word [ebp - 0x130], 0xa28
jne 0x5bad2bf3
call fcn.5bad01e4
mov dword [ebp - 0x144], eax
jmp 0x5bad2bf3
cmp eax, 0x35
je 0x5bad2b9a
cmp eax, 0x2f
jne 0x5bad2bf5
push 0x26
pop ecx
xor eax, eax
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5bad2bf3
cmp dword [ebp - 0x90], 2
jne 0x5bad2bf3
cmp dword [ebp - 0x9c], 5
jne 0x5bad2bf3
cmp dword [ebp - 0x98], 1
jne 0x5bad2bf3
cmp word [ebp - 0x94], 0xa28
jne 0x5bad2bf3
call fcn.5babcc7f
mov dword [ebp - 0x154], eax
xor edi, edi
mov eax, dword [ebx]
cmp eax, 0x32
push 0x30
pop edx
mov dword [esi - 8], edx
mov dword [esi - 4], edi
jne 0x5bad2c13
mov ecx, dword [ebp - 0x144]
cmp ecx, edi
je 0x5bad2c13
mov dword [esi], ecx
jmp 0x5bad2c2e
cmp eax, 0x35
je 0x5bad2c1d
cmp eax, 0x2f
jne 0x5bad2c27
mov eax, dword [ebp - 0x154]
cmp eax, edi
jne 0x5bad2c2c
mov eax, dword [0x5bb73708]
mov dword [esi], eax
movzx eax, word [ebx]
inc dword [ebp - 0x174]
mov dword [esi + 4], eax
mov eax, dword [ebx - 4]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x148]
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
add esi, edx
add ebx, 8
dec dword [ebp - 0x14c]
jne 0x5bad2acf
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x174]
pop esi
pop ebx
jbe 0x5bad2c73
mov dword [ebp + 0x10], edi
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x184], eax
mov eax, dword [0x5bb73708]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x36c]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x18c]
push eax
mov dword [ebp - 0x18c], 0x34
mov dword [ebp - 0x188], 0x20000c
mov dword [ebp - 0x178], 0x11c6
mov dword [ebp - 0x17c], 2
call dword [0x5ba56050]
cmp eax, 0xffffffff
je 0x5bad2ce3
mov dword [ebp - 0x140], 1
push dword [ebp - 0x150]
call fcn.5bad035a
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 4]
pop edi
call fcn.5bb3f314
leave
ret 0x10