Function at 0x10020940
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x424
mov eax, dword [0x10048440]
xor eax, esp
mov dword [esp + 0x420], eax
mov ecx, dword [esp + 0x42c]
mov eax, dword [esp + 0x428]
mov edx, dword [esp + 0x430]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x444]
push edi
xor ebp, ebp
push 0x3fe
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x448]
lea ecx, [esp + 0x36]
push ebp
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], ebp
mov word [esp + 0x3c], bp
call fcn.10028cf0
add esp, 0xc
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esi], ebp
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.SoftwareSoftland]
mov word [esp + eax + 0x30], cx
add eax, 2
cmp cx, bp
jne 0x100209c0
lea edi, [esp + 0x30]
add edi, 0xfffffffe
jmp 0x100209e0
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x100209e0
mov ebx, dword [0x1003de30]
mov eax, 0x100497e4
mov dword [edi], ebx
mov edx, eax
jmp 0x10020a00
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10020a00
lea edi, [esp + 0x30]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10020a14
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 + 0x30]
add edi, 0xfffffffe
jmp 0x10020a40
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10020a40
mov eax, str.Printers
mov dword [edi], ebx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10020a55
lea edi, [esp + 0x30]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10020a70
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 + 0x30]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10020a93
lea eax, [esp + 0x30]
mov dword [edi], ebx
lea edx, [eax + 2]
jmp 0x10020ab0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10020ab0
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
mov esi, ecx
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x10020ac5
sub ecx, esi
lea edi, [esp + 0x30]
mov edx, ecx
add edi, 0xfffffffe
jmp 0x10020ae0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10020ae0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + eax*2 + 0x30]
and ecx, 3
push 0x2c
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.1001feb0
lea edi, [esp + 0x38]
add esp, 8
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10020b10
mov edx, dword [0x1003de30]
lea eax, [esp + 0x30]
mov dword [edi], edx
add eax, 0xfffffffe
jmp 0x10020b30
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x10020b30
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 + 0x2c]
cmp ecx, ebp
je 0x10020bc2
lea edi, [esp + 0x30]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x10020b80
mov eax, ecx
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10020b92
lea edi, [esp + 0x30]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10020ba6
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 edx, [esp + 0x10]
push edx
push 0x20019
push ebp
lea eax, [esp + 0x3c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10020cb7
mov edi, dword [esp + 0x24]
mov edx, dword [edi]
mov ebx, dword [esp + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
push ecx
call esi
cmp dword [esp + 0x14], 3
jne 0x10020c9e
cmp eax, ebp
je 0x10020c3f
cmp eax, 0xea
je 0x10020c3f
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp eax, 2
setne dl
push ecx
add edx, 0xfffffffe
mov dword [esp + 0x20], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
jmp 0x10020cbc
mov eax, dword [esp + 0x18]
cmp eax, ebp
jbe 0x10020c85
push eax
call fcn.1002893e
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push ebp
mov dword [edi], eax
mov eax, dword [esp + 0x20]
push ebx
push eax
call esi
test eax, eax
jne 0x10020ca6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
jmp 0x10020cbc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov dword [edi], ebp
push ecx
mov dword [eax], ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
jmp 0x10020cbc
mov dword [esp + 0x1c], 0xfffffffb
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
jmp 0x10020cbc
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10028cdf
add esp, 0x424
ret