Function at 0x403d30
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
test ebx, ebx
je 0x403f10
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x403f10
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0x5c
mov esi, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp], eax
call esi
mov ebx, eax
test eax, eax
je 0x403f48
mov eax, dword [ebp + 0x10]
movzx edi, word [eax]
test di, di
je 0x403fc0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x403d90
sub eax, dword [ebp + 0x10]
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp + 0x10]
mov ebx, eax
jmp 0x403db3
movzx edi, word [edx]
add eax, 2
add edx, 2
mov word [eax - 2], di
test di, di
jne 0x403db0
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call esi
xor edx, edx
mov word [eax], dx
add eax, 2
mov dword [ebp - 0x2c], 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 0x403f60
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 8
mov esi, eax
test eax, eax
je 0x403ee0
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 0x403f20
test eax, eax
jne 0x403f20
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
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 0x403f80
mov eax, dword [ebp + 0x10]
mov esi, 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.shcore.dll_SHDeleteKeyW]
sub esp, 8
test eax, eax
jne 0x403fa1
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x24]
sub esp, 4
test eax, eax
je 0x403f12
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 - 0x2c]
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 edi, dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403ee0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
jmp 0x403e0c
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e0
xor esi, esi
mov dword [esp], eax
call sym._error_code_messagebox
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403ee0
mov eax, dword [ebp - 0x20]
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 eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e0
xor esi, esi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403ee0
mov eax, 2
jmp 0x403d9f