Function at 0x1008b3a
Capabilities:
Check os version
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5b0
mov eax, dword [0x1012d50]
push ebx
xor ebx, ebx
push esi
push ebx
push 0xbb8
push ebx
push 2
mov ecx, 0x10136e0
mov dword [ebp - 4], eax
mov byte [ebp - 0x581], bl
mov dword [ebp - 0x594], ebx
mov dword [ebp - 0x59c], ebx
mov dword [ebp - 0x58c], ebx
mov dword [ebp - 0x590], ebx
call fcn.01008a43
test eax, eax
je 0x1008de3
push 0xc101d
push 0x1001e00
lea eax, [ebp - 0x464]
push 0x104
push eax
call fcn.01005ad6
add esp, 0x10
test eax, eax
jl 0x1008de3
lea eax, [ebp - 0x588]
push eax
mov dword [ebp - 0x594], 0x28
mov dword [ebp - 0x588], 3
call fcn.0100439d
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ecx
lea eax, [ebp - 0x58c]
push eax
push dword [ebp - 0x588]
lea eax, [ebp - 0x464]
push ebx
push eax
push 0x80000000
call esi
test eax, eax
jne 0x1008de3
lea eax, [ebp - 0x594]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x59c]
push eax
push ebx
push ebx
push dword [ebp - 0x58c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov word [ebp - 0x2e], bx
jne 0x1008de3
push 0x1001760
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x598], eax
je 0x1008de3
push 0x1001df0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1008dd7
push edi
push 0x14
pop edi
lea ecx, [ebp - 0x5b0]
push ecx
mov dword [ebp - 0x5b0], edi
call eax
push dword [ebp - 0x5a4]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x5a8]
push dword [ebp - 0x5ac]
push 0x1001ddc
push edi
push eax
call fcn.01005ad6
add esp, 0x18
test eax, eax
jl 0x1008dd6
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1008dcf
push 0x47
pop ecx
xor eax, eax
lea edi, [ebp - 0x580]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x580]
push eax
mov dword [ebp - 0x580], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1008dd6
cmp dword [ebp - 0x57c], 5
jne 0x1008dd6
cmp dword [ebp - 0x578], 1
jne 0x1008dd6
cmp word [ebp - 0x46c], 2
jne 0x1008dd6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1001dc8
lea eax, [ebp - 0x54]
push eax
call edi
test eax, eax
jne 0x1008dd6
push 0x1001db4
lea eax, [ebp - 0x2c]
push eax
call edi
test eax, eax
jne 0x1008dd6
push 0xc1025
push 0x1001d40
lea eax, [ebp - 0x25c]
push 0x104
push eax
call fcn.01005ad6
add esp, 0x10
test eax, eax
jl 0x1008dd6
lea eax, [ebp - 0x588]
push eax
mov dword [ebp - 0x588], 3
call fcn.0100439d
pop ecx
lea eax, [ebp - 0x590]
push eax
push dword [ebp - 0x588]
lea eax, [ebp - 0x25c]
push ebx
push eax
push 0x80000000
call esi
test eax, eax
jne 0x1008dd6
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 0x1001d38
push esi
call edi
lea eax, [eax + eax + 2]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push ebx
push ebx
push dword [ebp - 0x590]
call esi
test eax, eax
jne 0x1008dd6
lea eax, [ebp - 0x2c]
push eax
call edi
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x58c]
call esi
test eax, eax
jne 0x1008dd6
mov byte [ebp - 0x581], 1
pop edi
push dword [ebp - 0x598]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x58c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1008df9
push dword [ebp - 0x58c]
call esi
cmp dword [ebp - 0x590], ebx
je 0x1008e09
push dword [ebp - 0x590]
call esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x581]
pop esi
pop ebx
call fcn.0100f222
leave
ret