Function at 0x100579b0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100830df
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x100d7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2b8], esi
mov ecx, 0x100df1ae
call fcn.10063385
push pe_nt_image_headers32
lea eax, [ebp - 0x188]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x18c], 0x11c
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10057b13
cmp dword [ebp - 0x188], 6
ja 0x10057a46
jne 0x10057acb
cmp dword [ebp - 0x184], 2
jb 0x10057acb
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x10057acb
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10057acb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10057acb
movups xmm0, xmmword [0x100a7824]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x100a7834]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10057acb
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10057acb
cmp word [esi + 2], ax
jbe 0x10057acb
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x188], edx
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x180], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call edi
mov esi, eax
test esi, esi
je 0x10057b0d
push pe_nt_image_headers32
lea eax, [ebp - 0x2a4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2a8], 0x11c
lea eax, [ebp - 0x2a8]
push eax
call esi
mov esi, dword [ebp - 0x2b8]
cmp dword [ebp - 0x188], 6
jae 0x10057b23
xor al, al
jmp 0x10057c74
test esi, esi
je 0x10057b1c
push 0x100a6c70
lea ecx, [ebp - 0x28]
call fcn.1000eb00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1005c790
mov ecx, eax
call fcn.1005c880
mov esi, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1000ed80
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10057b1c
movups xmm0, xmmword [str.ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov eax, dword [0x100a72d0]
mov dword [ebp - 0x38], eax
mov al, byte [0x100a72d4]
movups xmmword [ebp - 0x68], xmm0
mov byte [ebp - 0x34], al
lea eax, [ebp - 0x68]
movups xmm0, xmmword [0x100a72b0]
push eax
push esi
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x2b1], 0
movups xmm0, xmmword [0x100a72c0]
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x48], xmm0
call edi
mov dword [ebp - 0x2c0], eax
test eax, eax
je 0x10057b1c
push str.GetSecurityDescriptorSacl
push esi
call edi
mov dword [ebp - 0x2bc], eax
test eax, eax
je 0x10057b1c
push str.SetSecurityInfo
push esi
call edi
mov esi, eax
test esi, esi
je 0x10057b1c
push 0
lea eax, [ebp - 0x2ac]
push eax
push 1
push str.S:_ML__NW___LW_
call dword [ebp - 0x2c0]
test eax, eax
je 0x10057c6e
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x2ac]
call dword [ebp - 0x2bc]
test eax, eax
je 0x10057c62
push dword [ebp - 0x2b0]
push 0
push 0
push 0
push 0x10
push 6
push dword [ebp - 0x2b8]
call esi
test eax, eax
sete byte [ebp - 0x2b1]
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, byte [ebp - 0x2b1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006130e
mov esp, ebp
pop ebp
ret