Function at 0x10020290
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 + 0x2c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x444]
lea ecx, [esp + 0x32]
push ebp
push ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 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 0x10020300
movzx ecx, word [eax + str.SoftwareSoftland]
mov word [esp + eax + 0x2c], cx
add eax, 2
cmp cx, bp
jne 0x10020300
lea edi, [esp + 0x2c]
add edi, 0xfffffffe
jmp 0x10020320
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10020320
mov ebx, dword [0x1003de30]
mov eax, 0x100497e4
mov dword [edi], ebx
mov edx, eax
jmp 0x10020340
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10020340
lea edi, [esp + 0x2c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10020354
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 0x10020380
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10020380
mov eax, str.Printers
mov dword [edi], ebx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10020395
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 0x100203b0
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 0x100203d3
lea eax, [esp + 0x2c]
mov dword [edi], ebx
lea edx, [eax + 2]
jmp 0x100203f0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100203f0
mov ecx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
mov esi, ecx
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x10020405
sub ecx, esi
lea edi, [esp + 0x2c]
mov edx, ecx
add edi, 0xfffffffe
jmp 0x10020420
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10020420
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + eax*2 + 0x2c]
and ecx, 3
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 0x10020450
mov edx, dword [0x1003de30]
lea eax, [esp + 0x2c]
mov dword [edi], edx
add eax, 0xfffffffe
jmp 0x10020470
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x10020470
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 + 0x28]
cmp ecx, ebp
je 0x10020502
lea edi, [esp + 0x2c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x100204c0
mov eax, ecx
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100204d2
lea edi, [esp + 0x2c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x100204e6
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]
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 0x100205e9
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push ebp
push ebp
lea ecx, [esp + 0x1c]
push ecx
push ebp
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10020551
mov dword [esp + 0x14], 1
jmp 0x10020558
cmp dword [esp + 0x14], 1
jne 0x100205d1
mov esi, dword [esp + 0x24]
cmp esi, ebp
je 0x1002058f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10020565
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebp
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov edi, ebp
jmp 0x100205d6
push 2
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x100205a0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push edi
push 1
push ebp
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, ebp
jmp 0x100205d6
mov edi, 0xfffffffb
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x100205ee
cmp edi, ebp
jne 0x100205ee
or eax, 0xffffffff
jmp 0x100205f0
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