Function at 0x404bf0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x444b08
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x4c], edi
call fcn.00404b20
test eax, eax
je 0x40501a
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 0x14]
push eax
push str.SYSTEMCURRENTCONTROLSETServices
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40501a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push str.DGPNPSEV
push edx
call esi
test eax, eax
jne 0x404e15
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, ebx
call fcn.00404970
mov esi, dword [esp + 0x38]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
xor ebp, ebp
test esi, esi
je 0x404e13
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x404e13
mov ecx, ebx
mov dword [esp + 0x20], 0
call fcn.00401510
test eax, eax
jbe 0x404e06
mov dword [esp + 0x24], 0
lea esp, [esp]
mov eax, dword [ebx + 4]
test eax, eax
je 0x404d15
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x20], eax
jb 0x404d22
call fcn.0041db92
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov eax, dword [ebx + 4]
add eax, dword [esp + 0x24]
cmp dword [eax + 0x18], 8
jb 0x404d34
mov ebx, dword [eax + 4]
jmp 0x404d37
lea ebx, [eax + 4]
test esi, esi
je 0x404d56
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x404d63
call fcn.0041db92
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov eax, ebx
lea edx, [eax + 2]
jmp 0x404d70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d70
sub eax, edx
sar eax, 1
push eax
push 0
push ebx
mov ebx, dword [esp + 0x38]
lea ecx, [ebx + esi]
call fcn.00401da0
cmp eax, 0xffffffff
je 0x404de1
test esi, esi
je 0x404db3
sub edi, esi
mov ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x404dbc
call fcn.0041db92
mov esi, dword [esp + 0x38]
cmp dword [ebx + esi + 0x18], 8
jb 0x404dc9
mov esi, dword [ebx + esi + 4]
jmp 0x404dcd
lea esi, [ebx + esi + 4]
mov edx, dword [esp + 0x18]
push esi
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x24], 0x1c
add ebx, 1
mov dword [esp + 0x20], ebx
call fcn.00401510
cmp ebx, eax
mov ebx, dword [esp + 0x28]
jb 0x404cf0
add ebp, 1
add dword [esp + 0x2c], 0x1c
jmp 0x404ca3
xor edi, edi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push str.DGSafe
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x404ffc
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
cmp edi, eax
mov ebp, eax
jbe 0x404e4d
call fcn.0041db92
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
cmp edi, eax
lea esi, [esp + 0x34]
jbe 0x404e5a
call fcn.0041db92
push ebp
push esi
lea eax, [esp + 0x3c]
push edi
push eax
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.00403ee0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, ebx
call fcn.00404970
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
test esi, esi
je 0x40500e
mov ecx, ebp
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x20], eax
jae 0x40500e
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x404fed
mov ecx, dword [ebx + 0x18]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x404fed
mov eax, dword [ebx + 4]
test eax, eax
je 0x404f12
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x404f1f
call fcn.0041db92
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov eax, dword [ebx + 4]
add eax, dword [esp + 0x2c]
cmp dword [eax + 0x18], 8
jb 0x404f31
mov edi, dword [eax + 4]
jmp 0x404f34
lea edi, [eax + 4]
test esi, esi
je 0x404f55
mov ecx, ebp
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x20], eax
jb 0x404f62
call fcn.0041db92
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404f67
sub eax, edx
sar eax, 1
push eax
push 0
push edi
mov edi, dword [esp + 0x30]
lea ecx, [edi + esi]
call fcn.00401da0
cmp eax, 0xffffffff
je 0x404fda
test esi, esi
je 0x404fac
sub ebp, esi
mov ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x20], eax
jb 0x404fb5
call fcn.0041db92
mov esi, dword [esp + 0x38]
cmp dword [edi + esi + 0x18], 8
jb 0x404fc2
mov esi, dword [edi + esi + 4]
jmp 0x404fc6
lea esi, [edi + esi + 4]
mov edx, dword [esp + 0x1c]
push esi
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
add dword [esp + 0x28], 1
add dword [esp + 0x2c], 0x1c
mov edi, dword [esp + 0x28]
jmp 0x404ec4
add dword [esp + 0x20], 1
add dword [esp + 0x24], 0x1c
jmp 0x404e91
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x2c], 1
jmp 0x405022
xor edi, edi
mov dword [esp + 0x2c], 1
jmp 0x405022
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x18], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x405057
mov eax, dword [esp + 0x14]
push str.DGPNPSEV
push eax
call ebx
mov ecx, dword [esp + 0x18]
push ecx
call edi
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x18], 0
cmp dword [esp + 0x1c], 0
je 0x405081
mov edx, dword [esp + 0x14]
push str.DGSafe
push edx
call ebx
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40509c
push eax
call edi
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x14], 0
test esi, esi
je 0x4050e7
cmp esi, ebp
mov edi, ebp
je 0x4050de
add esi, 0x18
lea esp, [esp]
cmp dword [esi], 8
jb 0x4050c1
mov ecx, dword [esi - 0x14]
push ecx
call fcn.0041d698
add esp, 4
xor eax, eax
mov dword [esi], 7
mov dword [esi - 4], eax
mov word [esi - 0x14], ax
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x4050b0
mov esi, dword [esp + 0x38]
push esi
call fcn.0041d698
add esp, 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret