Function at 0x2102cbcf
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x84]
call fcn.2102ca1a
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp - 0x84]
call fcn.2102cea5
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x2102cc0b
xor ax, ax
jmp 0x2102ce9f
mov word [ebp - 0xc], 0
jmp 0x2102cc1f
mov cx, word [ebp - 0xc]
add cx, 1
mov word [ebp - 0xc], cx
push 0x50
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0xc]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x2102cc3e
jmp 0x2102cc13
mov edx, dword [ebp - 0xc]
and edx, 0xffff
test edx, edx
jne 0x2102cc50
jmp 0x2102ce9d
mov eax, dword [ebp - 0xc]
and eax, 0xffff
imul eax, eax, 0x50
push eax
call fcn.21058728
add esp, 4
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x80]
mov dword [ecx + 8], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
jmp 0x2102cc8c
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xffff
cmp dword [ebp - 0x1c], ecx
jae 0x2102cdd4
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x50
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 8]
add ecx, edx
mov dword [ebp - 0x18], ecx
push 0x50
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x18]
add eax, 2
push eax
call fcn.21048fc0
add esp, 8
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0x2107596c
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2102cd1f
mov edx, dword [ebp - 0x18]
mov ax, word [ebp - 0x70]
mov word [edx], ax
jmp 0x2102cd30
mov ecx, dword [ebp - 0x18]
mov word [ecx], 0
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x44
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.Width
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x48
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.Height
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], 4
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.Units
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x18]
mov cx, word [ebp - 0x74]
mov word [eax + 0x4c], cx
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x84]
mov cx, word [eax + 4]
add cx, 1
mov edx, dword [ebp - 0x84]
mov word [edx + 4], cx
jmp 0x2102cc83
cmp dword [ebp - 4], 0
je 0x2102ce87
mov dword [ebp - 0x1c], 0
jmp 0x2102cdf0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x84]
xor edx, edx
mov dx, word [ecx + 4]
cmp dword [ebp - 0x1c], edx
jae 0x2102ce87
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x50
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 8]
add edx, eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
je 0x2102ce27
jmp 0x2102cde7
mov ecx, dword [ebp - 0x84]
call fcn.2102ca4f
and eax, 0xffff
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x18]
mov ax, word [ebp - 0x7c]
mov word [edx], ax
cmp dword [ebp + 8], 0
je 0x2102ce82
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 2
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 4
lea ecx, [ebp - 0x7c]
push ecx
push 4
push 0
push 0x21075988
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x2102cde7
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x84]
mov ax, word [edx + 4]
jmp 0x2102ce9f
jmp 0x2102ce87
mov esp, ebp
pop ebp
ret 4