Function at 0x46e720
Capabilities:
Delete registry key
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x57be16
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x434], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x44c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x45c]
call fcn.00530e1f
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x46e77e
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x454], ebx
call fcn.0046dde0
test eax, eax
jne 0x46e7ab
call fcn.0046dd40
test eax, eax
je 0x46e950
call fcn.00530e1f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x46e7c5
push 0x80004005
call fcn.00401f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x454], 1
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
call fcn.0046de80
test eax, eax
je 0x46e916
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
call fcn.0046df60
push 0x35
push str.SoftwareMicrosoftProtected_Storage_System_Provider_
lea ecx, [esp + 0x1c]
call fcn.00402250
lea eax, [esp + 0x40]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46e820
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
call fcn.004121c0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402310
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x24]
mov ecx, edi
call fcn.0046e040
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.0046e0e0
test eax, eax
je 0x46e8df
mov ecx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x30]
push eax
push ecx
push SysReAllocStringLen
mov ecx, ebp
call fcn.0046e2c0
push str.Data
lea ecx, [esp + 0x18]
call fcn.0041ccd0
mov eax, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x30]
push edx
push eax
push SysReAllocStringLen
mov ecx, ebp
call fcn.0046e2c0
push str.e161255a_37c3_11d2_bcaa_00c04fd929db
lea ecx, [esp + 0x18]
call fcn.0041ccd0
mov esi, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x30]
push ecx
push esi
push SysReAllocStringLen
mov ecx, ebp
call fcn.0046e2c0
push esi
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x46e8f6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x46e916
push ebx
push esi
push edi
push SysReAllocStringLen
mov ecx, ebp
call fcn.0046e2c0
push esi
call fcn.005308f6
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46e92d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [edi - 0x10]
mov byte [esp + 0x454], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46e950
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x244]
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x35
push str.SoftwareMicrosoftProtected_Storage_System_Provider_
lea ecx, [esp + 0x1c]
call fcn.00402250
lea eax, [esp + 0x240]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46e985
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x244]
push eax
lea ecx, [esp + 0x1c]
call fcn.004121c0
push 0x2a
push str.Datae161255a_37c3_11d2_bcaa_00c04fd929db
lea ecx, [esp + 0x1c]
call fcn.004121c0
mov esi, dword [esp + 0x14]
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea eax, [esi - 0x10]
mov dword [esp + 0x454], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e9ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x44c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.00552101
add esp, 0x444
ret 4