Function at 0x1000d4f0
Capabilities:
Print debug messages
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10030050]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000d546
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.RegOpenKeyEx_failed__key:_n
call esi
push edi
call esi
xor al, al
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012810
mov esp, ebp
pop ebp
ret
push 0
push 0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000d59a
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.RegQueryInfoKey_failed__key:_n
call esi
push edi
call esi
xor al, al
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012810
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
cmp eax, ecx
mov dword [ebp - 0x10], eax
ja 0x1000d5aa
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000d5b2
sub eax, edx
mov edx, eax
mov eax, edi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000d5c4
sub eax, edi
lea eax, [eax + edx + 2]
call fcn.10014350
mov ebx, esp
mov edx, ebx
mov dword [ebp - 0x38], ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x1000d5e3
mov edi, ebx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1000d5f4
mov dx, word [0x1002bbb4]
mov eax, dword [ebp + 0x10]
mov word [edi], dx
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000d610
mov edi, ebx
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1000d620
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x14]
push edi
mov esi, 0x1002cb60
call fcn.1000da80
push edi
mov esi, ebx
call fcn.1000da80
push edi
mov esi, 0x1002cb64
call fcn.1000da80
mov eax, dword [ebp - 0x10]
add esp, 0xc
lea eax, [eax + eax + 2]
call fcn.10014350
mov eax, dword [ebp - 0x28]
lea eax, [eax + eax + 2]
mov esi, esp
call fcn.10014350
cmp dword [ebp - 0x1c], 0
mov ebx, esp
mov byte [ebp - 5], 1
mov dword [ebp - 0x14], 0
jbe 0x1000d6e7
cmp byte [ebp - 5], 0
je 0x1000d6e7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
add eax, 1
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x34], eax
add ecx, 1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x34]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x1000d6d9
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.1000d760
add esp, 0xc
mov byte [ebp - 5], al
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jb 0x1000d689
xor ebx, ebx
cmp dword [ebp - 0x20], ebx
jbe 0x1000d736
cmp byte [ebp - 5], 0
je 0x1000d736
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
add eax, 1
push edx
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1000d72e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x38]
push edi
push esi
push eax
push ecx
call fcn.1000d4f0
add esp, 0x10
mov byte [ebp - 5], al
add ebx, 1
cmp ebx, dword [ebp - 0x20]
jb 0x1000d6ee
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 5]
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012810
mov esp, ebp
pop ebp
ret