Function at 0x4091e0
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561da0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5ad124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x5b30d8]
mov dword [ebp - 0x20], 0
test al, 1
jne 0x409266
or eax, 1
mov dword [0x5b30d8], eax
call fcn.00406bf0
mov ecx, eax
test ecx, ecx
jne 0x40923a
push 0x80004005
call fcn.00406fb0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40924f
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x409251
call edx
add eax, 0x10
push 0x573090
mov dword [0x5b30dc], eax
call fcn.00507470
add esp, 4
mov eax, dword [0x5b30dc]
cmp dword [eax - 0xc], 0
jne 0x4093f5
push 0x588600
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths4KScreenRecorder_LY.exe
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
call fcn.00439b40
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov edi, dword [0x5b30dc]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x4092de
cmp dword [edi + 0xc], 0
jl 0x4092d0
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4092d0
push edx
call fcn.00405420
add esp, 4
mov ecx, edi
mov esi, eax
call fcn.00406e40
lea eax, [esi + 0x10]
mov dword [0x5b30dc], eax
jmp 0x4092de
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5b30dc
call fcn.00405500
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x409327
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x409323
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x409323
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x409327
mov ecx, edx
call esi
mov eax, dword [0x5b30dc]
cmp dword [eax - 0xc], 0
jne 0x4093f5
lea ecx, [ebp - 0x18]
call fcn.0043baf0
push eax
mov ecx, 0x5b30dc
mov dword [ebp - 4], 1
call fcn.00404b60
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00404bc0
mov eax, dword [0x5b30dc]
mov esi, eax
mov dword [ebp - 0x18], eax
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x409370
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], reloc.OLEAUT32.dll_SysReAllocString
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths4KScreenRecorder_LY.exe
sub esi, ecx
mov dword [ebp - 0x14], 0
push reloc.OLEAUT32.dll_SysReAllocString
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4093e8
mov eax, dword [ebp - 0x10]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x4093c7
push eax
call edi
mov ecx, dword [ebp - 0x14]
lea eax, [esi*2 + 2]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
push 1
push 0
push 0x588600
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x4093f5
push eax
call edi
mov eax, dword [0x5b30dc]
add eax, 0xfffffff0
push eax
call fcn.00405420
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret