Function at 0x403bd0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ebx, ebx
je 0x403d70
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x403d70
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 0x403d80
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [esp + 4], 0x5c
mov ebx, eax
mov dword [esp], eax
call esi
xor edx, edx
mov word [eax], dx
lea esi, [eax + 2]
lea eax, [ebp - 0x18]
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 0x403db1
mov eax, dword [ebp + 0x14]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 8
mov edx, eax
test eax, eax
je 0x403d40
lea eax, [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], 0x20006
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
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 - 0x10], 2
je 0x403d90
test eax, eax
jne 0x403d90
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.shcore.dll_SHCopyKeyW]
sub esp, 0x10
test eax, eax
jne 0x403dd1
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.shcore.dll_SHDeleteKeyW]
mov edx, 1
sub esp, 8
test eax, eax
jne 0x403df2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x18]
sub esp, 4
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x403c72
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x7dd
mov dword [esp], eax
call dbg.error_code_messagebox
xor edx, edx
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403d40
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e0
mov dword [esp], eax
call dbg.error_code_messagebox
xor edx, edx
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403d40
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call edi
mov eax, dword [ebp + 0x14]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x7e0
mov dword [esp], eax
call dbg.error_code_messagebox
xor edx, edx
jmp 0x403d40