Function at 0x445837
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, SysReAllocStringLen
push 0x40e8e8
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
call fcn.00445004
cmp ax, 4
je 0x44591b
cmp ax, 5
je 0x44591b
cmp ax, 6
je 0x44591b
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 0x40e8b0
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, 0x40e884
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 0x445acc
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.004454f7
test eax, eax
pop ecx
je 0x445ab4
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 8]
call fcn.004450e5
push 0x104
lea eax, [ebp - 0xa28]
push 0x40e8b0
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.004451a6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call fcn.00445239
add esp, 0x38
test eax, eax
je 0x445a7a
lea eax, [ebp - 0x20]
push 0
push eax
lea eax, [ebp - 0xa28]
push eax
push ebx
call fcn.004453ea
mov edi, 0x40e87c
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.004453ea
mov edi, 0x40e854
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.004453ea
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 0x445a92
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 0x445ab4
push 0
lea eax, [ebp - 0x124]
push dword [ebp - 4]
push eax
push ebx
call fcn.004453ea
push dword [ebp - 4]
call fcn.0045c12b
add esp, 0x14
cmp dword [ebp - 8], 0
je 0x445acc
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