Function at 0x1001c40
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1004018]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x224], 0
cmp dword [ebp + 0x14], 0
jne 0x1001c6f
mov dword [ebp - 0x1c], 0x57
jmp 0x1001e0f
cmp dword [ebp + 0xc], 0
je 0x1001c7e
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea ecx, [ebp - 0x224]
push ecx
push 0x20019
push 0
push 0x10011d8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1001caa
jmp 0x1001e0f
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x1001cc3
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x1c], 0
jne 0x1001d14
mov dword [ebp - 0x10], 0x200
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1001d12
cmp dword [ebp - 0xc], 3
jne 0x1001d12
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2 + 2]
mov dword [ebp - 4], ecx
jmp 0x1001cba
cmp dword [ebp - 0x1c], 0x103
jne 0x1001d24
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x1001d2f
jmp 0x1001e0f
mov edx, dword [ebp - 0x18]
sub edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 4]
jae 0x1001d62
mov dword [ebp - 0x1c], 0x7a
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [edx], eax
jmp 0x1001e0f
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
cmp dword [ebp + 0xc], 0
jne 0x1001d75
jmp 0x1001e0f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + edx*4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], 0
jmp 0x1001d9b
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jae 0x1001e0f
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 4]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
push 0
push 0
lea edx, [ebp - 0xc]
push edx
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1001e0b
cmp dword [ebp - 0xc], 3
jne 0x1001dfc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx*2 + 2]
mov dword [ebp - 8], eax
jmp 0x1001e09
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
mov dword [edx + ecx*4], 0
jmp 0x1001e0d
jmp 0x1001e0f
jmp 0x1001d92
cmp dword [ebp - 0x224], 0
je 0x1001e25
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
call fcn.0100345b
mov esp, ebp
pop ebp
ret 0x10