Function at 0xd8d210
Capabilities:
Set 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 ebx, ebx
mov esi, edx
mov edi, 7
xor edx, edx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x88], ebx
mov ecx, 0xdbd220
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0xd8d298
cmp dx, bx
je 0xd8d294
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0xd8d298
add eax, 4
add ecx, 4
cmp dx, bx
jne 0xd8d272
xor eax, eax
jmp 0xd8d29d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0xd8d363
xor eax, eax
mov word [ebp - 0x48], ax
push 0x38
mov eax, str.SoftwareAdventNetDesktopCentralDCAgentProcessMonitor
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
call fcn.00d95690
lea ecx, [ebp - 0x48]
push ecx
mov eax, 0xdbe080
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00d98cf0
push eax
mov eax, esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00d98cf0
add esp, 8
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00d92cd0
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0xd8d315
mov edx, dword [ebp - 0x80]
push edx
call fcn.00d9c65d
add esp, 4
xor eax, eax
mov edi, 7
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x50], esi
jb 0xd8d337
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00d9c65d
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x34], esi
jb 0xd8d354
mov eax, dword [ebp - 0x48]
push eax
call fcn.00d9c65d
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0xd8d35e
mov edi, dword [ebp - 0x2c]
jmp 0xd8d368
lea edi, [ebp - 0x2c]
jmp 0xd8d368
mov edi, str.SoftwareAdventNetDesktopCentralDCAgentProcessMonitor
lea ecx, [ebp - 0x84]
push ecx
push 0x20206
push ebx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, 2
jne 0xd8d3d7
push ebx
lea edx, [ebp - 0x84]
push edx
push ebx
push 0x20206
push ebx
push ebx
push ebx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov dword [ebp - 0x94], 3
cmp dword [ebp - 0x88], ebx
je 0xd8d3d7
mov ecx, dword [ebp - 0x84]
push 4
lea eax, [ebp - 0x94]
push eax
push 4
push ebx
push str.restart
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebx
jne 0xd8d416
mov esi, dword [ebp - 0x90]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x84]
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x8c]
push edx
push esi
push 1
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0xd8d446
mov edx, dword [ebp - 0x84]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0xd8d428
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
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0xd8d465
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d9c65d
add esp, 4
mov eax, 1
jmp 0xd8d42a