Function at 0x10098dd
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 [0x1014d9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push ebx
push 0xbb8
push ebx
push 2
mov ecx, 0x1015a30
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.010097d5
test eax, eax
je 0x1009b91
push 0xc101d
push 0x1001e88
lea eax, [ebp - 0x464]
push 0x104
push eax
call fcn.01006339
add esp, 0x10
test eax, eax
jl 0x1009b91
lea eax, [ebp - 0x588]
push edi
push eax
mov dword [ebp - 0x594], 0x28
mov dword [ebp - 0x588], 3
call fcn.01004818
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
mov edi, 0x80000000
push edi
call esi
test eax, eax
jne 0x1009b90
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 0x1009b90
push 0x10017b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x598], eax
je 0x1009b90
push 0x1001e78
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1009b84
lea ecx, [ebp - 0x5b0]
push ecx
mov dword [ebp - 0x5b0], 0x14
call eax
push dword [ebp - 0x5a4]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x5a8]
push dword [ebp - 0x5ac]
push 0x1001e64
push 0x14
push eax
call fcn.01006339
add esp, 0x18
test eax, eax
jl 0x1009b84
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1009b7d
push 0x11c
lea eax, [ebp - 0x580]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x580]
push eax
mov dword [ebp - 0x580], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1009b84
cmp dword [ebp - 0x57c], 5
jne 0x1009b84
cmp dword [ebp - 0x578], 1
jne 0x1009b84
cmp word [ebp - 0x46c], 2
jne 0x1009b84
push 0x1001e50
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1009b84
push 0x1001e3c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1009b84
push 0xc1025
push 0x1001dc8
lea eax, [ebp - 0x25c]
push 0x104
push eax
call fcn.01006339
add esp, 0x10
test eax, eax
jl 0x1009b84
lea eax, [ebp - 0x588]
push eax
mov dword [ebp - 0x588], 3
call fcn.01004818
pop ecx
lea eax, [ebp - 0x590]
push eax
push dword [ebp - 0x588]
lea eax, [ebp - 0x25c]
push ebx
push eax
push edi
call esi
test eax, eax
jne 0x1009b84
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 0x1001dc0
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 0x1009b84
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 0x1009b84
mov byte [ebp - 0x581], 1
push dword [ebp - 0x598]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
cmp dword [ebp - 0x58c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1009ba7
push dword [ebp - 0x58c]
call esi
cmp dword [ebp - 0x590], ebx
je 0x1009bb7
push dword [ebp - 0x590]
call esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x581]
pop esi
xor ecx, ebp
pop ebx
call fcn.010108f5
leave
ret