Function at 0x403bc0
Capabilities:
Delete registry key
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [ebp - 0x24], 0
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x20], 0
test esi, esi
je 0x403db0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403db0
mov dword [esp], esi
mov eax, 0x5c
mov edi, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp + 4], eax
call edi
test eax, eax
mov ebx, eax
je 0x403e20
cmp word [esi], 0
mov eax, esi
je 0x403e30
mov esi, esi
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x403c20
sub eax, esi
add eax, 2
mov dword [esp], eax
call sym._heap_xalloc
mov ebx, eax
xor eax, eax
lea esi, [esi]
movzx ecx, word [esi + eax]
mov word [ebx + eax], cx
add eax, 2
test ecx, ecx
jne 0x403c40
mov dword [esp], ebx
mov ecx, 0x5c
mov dword [esp + 4], ecx
call edi
mov edi, 0x2001d
mov word [eax], 0
add eax, 2
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x403e02
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]
sub esp, 8
test eax, eax
mov edi, eax
je 0x403d60
lea eax, [ebp - 0x1c]
xor edx, edx
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, 0x20006
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._RegCreateKeyExW_36
sub esp, 0x24
cmp dword [ebp - 0x1c], 2
je 0x403dc0
test eax, eax
jne 0x403dc0
mov eax, dword [ebp - 0x20]
xor edi, edi
mov dword [esp + 0xc], edi
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 fcn.0040f180
sub esp, 0x10
test eax, eax
jne 0x403ddf
mov dword [esp + 4], esi
mov eax, dword [ebp + 0xc]
mov edi, 1
mov dword [esp], eax
call sym._SHDeleteKeyW_8
sub esp, 8
test eax, eax
jne 0x403e02
mov esi, esi
lea edi, [edi]
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, dword [ebp - 0x24]
sub esp, 4
test eax, eax
je 0x403db2
mov dword [esp], eax
call sym._RegCloseKey_4
xor edx, edx
mov eax, dword fs:[0x18]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, edi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
xor edi, edi
mov dword [esp + 8], eax
mov eax, 0x7dd
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403d60
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, dword [ebp + 0x14]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._RegDeleteKeyW_8
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, 0x7e0
xor edi, edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403d60
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
jmp 0x403c98
mov eax, 2
jmp 0x403c2e