Function at 0xd8cfa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xdb7138
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0xdc451c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov ecx, 0xdbd118
mov dword [ebp - 4], esi
mov eax, ecx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0xd8d010
test dl, dl
je 0xd8d00c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0xd8d010
add eax, 2
add ecx, 2
test dl, dl
jne 0xd8cff0
xor eax, eax
jmp 0xd8d015
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
mov eax, edi
lea edx, [eax + 1]
je 0xd8d053
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xd8d020
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00d950f0
push 1
mov eax, 0xdbec58
lea ecx, [ebp - 0x2c]
call 0xd94fd0
push 1
mov eax, 0xdbd118
lea ecx, [ebp - 0x2c]
call 0xd94fd0
jmp 0xd8d066
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xd8d053
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00d950f0
push 0x400
mov dword [ebp - 0x40], 0x400
call fcn.00d9e610
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov edi, eax
mov eax, dword [ebp - 0x2c]
jae 0xd8d088
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push 0x20119
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
cmp ebx, esi
jne 0xd8d14c
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x40]
push eax
push edi
push esi
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0xd8d121
call fcn.00d8d7d0
push str._ERROR_
call fcn.00d9f6dc
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
add esp, 4
cmp dword [ebp - 0x18], edi
jae 0xd8d0e5
lea eax, [ebp - 0x2c]
push esi
push eax
push str.ReadRegistryString_:_Query_registry__s_failed_____d_n
call fcn.00d9f6dc
add esp, 0xc
call fcn.00d9e1f2
add eax, 0x20
push eax
call fcn.00d9ece2
mov eax, dword [ebp - 0x30]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], edi
jb 0xd8d1ed
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0xd8d1e5
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
push eax
mov dword [edx], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0x10
jb 0xd8d142
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00d9c65d
add esp, 4
mov eax, 1
jmp 0xd8d1ef
push esi
call fcn.00da0839
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x38]
add esp, 4
push edx
mov dword [ebp - 0x38], eax
call fcn.00da04db
add esp, 4
mov esi, eax
mov ecx, 9
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x54]
push edx
mov edx, dword [ebp - 0x50]
push eax
inc ecx
push ecx
add edx, 0x76c
push edx
push str.__d__02d__02d__02d:_02d:_02d_
call fcn.00d9f6dc
add esp, 0x1c
push str._ERROR_
call fcn.00d9f6dc
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0x18], esi
jae 0xd8d1bc
lea eax, [ebp - 0x2c]
push ebx
push eax
push str.ReadRegistryString_:_Open_registry__s_failed_____d_n
call fcn.00d9f6dc
add esp, 0xc
call fcn.00d9e1f2
add eax, 0x20
push eax
call fcn.00d9ece2
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0xd8d1ed
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00d9c65d
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00d9c668
mov esp, ebp
pop ebp
ret