Function at 0x10212c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1035d48
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x103b444]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x18
mov edx, dword [0x1002444]
push edx
mov eax, dword [0x1002440]
push eax
push 0x80000001
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x102132c
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x1c]
and ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
push ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x20
call fcn.01022680
mov edx, dword [ebp - 0x1c]
and edx, 2
neg edx
sbb edx, edx
neg edx
push edx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x2c
call fcn.01022680
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x20
mov ecx, dword [0x1002448]
push ecx
mov edx, dword [0x1002440]
push edx
push 0x80000001
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10214e4
lea ecx, [ebp - 0x28]
call fcn.01012550
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
call fcn.01019510
lea ecx, [ebp - 0x28]
call fcn.01024680
test eax, eax
je 0x10214d5
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x28]
call fcn.01024680
push eax
push 0
push 0x20
mov edx, dword [0x1002448]
push edx
mov eax, dword [0x1002440]
push eax
push 0x80000001
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10214d5
lea ecx, [ebp - 0x28]
call fcn.01024680
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx]
test edx, edx
je 0x10214d5
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [0x103b544]
call fcn.01023e30
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x102144c
push 1
mov ecx, dword [ebp - 0x30]
call fcn.01022f50
mov ecx, eax
call fcn.01022680
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
call edx
jmp 0x1021494
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x3c
call fcn.01022830
jmp 0x102148d
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
add edx, 2
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x40]
mov cx, word [eax]
mov word [ebp - 0x46], cx
add dword [ebp - 0x40], 2
cmp word [ebp - 0x46], 0
jne 0x10214a3
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x44]
sar edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x24], edx
jmp 0x10213ff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.01015a50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret