Function at 0xd8cc80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xdb7800
mov eax, dword fs:[0]
push eax
sub esp, 0x88
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, 7
xor edx, edx
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], ecx
mov ebx, 0x400
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
mov ecx, 0xdbd220
mov dword [ebp - 4], esi
mov eax, ecx
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0xd8cd06
cmp dx, si
je 0xd8cd02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0xd8cd06
add eax, 4
add ecx, 4
cmp dx, si
jne 0xd8cce0
xor eax, eax
jmp 0xd8cd0b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0xd8cde0
xor eax, eax
mov word [ebp - 0x48], ax
push 0x29
mov eax, str.SoftwareAdventNetDesktopCentralDCAgent
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
call fcn.00d95690
lea ecx, [ebp - 0x48]
push ecx
mov eax, 0xdbe080
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00d98cf0
add esp, 4
push eax
mov eax, 0xdbd220
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00d98cf0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00d92cd0
cmp dword [ebp - 0x6c], 8
jb 0xd8cd7f
mov edx, dword [ebp - 0x80]
push edx
call fcn.00d9c65d
add esp, 4
xor esi, esi
xor eax, eax
cmp dword [ebp - 0x50], 8
mov edi, 7
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], esi
mov word [ebp - 0x80], ax
jb 0xd8cda4
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00d9c65d
add esp, 4
xor edx, edx
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], dx
jb 0xd8cdc2
mov eax, dword [ebp - 0x48]
push eax
call fcn.00d9c65d
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 8
jb 0xd8cdd5
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x84], ecx
jmp 0xd8cdea
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x84], edx
jmp 0xd8cdea
mov dword [ebp - 0x84], str.SoftwareAdventNetDesktopCentralDCAgent
push 0x1000
mov dword [ebp - 0x8c], 0x400
call fcn.00d9e610
mov esi, eax
add esp, 4
test esi, esi
jne 0xd8ce19
cmp edi, 8
jb 0xd8cf7b
mov eax, dword [ebp - 0x2c]
push eax
jmp 0xd8cf73
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0x88]
push ecx
push 0x20219
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0xd8cf31
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x8c]
push eax
push esi
push edi
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
jne 0xd8ceae
jmp 0xd8ce70
add ebx, ebx
push ebx
push esi
call fcn.00da01a6
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x88]
add esp, 8
mov esi, eax
lea eax, [ebp - 0x8c]
push eax
push esi
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x8c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
je 0xd8ce70
test edi, edi
je 0xd8cf03
call fcn.00d8d7d0
push str._ERROR_
call fcn.00d9f6dc
mov eax, dword [ebp - 0x84]
add esp, 4
push edi
push eax
push str.ReadRegistryString_:_Query_registry__ws_failed_____d_n
call fcn.00d9f6dc
add esp, 0xc
call fcn.00d9e1f2
add eax, 0x20
push eax
call fcn.00d9ece2
mov ecx, dword [ebp - 0x88]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0xd8cf7b
mov edx, dword [ebp - 0x2c]
push edx
jmp 0xd8cf73
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x94]
push ecx
mov dword [eax], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0xd8cf2a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d9c65d
add esp, 4
mov eax, 1
jmp 0xd8cf7d
call fcn.00d8d7d0
push str._ERROR_
call fcn.00d9f6dc
mov eax, dword [ebp - 0x84]
add esp, 4
push edi
push eax
push str.ReadRegistryString_:_Open_registry__ws_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], 8
jb 0xd8cf7b
mov ecx, dword [ebp - 0x2c]
push ecx
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