Function at 0x403bf0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
test edi, edi
je 0x403dd0
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x403dd0
mov dword [esp + 4], 0x5c
mov esi, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp], edi
call esi
mov ebx, eax
test eax, eax
je 0x403e10
cmp word [edi], 0
mov eax, edi
je 0x403e80
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x403c50
sub eax, edi
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x403c70
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call esi
xor edx, edx
mov word [eax], dx
add eax, 2
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x2001d
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x403e20
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
mov esi, eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 8
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x403da0
lea eax, [ebp - 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], 0x20006
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
cmp dword [ebp - 0x1c], 2
je 0x403de0
test eax, eax
jne 0x403de0
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.shcore.dll_SHCopyKeyW]
sub esp, 0x10
test eax, eax
jne 0x403e42
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], edi
mov esi, 1
mov dword [esp], eax
call dword [sym.imp.shcore.dll_SHDeleteKeyW]
sub esp, 8
test eax, eax
jne 0x403e66
lea esi, [esi]
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x2c]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x24]
sub esp, 4
test eax, eax
je 0x403dd2
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
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0x7dd
xor esi, esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._error_code_messagebox
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x2c], eax
jmp 0x403da0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x24], eax
jmp 0x403cca
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e0
xor esi, esi
mov dword [esp], eax
call sym._error_code_messagebox
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x2c], eax
jmp 0x403da0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
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 eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e0
xor esi, esi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403da0
mov eax, 2
jmp 0x403c5e