Function at 0x4720a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d80a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6679c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [0x682d20]
mov dword [ebp - 0x1c], 0
test al, 1
jne 0x472119
or eax, 1
mov dword [0x682d20], eax
call fcn.00402c20
mov ecx, eax
test ecx, ecx
jne 0x4720fa
push 0x80004005
call fcn.004024f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x5dcbf0
mov dword [0x682d24], eax
call fcn.0058c29d
mov eax, dword [0x682d20]
add esp, 4
test al, 2
jne 0x472154
or eax, 2
mov dword [0x682d20], eax
call fcn.00402c20
mov ecx, eax
test ecx, ecx
jne 0x47213a
push 0x80004005
call fcn.004024f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x5dcbd0
mov dword [0x682d28], eax
call fcn.0058c29d
add esp, 4
mov eax, dword [0x682d24]
cmp dword [eax - 0xc], 0
jne 0x47235d
push 0x642e10
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMasterOFD.exe
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.00494ea0
add esp, 8
push eax
mov ecx, 0x682d24
mov dword [ebp - 4], 0
call fcn.00406c90
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4721b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Mid_C
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMasterOFD.exe
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.00494ea0
add esp, 8
push eax
mov ecx, 0x682d28
mov dword [ebp - 4], 1
call fcn.00406c90
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x472200
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x682d24]
cmp dword [eax - 0xc], 0
je 0x472263
mov eax, dword [0x682d28]
cmp dword [eax - 0xc], 0
je 0x472263
push ecx
mov esi, esp
mov dword [ebp - 0x10], esp
lea ecx, [eax - 0x10]
mov dword [ebp - 0x20], esi
call fcn.004073a0
add eax, 0x10
mov dword [esi], eax
push ecx
mov dword [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x20], esi
mov ecx, dword [0x682d24]
lea ecx, [ecx - 0x10]
call fcn.004073a0
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00471fa0
add esp, 8
test al, al
jne 0x4724e1
lea ecx, [ebp - 0x10]
call fcn.00495ca0
push eax
mov ecx, 0x682d24
mov dword [ebp - 4], 3
call fcn.00406c90
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47229e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x20], esi
mov ecx, dword [0x682d24]
lea ecx, [ecx - 0x10]
call fcn.004073a0
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.00471e40
add esp, 4
push eax
mov ecx, 0x682d28
mov dword [ebp - 4], 4
call fcn.00406c90
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4722f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x682d24]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x472300
sub edx, esi
sar edx, 1
push ecx
lea ecx, [edx*2 + 2]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMasterOFD.exe
push ecx
push eax
push ecx
push 0x642e10
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00494f80
mov eax, dword [0x682d28]
add esp, 0x14
mov esi, eax
lea edx, [esi + 2]
nop dword [eax + eax]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x472340
sub esi, edx
sar esi, 1
push ecx
lea esi, [esi*2 + 2]
push esi
jmp 0x4724c8
push ecx
mov esi, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x10], esi
mov ecx, dword [0x682d28]
add ecx, 0xfffffff0
call fcn.004073a0
add eax, 0x10
mov dword [esi], eax
push ecx
mov dword [ebp - 4], 5
mov esi, esp
mov dword [ebp - 0x10], esi
mov ecx, dword [0x682d24]
lea ecx, [ecx - 0x10]
call fcn.004073a0
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00471fa0
add esp, 8
test al, al
jne 0x4724e1
lea ecx, [ebp - 0x10]
call fcn.00495ca0
push eax
mov ecx, 0x682d24
mov dword [ebp - 4], 6
call fcn.00406c90
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4723ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x20], esi
mov ecx, dword [0x682d24]
lea ecx, [ecx - 0x10]
call fcn.004073a0
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [esi], eax
call fcn.00471e40
add esp, 4
push eax
mov ecx, 0x682d28
mov dword [ebp - 4], 7
call fcn.00406c90
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x472443
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push 0x642e10
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMasterOFD.exe
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.Mid_C
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMasterOFD.exe
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov eax, dword [0x682d24]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x472475
sub edx, esi
sar edx, 1
push ecx
lea ecx, [edx*2 + 2]
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMasterOFD.exe
push ecx
push eax
push ecx
push 0x642e10
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00494f80
mov eax, dword [0x682d28]
add esp, 0x14
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4724b0
sub edx, esi
sar edx, 1
push ecx
lea ecx, [edx*2 + 2]
push ecx
push eax
push ecx
push str.Mid_C
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsMasterOFD.exe
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00494f80
add esp, 0x14
mov ecx, dword [0x682d24]
lea ecx, [ecx - 0x10]
call fcn.004073a0
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret