Function at 0x10020ce0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x10048440]
xor eax, esp
mov dword [esp + 0x41c], eax
mov ecx, dword [esp + 0x428]
mov eax, dword [esp + 0x424]
mov edx, dword [esp + 0x42c]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x3fe
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x444]
lea ecx, [esp + 0x32]
push ebp
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ebp
mov word [esp + 0x38], bp
call fcn.10028cf0
add esp, 0xc
mov dword [esp + 0x14], ebp
xor eax, eax
jmp 0x10020d50
movzx ecx, word [eax + str.SoftwareSoftland]
mov word [esp + eax + 0x2c], cx
add eax, 2
cmp cx, bp
jne 0x10020d50
lea edi, [esp + 0x2c]
add edi, 0xfffffffe
jmp 0x10020d70
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10020d70
mov ebx, dword [0x1003de30]
mov eax, 0x100497e4
mov dword [edi], ebx
mov edx, eax
jmp 0x10020d90
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10020d90
lea edi, [esp + 0x2c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10020da4
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 + 0x2c]
add edi, 0xfffffffe
jmp 0x10020dd0
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10020dd0
mov eax, str.Printers
mov dword [edi], ebx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10020de5
lea edi, [esp + 0x2c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10020e00
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 + 0x2c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10020e23
lea eax, [esp + 0x2c]
mov dword [edi], ebx
lea edx, [eax + 2]
jmp 0x10020e40
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10020e40
mov ecx, dword [esp + 0x20]
sub eax, edx
sar eax, 1
mov esi, ecx
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x10020e55
sub ecx, esi
lea edi, [esp + 0x2c]
mov edx, ecx
add edi, 0xfffffffe
jmp 0x10020e70
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10020e70
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov ebx, 3
lea edx, [esp + eax*2 + 0x2c]
and ecx, ebx
push 0x2c
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.1001feb0
lea edi, [esp + 0x34]
add esp, 8
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10020ea4
mov edx, dword [0x1003de30]
lea eax, [esp + 0x2c]
mov dword [edi], edx
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x10020ec0
mov ecx, dword [str.Profiles]
mov dword [eax], ecx
mov ecx, dword [0x1003e320]
mov dword [eax + 4], ecx
mov ecx, dword [0x1003e324]
mov dword [eax + 8], ecx
mov ecx, dword [0x1003e328]
mov dword [eax + 0xc], ecx
mov cx, word [0x1003e32c]
mov word [eax + 0x10], cx
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
je 0x10020f51
lea edi, [esp + 0x2c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10020f10
mov eax, ecx
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10020f22
lea edi, [esp + 0x2c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10020f36
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
push ebp
lea edx, [esp + 0x14]
push edx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
lea eax, [esp + 0x48]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebp
jne 0x10020fd7
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push ebp
push ebp
lea ecx, [esp + 0x1c]
push ecx
push ebp
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10020f98
mov dword [esp + 0x14], ebx
jmp 0x10020f9e
cmp dword [esp + 0x14], ebx
jne 0x10020fbf
mov eax, dword [esp + 0x444]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push eax
push ecx
push ebx
push ebp
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov edi, ebp
jmp 0x10020fc4
mov edi, 0xfffffffb
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x10020fdc
cmp edi, ebp
jne 0x10020fdc
or eax, 0xffffffff
jmp 0x10020fde
mov eax, edi
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10028cdf
add esp, 0x420
ret