Function at 0x10076040
Capabilities:
Check os version
Extract resource via kernel32 functions
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b4feb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c8
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
cmp dword [eax + 0x14], 8
movlpd qword [ebp - 0x2d8], xmm0
mov dword [ebp - 0x2cc], 0
jb 0x100760a8
mov eax, dword [eax]
lea ecx, [ebp - 0x2cc]
push ecx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100760e2
xorps xmm0, xmm0
movlpd qword [ebp - 0x2d8], xmm0
mov esi, dword [ebp - 0x2d4]
mov edi, dword [ebp - 0x2d8]
jmp 0x10076425
cmp dword [ebx + 0x20], 8
lea ecx, [ebp - 0x84]
push ecx
push 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 3
push ecx
lea eax, [ebx + 0xc]
mov dword [ebp - 0x84], 0
cmovae eax, dword [ebx + 0xc]
push 0
push eax
push dword [ebp - 0x2cc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10076408
push 0x118
push eax
lea eax, [ebp - 0x1a4]
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x1a8]
add esp, 0xc
mov dword [ebp - 0x1a8], 0x11c
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10076249
cmp dword [ebp - 0x1a4], 6
ja 0x10076180
jne 0x10076201
cmp dword [ebp - 0x1a0], 2
jb 0x10076201
push str.kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x10076201
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10076201
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10076201
movups xmm0, xmmword [0x101e4238]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x101e4248]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10076201
lea eax, [ebp - 0x34]
push eax
lea eax, [esi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10076201
cmp word [esi + 2], ax
jbe 0x10076201
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x19c], eax
push 0x101e0f40
call edi
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10076243
push 0x118
lea eax, [ebp - 0x2c4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2c8], 0x11c
lea eax, [ebp - 0x2c8]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1a4], 6
jb 0x1007625b
cmp dword [ebp - 0x84], 0x48
jmp 0x10076262
cmp dword [ebp - 0x84], 0x10
jne 0x10076408
push 0x48
lea eax, [ebp - 0x80]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x84]
cmp dword [ebx + 0x20], 8
lea eax, [ebx + 0xc]
cmovae eax, dword [ebx + 0xc]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push 0
push eax
push dword [ebp - 0x2cc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10076408
push 0x118
push eax
lea eax, [ebp - 0x1a4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1a8], 0x11c
lea eax, [ebp - 0x1a8]
push eax
call esi
test eax, eax
je 0x100763bb
cmp dword [ebp - 0x1a4], 6
ja 0x100762f8
jne 0x10076379
cmp dword [ebp - 0x1a0], 2
jb 0x10076379
push str.kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x10076379
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10076379
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10076379
movups xmm0, xmmword [0x101e4238]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x101e4248]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10076379
lea eax, [ebp - 0x34]
push eax
lea eax, [esi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10076379
cmp word [esi + 2], ax
jbe 0x10076379
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x19c], eax
push 0x101e0f40
call edi
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100763bb
push 0x118
lea eax, [ebp - 0x2c4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2c8], 0x11c
lea eax, [ebp - 0x2c8]
push eax
call esi
cmp dword [ebp - 0x1a4], 6
jb 0x100763cc
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
jmp 0x100763d2
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
cmp ecx, 2
jl 0x100763fd
jg 0x100763e0
cmp eax, 0xb6109100
jb 0x100763fd
push 0
push 0x989680
push ecx
push eax
call fcn.101a0f40
mov edi, eax
mov esi, edx
sub edi, 0xb6109100
sbb esi, 2
jmp 0x10076414
xorps xmm0, xmm0
movlpd qword [ebp - 0x2d8], xmm0
mov edi, dword [ebp - 0x2d8]
mov esi, dword [ebp - 0x2d4]
mov eax, dword [ebp - 0x2cc]
test eax, eax
je 0x10076425
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.10004f10
mov eax, edi
mov edx, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c