Function at 0x403d00
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
test esi, esi
je 0x403de8
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x403de8
mov edi, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call edi
mov ebx, eax
test eax, eax
je 0x403df8
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [esp + 4], 0x5c
mov ebx, eax
mov dword [esp], eax
call edi
xor edx, edx
mov word [eax], dx
lea edi, [eax + 2]
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403ef8
mov eax, dword [ebp + 0x14]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x403e08
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
xor esi, esi
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x24]
sub esp, 4
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov edi, esi
mov dword [ebp - 0x24], eax
jmp 0x403d9c
lea eax, [ebp - 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x20006
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
cmp dword [ebp - 0x1c], 2
je 0x403ed0
test eax, eax
jne 0x403ed0
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.shcore.dll_SHCopyKeyW]
sub esp, 0x10
test eax, eax
jne 0x403f20
mov dword [esp + 4], esi
mov eax, dword [ebp + 0xc]
mov esi, 1
mov dword [esp], eax
call dword [sym.imp.shcore.dll_SHDeleteKeyW]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 8
test eax, eax
je 0x403dbb
mov dword [esp + 4], 0x7e0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004026f0
jmp 0x403db9
mov dword [esp + 8], edi
xor esi, esi
mov dword [esp + 4], 0x7dd
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004026f0
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403dbb
mov dword [esp + 4], 0x7e0
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [esp], eax
call fcn.004026f0
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403dbb
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
mov eax, dword [ebp + 0x14]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
sub esp, 8
mov dword [esp + 4], 0x7e0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004026f0
jmp 0x403db9