Function at 0x10165e8
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov eax, 0x1024a4f
call fcn.0101d5b8
sub esp, 0x18
mov eax, dword [0x1029044]
push ebx
push esi
push edi
mov esi, 0x1029044
cmp eax, esi
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, 0x1001fd4
je 0x1016624
test byte [eax + 0x1c], 4
je 0x1016624
push ebx
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b55
push 0
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
mov dword [ebp - 0x18], eax
push eax
push eax
push 0x2001f
push eax
push eax
push 0x10020a0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], eax
call fcn.01006d70
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x101667b
test byte [eax + 0x1c], 8
je 0x101667b
cmp byte [eax + 0x19], 4
jb 0x101667b
push dword [ebp - 0x1c]
push ebx
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x101681f
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x10166bc
test byte [eax + 0x1c], 8
je 0x10166bc
cmp byte [eax + 0x19], 4
jb 0x10166bc
push dword [ebp - 0x14]
push ebx
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
cmp dword [ebp - 0x14], 0
jl 0x101681f
xor eax, eax
cmp word [ebp - 0x10], 0xffff
sete al
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x54]
mov eax, dword [eax + 0x48]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x101670c
test byte [eax + 0x1c], 8
je 0x101670c
cmp byte [eax + 0x19], 4
jb 0x101670c
push dword [ebp - 0x14]
push ebx
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
cmp dword [ebp - 0x1c], 0
jne 0x101681f
cmp dword [ebp - 0x14], 0
jl 0x101681f
cmp word [ebp - 0x20], 0xffff
jne 0x10167ec
mov edi, 0x1029278
push edi
lea ecx, [ebp - 0x1c]
call fcn.0101e4ea
lea eax, [ebp - 0x1c]
push eax
push dword [0x102920c]
mov byte [ebp - 4], 1
call fcn.0101edc5
mov dword [ebp - 0x14], eax
mov eax, dword [0x1029044]
cmp eax, esi
je 0x1016775
test byte [eax + 0x1c], 8
je 0x1016775
cmp byte [eax + 0x19], 4
jb 0x1016775
push dword [ebp - 0x14]
push ebx
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b7b
cmp dword [ebp - 0x14], 0
jl 0x10167dc
push edi
lea ecx, [ebp - 0x20]
call fcn.0101e4ea
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push 0x100207c
push eax
mov byte [ebp - 4], 2
call fcn.010165cd
mov edi, dword [ebp - 0x20]
add esp, 0xc
push 1
push edi
push 0x100204c
lea ecx, [ebp - 0x18]
call fcn.01015b5f
mov ecx, dword [0x1029044]
cmp ecx, esi
je 0x10167d4
test byte [ecx + 0x1c], 8
je 0x10167d4
cmp byte [ecx + 0x19], 4
jb 0x10167d4
push eax
push ebx
push 0x1d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002b7b
lea ecx, [edi - 0x10]
call fcn.01003026
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.01003026
mov edi, dword [ebp - 0x24]
jmp 0x101681f
push 0x100204c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x1029044]
cmp ecx, esi
je 0x101681f
test byte [ecx + 0x1c], 8
je 0x101681f
cmp byte [ecx + 0x19], 4
jb 0x101681f
push eax
push ebx
push 0x1e
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002b7b
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [0x1029044]
cmp eax, esi
je 0x101684b
test byte [eax + 0x1c], 4
je 0x101684b
cmp byte [eax + 0x19], 5
jb 0x101684b
push ebx
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002b55
lea ecx, [ebp - 0x18]
call fcn.01005b81
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10