Function at 0x4f05c0
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x52d58f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x37c
mov eax, dword [0x568d64]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x14], 0x104
test eax, eax
je 0x4f06a4
mov eax, 0x569080
test eax, eax
je 0x4f061a
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4f072e
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push 0x568f78
push SysReAllocString
call edi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.LastFolder
push eax
call ebp
test eax, eax
jne 0x4f065b
lea ecx, [esp + 0x28]
test ecx, ecx
jne 0x4f0694
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.DefaultFolder
push edx
call ebp
test eax, eax
jne 0x4f0684
lea eax, [esp + 0x28]
test eax, eax
jne 0x4f0694
lea ecx, [esp + 0x28]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4f072e
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareACD_SystemsACDScreenCapture
push SysReAllocString
call edi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.SCLastFolder
push ecx
call ebp
test eax, eax
jne 0x4f06e5
lea edx, [esp + 0x28]
test edx, edx
jne 0x4f072e
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
call edi
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.Desktop
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call esi
mov ebx, dword [esp + 0x39c]
test ebx, ebx
jne 0x4f0740
xor eax, eax
jmp 0x4f0a2e
lea ecx, [esp + 0x1c]
call fcn.004fdecc
push 0xfc5
lea ecx, [esp + 0x20]
mov dword [esp + 0x398], 0
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x28c]
push edx
push eax
call fcn.00472190
push 1
lea ecx, [esp + 0x298]
push 0
lea edx, [esp + 0x29c]
push ecx
push edx
call fcn.004758d0
lea eax, [esp + 0x44]
lea ecx, [esp + 0x2a4]
push eax
push ecx
call fcn.004722e0
lea edx, [esp + 0x2ac]
push edx
call fcn.00473720
push 0x18
mov esi, eax
call sub.MFC42.DLL_operatornew
add esp, 0x2c
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x394], 1
je 0x4f07d9
push ebx
mov ecx, eax
call fcn.00492f00
mov ebx, eax
jmp 0x4f07db
xor ebx, ebx
test ebx, ebx
mov byte [esp + 0x394], 0
jne 0x4f0802
lea ecx, [esp + 0x1c]
mov dword [esp + 0x394], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4f0a2e
lea ecx, [esp + 0x20]
call fcn.004fdecc
push 0xfc6
lea ecx, [esp + 0x24]
mov byte [esp + 0x398], 2
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 0x12c]
call fcn.004eda90
mov byte [esp + 0x394], 3
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x12c], eax
mov eax, dword [0x568d5c]
lea ecx, [esp + 0x28]
mov dword [esp + 0x130], eax
test esi, esi
mov dword [esp + 0x138], ebx
mov dword [esp + 0x16c], str.SoftwareACD_SystemsACDScreenCapture
mov dword [esp + 0x170], str.CapImgSaveOs
mov dword [esp + 0x168], ecx
mov dword [esp + 0x284], edx
je 0x4f0896
lea eax, [esp + 0x174]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x568d48]
xor esi, esi
test eax, eax
jle 0x4f08c7
cmp esi, eax
jge 0x4f08b4
test esi, esi
jl 0x4f08b4
mov ecx, dword [0x568d44]
mov ecx, dword [ecx + esi*4]
jmp 0x4f08b6
xor ecx, ecx
push 9
call sub.MFC42.DLL_CWnd::ShowWindow
mov eax, dword [0x568d48]
inc esi
cmp esi, eax
jl 0x4f08a5
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push str.SoftwareACD_SystemsACDScreenCapture
push SysReAllocString
call edi
test eax, eax
jne 0x4f090d
lea eax, [esp + 0x14]
lea ecx, [esp + 0x154]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push str.SCPrevFormat
push eax
mov dword [esp + 0x2c], 4
call ebp
jmp 0x4f0918
mov dword [esp + 0x154], 0x47504a
lea ecx, [esp + 0x12c]
push ecx
call fcn.004edaf0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4f09d5
lea edx, [esp + 0x10]
push edx
push 0x20006
push 0
push str.SoftwareACD_SystemsACDScreenCapture
push SysReAllocString
call edi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x154]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x24]
push 4
push ecx
push 3
push 0
push str.SCPrevFormat
push edx
mov dword [esp + 0x3c], eax
call esi
mov eax, dword [0x568d64]
test eax, eax
jne 0x4f09d5
lea eax, [esp + 0x28]
lea ecx, [esp + 0x174]
push eax
push ecx
call fcn.004722e0
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0x20006
push 0
push str.SoftwareACD_SystemsACDScreenCapture
push SysReAllocString
call edi
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
inc eax
lea ecx, [esp + 0x28]
push eax
push ecx
push 1
push 0
push str.SCLastFolder
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call fcn.00492f70
push ebx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x3a0]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x12c]
mov byte [esp + 0x394], 2
call fcn.004edae0
lea ecx, [esp + 0x20]
mov byte [esp + 0x394], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x394], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebp
mov ecx, dword [esp + 0x38c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x388
ret