Function at 0x100eb40
Capabilities:
Check os version
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1038f46
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x104b584]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x104b584]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ebx, ecx
xor ebp, ebp
push 0x206
lea ecx, [esp + 0x82]
mov esi, edx
push ebp
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], esi
mov word [esp + 0x88], bp
call fcn.01024780
add esp, 0xc
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebx]
push ebp
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0xa4]
push edx
push eax
mov dword [esp + 0x94], 0x104
mov dword [esp + 0x50], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, ebp
je 0x100ec0f
mov dword [ebx + 4], edi
cmp edi, 5
jne 0x100ec1b
mov al, 1
jmp 0x100eeee
cmp edi, ebp
je 0x100ec29
mov dword [ebx + 4], edi
xor al, al
jmp 0x100eeee
mov eax, dword [esp + 0x2c]
add dword [esp + 0x24], 1
add eax, 1
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0101d7fe
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
xor ecx, ecx
add esp, 4
mov dword [esp + 0x3c], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0101d7fe
add esp, 4
cmp dword [esp + 0x20], ebp
mov ebx, eax
mov dword [esp + 0x60], ebx
je 0x100ed68
mov esi, dword [esp + 0x30]
call fcn.010068ef
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.0100efc0
cmp dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
jbe 0x100ed64
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x38]
push ebp
push ebp
push ebp
lea eax, [esp + 0x6c]
push eax
mov eax, dword [edx]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x30]
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, ebp
jne 0x100ed4f
mov eax, esi
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebp
mov word [esp + 0x44], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100ecf2
sub eax, edx
mov ecx, esi
sar eax, 1
lea esi, [esp + 0x40]
call fcn.010016eb
mov ecx, esi
mov esi, dword [esp + 0x30]
push ecx
mov dword [esp + 0x298], ebp
call fcn.0100685e
mov dword [esp + 0x294], 0xffffffff
cmp dword [esp + 0x58], 8
jb 0x100ed3e
mov edx, dword [esp + 0x44]
push edx
call fcn.0101dab7
add esp, 4
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebp
mov word [esp + 0x44], bp
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
jb 0x100ecaa
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x28], ebp
je 0x100eec6
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x100ed7f
call fcn.0101dd3f
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x18]
cmp esi, dword [eax + 8]
jbe 0x100ed90
call fcn.0101dd3f
cmp esi, edi
je 0x100edea
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 8]
push esi
push edx
mov eax, edi
call fcn.01008c0c
mov ebx, eax
mov eax, dword [esp + 0x20]
mov edi, dword [eax + 8]
add esp, 8
cmp ebx, edi
je 0x100eddf
lea esi, [ebx + 0x18]
cmp dword [esi], 8
jb 0x100edc8
mov eax, dword [esi - 0x14]
push eax
call fcn.0101dab7
add esp, 4
mov dword [esi], 7
mov dword [esi - 4], ebp
mov word [esi - 0x14], bp
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x100edb7
mov edx, dword [esp + 0x18]
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push eax
call fcn.0100efc0
xor esi, esi
xor edi, edi
cmp dword [esp + 0x28], ebp
mov dword [esp + 0x1c], esi
jbe 0x100eec6
lea ebx, [ebx]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
push ebp
push ebp
push ebp
push ebp
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], ecx
push ebx
mov word [ebx], bp
mov ecx, dword [eax]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, ebp
jne 0x100eeb5
mov eax, ebx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebp
mov word [esp + 0x44], bp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100ee50
sub eax, edx
sar eax, 1
mov ecx, ebx
lea esi, [esp + 0x40]
call fcn.010016eb
mov edx, esi
mov esi, dword [esp + 0x18]
push edx
mov dword [esp + 0x298], 1
call fcn.0100685e
mov dword [esp + 0x294], 0xffffffff
cmp dword [esp + 0x58], 8
jb 0x100eea0
mov eax, dword [esp + 0x44]
push eax
call fcn.0101dab7
add esp, 4
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebp
mov word [esp + 0x44], bp
add esi, 1
cmp esi, dword [esp + 0x28]
mov dword [esp + 0x1c], esi
jb 0x100ee10
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0101e2b6
add esp, 4
push ebx
call fcn.0101e2b6
add esp, 4
cmp edi, ebp
je 0x100eee7
mov edx, dword [esp + 0x34]
mov dword [edx + 4], edi
xor eax, eax
cmp edi, ebp
sete al
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0101daa8
add esp, 0x284
ret 4