Function at 0x1008adc
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 [0x1012d80]
push ebx
xor ebx, ebx
push esi
push ebx
push 0xbb8
push ebx
push 2
mov ecx, 0x1013710
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.010089e5
test eax, eax
je 0x1008d85
push 0xc101d
push 0x1001de0
lea eax, [ebp - 0x464]
push 0x104
push eax
call fcn.01005a9e
add esp, 0x10
test eax, eax
jl 0x1008d85
lea eax, [ebp - 0x588]
push eax
mov dword [ebp - 0x594], 0x28
mov dword [ebp - 0x588], 3
call fcn.01004365
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 0x1008d85
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 0x1008d85
push 0x1001740
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x598], eax
je 0x1008d85
push 0x1001dd0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1008d79
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 0x1001dbc
push edi
push eax
call fcn.01005a9e
add esp, 0x18
test eax, eax
jl 0x1008d78
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1008d71
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 0x1008d78
cmp dword [ebp - 0x57c], 5
jne 0x1008d78
cmp dword [ebp - 0x578], 1
jne 0x1008d78
cmp word [ebp - 0x46c], 2
jne 0x1008d78
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1001da8
lea eax, [ebp - 0x54]
push eax
call edi
test eax, eax
jne 0x1008d78
push 0x1001d94
lea eax, [ebp - 0x2c]
push eax
call edi
test eax, eax
jne 0x1008d78
push 0xc1025
push 0x1001d20
lea eax, [ebp - 0x25c]
push 0x104
push eax
call fcn.01005a9e
add esp, 0x10
test eax, eax
jl 0x1008d78
lea eax, [ebp - 0x588]
push eax
mov dword [ebp - 0x588], 3
call fcn.01004365
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 0x1008d78
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 0x1001d18
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 0x1008d78
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 0x1008d78
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 0x1008d9b
push dword [ebp - 0x58c]
call esi
cmp dword [ebp - 0x590], ebx
je 0x1008dab
push dword [ebp - 0x590]
call esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x581]
pop esi
pop ebx
call fcn.0100f1d6
leave
ret