Function at 0x10021790
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x41c
mov eax, dword [0x10048440]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov ecx, dword [esp + 0x424]
mov edx, dword [esp + 0x428]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x3fe
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2e]
push ebx
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], ebx
mov word [esp + 0x34], bx
call fcn.10028cf0
add esp, 0xc
mov dword [esp + 0x18], ebx
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.SoftwareSoftland]
mov word [esp + eax + 0x28], cx
add eax, 2
cmp cx, bx
jne 0x100217f0
lea edi, [esp + 0x28]
add edi, 0xfffffffe
jmp 0x10021810
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x10021810
mov ebp, dword [0x1003de30]
mov eax, 0x100497e4
mov dword [edi], ebp
mov edx, eax
jmp 0x10021830
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10021830
lea edi, [esp + 0x28]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x10021844
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
add edi, 0xfffffffe
jmp 0x10021870
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x10021870
mov eax, str.Printers
mov dword [edi], ebp
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10021885
lea edi, [esp + 0x28]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x100218a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x100218c3
lea eax, [esp + 0x28]
mov dword [edi], ebp
lea edx, [eax + 2]
jmp 0x100218e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100218e0
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
mov esi, ecx
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x100218f5
sub ecx, esi
lea edi, [esp + 0x28]
mov edx, ecx
add edi, 0xfffffffe
jmp 0x10021910
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x10021910
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + eax*2 + 0x28]
push 0x2c
push ecx
call fcn.1001feb0
add esp, 8
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x34]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10021a0d
mov edi, dword [esp + 0x24]
mov edx, dword [edi]
mov ebp, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
push ecx
call esi
cmp dword [esp + 0x10], 1
jne 0x100219f9
cmp eax, ebx
je 0x100219ae
cmp eax, 0xea
je 0x100219ae
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp eax, 2
setne dl
push ecx
add edx, 0xfffffffe
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10021a12
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x100219e6
push eax
call fcn.1002893e
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [edi], eax
mov eax, dword [esp + 0x24]
push ebp
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10021a12
mov ecx, dword [esp + 0x14]
push ecx
mov dword [edi], ebx
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10021a12
mov ecx, dword [esp + 0x14]
push ecx
mov esi, 0xfffffffb
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10021a12
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10028cdf
add esp, 0x41c
ret