Function at 0x407870
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x4c83bd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e7744]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x9c]
xor ebx, ebx
push 0x20
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004aa4a8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x20], eax
push 0x38
xor eax, eax
mov dword [ebp + 0x48], ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
lea ecx, [ebp + 0x48]
mov dword [ebp - 4], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
call fcn.00409f70
cmp dword [ebp + 0x5c], 8
lea ecx, [ebp - 0x2c]
push ecx
push 0x20119
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp + 0x48]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407fdd
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x2c]
call fcn.00404eb0
add esp, 8
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
cmp edi, eax
je 0x407fc7
jmp 0x407950
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], 7
mov word [ebp + 0x60], ax
mov ecx, dword [ebp + 0x58]
mov eax, 0x7ffffffe
sub eax, ecx
mov byte [ebp - 4], 4
cmp eax, 1
jb 0x408090
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
push 1
cmovae eax, dword [ebp + 0x48]
push 0x4c996c
push ecx
push eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.00401b00
or ebx, 1
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0x1c], 8
lea esi, [edi + 8]
mov byte [ebp - 4], 5
mov edx, esi
jb 0x4079de
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4079e3
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp]
call fcn.00409d10
mov edx, eax
mov dword [ebp + 0x78], 0
mov dword [ebp + 0x88], 0
mov dword [ebp + 0x8c], 0
mov ecx, dword [edx]
mov dword [ebp + 0x78], ecx
mov ecx, dword [edx + 4]
mov dword [ebp + 0x7c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp + 0x80], ecx
mov eax, dword [edx + 0xc]
mov dword [ebp + 0x84], eax
mov eax, dword [edx + 0x10]
mov dword [ebp + 0x88], eax
mov eax, dword [edx + 0x14]
mov dword [ebp + 0x8c], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00404320
mov edx, dword [ebp + 0x8c]
add esp, 8
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x407ab0
mov ecx, dword [ebp + 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407aa6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408095
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp + 0x88], 0
mov dword [ebp + 0x8c], 7
mov word [ebp + 0x78], ax
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x407b08
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407afe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408095
push edx
push ecx
call fcn.004aa4d8
add esp, 8
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00404da0
mov edx, dword [ebp - 0x10]
mov eax, 0x7ffffffe
add esp, 8
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x408090
cmp dword [edx + 0x14], 8
mov eax, edx
jb 0x407b38
mov eax, dword [edx]
push ecx
push eax
push 1
push 0x4c996c
push edx
push dword [ebp - 0x10]
lea ecx, [ebp + 0x78]
call fcn.00401b00
cmp dword [ebp + 0x8c], 8
lea eax, [ebp + 0x78]
push dword [ebp + 0x88]
cmovae eax, dword [ebp + 0x78]
lea ecx, [ebp + 0x30]
push eax
mov byte [ebp - 4], 7
call fcn.00409d10
mov edx, dword [ebp + 0x8c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x407baf
mov ecx, dword [ebp + 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407ba5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408095
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov ecx, dword [ebp + 0x40]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x13
jb 0x408090
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
push 0x13
cmovae eax, dword [ebp + 0x30]
push 0x4c9970
push ecx
push eax
lea eax, [ebp + 0x30]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp + 0x78]
call fcn.00401b00
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x74]
or ebx, 0xe
mov dword [ebp - 0x14], ebx
cmp edx, 8
jb 0x407c28
mov ecx, dword [ebp + 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407c1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408095
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x80]
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x84]
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x88]
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x8c]
push 0x20
mov dword [ebp + 0x74], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.004aa4a8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0040a610
add esp, 0xc
test eax, eax
jns 0x407ca8
cmp dword [ebp + 0x74], 8
lea eax, [ebp + 0x60]
cmovae eax, dword [ebp + 0x60]
push eax
push str.Failed_to_getConnectionCLSIDs__db_path:___s__n
call fcn.0040b3d0
jmp 0x407e46
mov ecx, dword [esi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0xe
jb 0x408090
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x407cc5
mov eax, dword [esi]
push 0xe
push str._ClassesCLSID
push ecx
push eax
push esi
push dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.00401b00
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
call fcn.00407330
mov edx, dword [ebp + 0x14]
add esp, 8
cmp edx, 8
jb 0x407d24
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407d1a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408095
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov ecx, dword [esi + 0x10]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x45
jb 0x408090
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x407d41
mov eax, dword [esi]
push 0x45
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace
push ecx
push eax
push esi
push dword [ebp - 0x10]
lea ecx, [ebp + 0x78]
call fcn.00401b00
lea ecx, [ebp - 0x30]
or ebx, 0x30
cmp dword [ebp + 0x8c], 8
lea eax, [ebp + 0x78]
push ecx
cmovae eax, dword [ebp + 0x78]
push 0xf013f
push 0
push eax
push 0x80000003
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407daf
cmp dword [ebp + 0x8c], 8
lea ecx, [ebp + 0x78]
push eax
cmovae ecx, dword [ebp + 0x78]
push ecx
push str.Failed_to_open_reg_key_for_CLSID:___s___reason:__d_n
call fcn.0040b3d0
add esp, 0xc
lea ecx, [ebp + 0x78]
call fcn.004022d0
jmp 0x407e49
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov esi, dword [eax]
cmp esi, eax
je 0x407e03
mov ecx, eax
lea ecx, [ecx]
cmp dword [esi + 0x18], 0
lea ebx, [esi + 8]
je 0x407dfb
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x407dd3
mov eax, dword [ebx]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeA]
test eax, eax
je 0x407df8
cmp dword [ebx + 0x14], 0x10
jb 0x407de9
mov ebx, dword [ebx]
push eax
push ebx
push str.Failed_to_RegDeleteTree___s___res___d_n
call fcn.0040ace0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi]
mov esi, eax
cmp eax, ecx
jne 0x407dc0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x8c]
cmp edx, 8
jb 0x407e49
mov ecx, dword [ebp + 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407e3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408095
push edx
push ecx
call fcn.004aa4d8
add esp, 8
lea eax, [ebp + 0x30]
push eax
call fcn.00406160
mov ecx, dword [ebp - 0x28]
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov esi, dword [ecx]
test esi, esi
je 0x407ec9
jmp 0x407e70
mov ecx, dword [esi + 0x1c]
mov ebx, dword [esi]
cmp ecx, 0x10
jb 0x407ea6
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x407e9c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408095
mov eax, edx
push ecx
push eax
call fcn.004aa4d8
add esp, 8
push 0x20
push esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
call fcn.004aa4d8
add esp, 8
mov esi, ebx
test ebx, ebx
jne 0x407e70
push 0x20
push dword [ebp - 0x28]
call fcn.004aa4d8
mov edx, dword [ebp + 0x74]
add esp, 8
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x407f14
mov ecx, dword [ebp + 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407f0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408095
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edx, dword [ebp + 0x44]
xor eax, eax
mov dword [ebp + 0x70], 0
mov dword [ebp + 0x74], 7
mov word [ebp + 0x60], ax
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x407f66
mov ecx, dword [ebp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407f5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408095
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edx, dword [ebp + 0x2c]
xor eax, eax
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x407fb8
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407fae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408095
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edi, dword [edi]
cmp edi, dword [ebp - 0x20]
je 0x407fc7
mov ebx, dword [ebp - 0x14]
jmp 0x407950
call fcn.00408e80
test eax, eax
jns 0x407fdd
push str.Failed_to_unregister_syncroot_under_sycnrootmgr_n
call fcn.0040b3d0
add esp, 4
mov edx, dword [ebp + 0x5c]
cmp edx, 8
jb 0x408017
mov ecx, dword [ebp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40800d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408095
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov edi, dword [ecx]
test edi, edi
je 0x408060
lea ecx, [ecx]
mov esi, dword [edi]
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004018c0
push 0x20
push edi
call fcn.004aa4d8
add esp, 0x10
mov edi, esi
test esi, esi
jne 0x408040
push 0x20
push dword [ebp - 0x20]
call fcn.004aa4d8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.004aa4f4
lea esp, [ebp + 0x94]
pop ebp
ret
call fcn.00409af0
call fcn.004aeecf
int3