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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa28
push ebx
push esi
push edi
mov ebx, SysReAllocString
push 0x40ec38
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
call fcn.004458dc
cmp ax, 4
je 0x4461f6
cmp ax, 5
je 0x4461f6
cmp ax, 6
je 0x4461f6
lea eax, [ebp - 4]
mov esi, 0x104
push eax
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push esi
lea eax, [ebp - 0xa28]
push 0x40ec00
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
or edx, 0xffffffff
lea edi, [ebp - 0x124]
mov ecx, edx
xor eax, eax
add esp, 0xc
lea ebx, [ebp - 0xa28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
mov ecx, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [ebp - 0xa28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40ebd4
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
mov ecx, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0xa28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
jmp 0x4463a7
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00445dcf
test eax, eax
pop ecx
je 0x44638f
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 8]
call fcn.004459bd
push 0x104
lea eax, [ebp - 0xa28]
push 0x40ec00
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [ebp - 0x228]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xa28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xa28]
mov ecx, edx
push eax
and ecx, 3
lea eax, [ebp - 0x124]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.00445a7e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call fcn.00445b11
add esp, 0x38
test eax, eax
je 0x446355
lea eax, [ebp - 0x20]
push 0
push eax
lea eax, [ebp - 0xa28]
push eax
push ebx
call fcn.00445cc2
mov edi, 0x40ebcc
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xa28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20]
mov ecx, edx
push eax
lea eax, [ebp - 0xa28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00445cc2
mov edi, 0x40eba4
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xa28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20]
mov ecx, edx
push eax
lea eax, [ebp - 0xa28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00445cc2
add esp, 0x30
lea eax, [ebp - 0xa28]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x44636d
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], esi
je 0x44638f
push 0
lea eax, [ebp - 0x124]
push dword [ebp - 4]
push eax
push ebx
call fcn.00445cc2
push dword [ebp - 4]
call fcn.0045cf75
add esp, 0x14
cmp dword [ebp - 8], 0
je 0x4463a7
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
leave
ret