Function at 0x403d90
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test esi, esi
je 0x403e50
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x403e50
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 0x403e60
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 - 0x18]
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 0x403f80
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 0x403e70
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
xor esi, esi
jmp 0x403f4f
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 - 0x18], eax
jmp 0x403e2c
lea eax, [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x14]
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 - 0x18]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
cmp dword [ebp - 0x10], 2
je 0x403f30
test eax, eax
jne 0x403f30
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], edi
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 0x403fa0
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 0x403f4f
mov dword [esp + 4], 0x7e0
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [esp], eax
call fcn.00402740
jmp 0x403f4f
mov dword [esp + 8], edi
xor esi, esi
mov dword [esp + 4], 0x7dd
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00402740
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
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]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x7e0
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [esp], eax
call fcn.00402740
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403f4f
mov eax, dword [ebp - 0x14]
xor esi, esi
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 - 0x18]
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.00402740
jmp 0x403f4f