Function at 0x21034141
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.21033f8c
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp - 0x84]
call fcn.21034417
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x2103417d
xor ax, ax
jmp 0x21034411
mov word [ebp - 0xc], 0
jmp 0x21034191
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 0x210341b0
jmp 0x21034185
mov edx, dword [ebp - 0xc]
and edx, 0xffff
test edx, edx
jne 0x210341c2
jmp 0x2103440f
mov eax, dword [ebp - 0xc]
and eax, 0xffff
imul eax, eax, 0x50
push eax
call fcn.210636c3
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 0x210341fe
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 0x21034346
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.210537b0
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 0x21083f6c
mov ecx, dword [ebp - 0x78]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x21034291
mov edx, dword [ebp - 0x18]
mov ax, word [ebp - 0x70]
mov word [edx], ax
jmp 0x210342a2
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 0x210341f5
cmp dword [ebp - 4], 0
je 0x210343f9
mov dword [ebp - 0x1c], 0
jmp 0x21034362
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 0x210343f9
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 0x21034399
jmp 0x21034359
mov ecx, dword [ebp - 0x84]
call fcn.21033fc1
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 0x210343f4
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 0x21083f88
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 0x21034359
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 0x21034411
jmp 0x210343f9
mov esp, ebp
pop ebp
ret 4