Function at 0x4b7810
Capabilities:
Get common file path
Get startup folder
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595fff
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x620514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x6263f0], 0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x15c], ebx
je 0x4b78dd
push ecx
mov ecx, 0x6263f0
call fcn.004cfdb0
mov eax, dword [0x6263f0]
cmp byte [eax + 0x54], 0
je 0x4b78dd
cmp dword [eax + 0x58], 4
jb 0x4b78dd
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.00404420
push 0x14
push str.Entry_EnumAllAutoRun
mov dword [ebp - 4], 0
call fcn.00404900
push 0x1bd
push str.RC::DM::RCAutoRunDManager::EnumAllAutoRun
push str.d:workcode_git_rhinopcdomain_src_system_autorun_rcautorundmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x6263f0
push eax
push 4
call fcn.004d06c0
test bl, bl
je 0x4b78c8
lea eax, [ebp - 0x28]
mov ecx, 0x6263f0
push eax
call fcn.004d09f0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00404320
mov ebx, dword [ebp - 0x15c]
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0
mov eax, dword [ebx]
mov edi, dword [eax]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov dword [ebx + 4], 0
cmp edi, dword [ebx]
je 0x4b7969
mov esi, dword [edi]
mov dword [ebp - 4], 1
mov dword [edi + 8], vtable.RC::DM::RCAutoRun.0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x70]
mov dword [edi + 0x24], vtable.RC::DM::RCDMFilePath.0
call fcn.00404320
lea ecx, [edi + 0x58]
call fcn.00404320
lea ecx, [edi + 0x40]
call fcn.00404320
lea ecx, [edi + 0x28]
call fcn.00404320
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
call fcn.00404320
push 0x90
push edi
mov dword [ebp - 4], 3
call fcn.0055e874
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edi, esi
cmp esi, dword [ebx]
jne 0x4b7900
push 0
push 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
call fcn.00485e20
mov dword [ebp - 0x150], eax
push 0x800
mov dword [ebp - 4], 6
call fcn.0055f4af
push 0x800
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0x10
push 0
push 7
push edi
push 0
call esi
push edi
lea ecx, [ebp - 0x28]
call fcn.004043d0
mov edx, ebx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.004b71f0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00404320
push 0x800
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0x18
push edi
push 0
call esi
push edi
lea ecx, [ebp - 0x28]
call fcn.004043d0
mov edx, ebx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.004b71f0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00404320
test edi, edi
je 0x4b7a2a
push edi
call fcn.0055f493
add esp, 4
lea ecx, [ebp - 0x150]
mov dword [ebp - 4], 9
call fcn.00485ba0
mov byte [ebp - 4], 0xb
push 0x20
push dword [ebp - 0x150]
call fcn.0055e874
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call fcn.00415290
push 0x800
mov dword [ebp - 4], 0xc
call fcn.0055f4af
push 0x800
push 0
push eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x144], 0x400
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp - 0x158]
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x150], SysStringLen
mov dword [ebp - 0x14c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x148], ebx
nop word [eax + eax]
push dword [edi + 4]
lea ecx, [ebp - 0x158]
call fcn.004196d0
mov eax, dword [ebp - 0x158]
mov ebx, dword [ebp + ebx*4 - 0x150]
mov edx, ebx
push 1
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x158]
mov dword [eax], edi
mov eax, dword [ebp - 0x158]
mov dword [eax + 8], edi
lea eax, [ebp - 0x158]
push eax
push ecx
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x154], 0
call fcn.004b67d0
add esp, 0xc
lea eax, [ebp - 0x158]
mov edx, ebx
push 0
push eax
push ecx
lea ecx, [ebp - 0x170]
call fcn.004b67d0
mov edi, dword [ebp - 0x158]
add esp, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x4b80fd
nop dword [eax]
mov dword [ebp - 0xb0], vtable.RC::DM::ISerialization.0
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xb0], vtable.RC::DM::RCAutoRun.0
call fcn.00404420
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], vtable.RC::DM::ISerialization.0
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x94], vtable.RC::DM::RCDMFilePath.0
call fcn.00404420
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xe
call fcn.00404420
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xf
call fcn.00404420
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call fcn.00404420
push 0x5ce2cc
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0x11
call fcn.004043d0
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x12
call fcn.004a20a0
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0x11
call fcn.00404320
mov byte [ebp - 4], 0x13
mov byte [ebp - 0x2c], 1
lea edi, [esi + 0x10]
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0xac]
cmp eax, edi
je 0x4b7c17
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b7c08
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0xac]
push eax
call fcn.00404900
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b7c21
mov eax, dword [edi]
mov ebx, dword [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push ebx
push eax
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp + eax*4 - 0x150]
call fcn.004b6970
add esp, 0x10
test eax, eax
jne 0x4b7d16
push ebx
lea ecx, [ebp - 0x28]
call fcn.004043d0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x114]
mov dword [ebp - method.Poco::Any::ValueHolder.virtual_4], vtable.RC::DM::ISerialization.0
mov dword [ebp - method.RC::DM::RCDMFilePath.virtual_0], vtable.RC::DM::RCDMFilePath.0
call fcn.00404420
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x16
call fcn.00404420
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0x17
call fcn.00404420
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x18
call fcn.00404420
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x118]
call fcn.004a20a0
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x94]
call fcn.004ba610
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0xcc]
mov dword [ebp - method.RC::DM::RCDMFilePath.virtual_0], vtable.RC::DM::RCDMFilePath.0
call fcn.00404320
lea ecx, [ebp - 0xe4]
call fcn.00404320
lea ecx, [ebp - 0xfc]
call fcn.00404320
lea ecx, [ebp - 0x114]
call fcn.00404320
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x14
call fcn.00404320
push 0x800
push 0
push dword [ebp - 0x13c]
mov dword [ebp - 0x144], 0x400
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x140], edi
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b7d4b
mov eax, dword [edi]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0
test eax, eax
je 0x4b7ff1
cmp dword [ebp - 0x13c], 0
je 0x4b7ff1
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x148]
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
push dword [ebp + eax*4 - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x4b7dd9
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x13c]
lea eax, [ebp - 0x138]
push eax
push ebx
push dword [ebp - 0x140]
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x4b7dd9
cmp dword [ebp - 0x138], 3
mov eax, 0x3f2
cmovne ebx, eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4b7dea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4b7ff1
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x138], edi
jb 0x4b7e08
mov eax, dword [edi]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x140], 0
test eax, eax
je 0x4b7ff1
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x148]
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun32
push dword [ebp + eax*4 - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x4b7e89
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x13c]
lea eax, [ebp - 0x140]
push eax
push ebx
push dword [ebp - 0x138]
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x4b7e89
cmp dword [ebp - 0x140], 3
mov eax, 0x3f2
cmovne ebx, eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4b7e9a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4b7ff1
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x138], edi
jb 0x4b7eb8
mov eax, dword [edi]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x140], 0
test eax, eax
je 0x4b7ff1
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x148]
push 0x101
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
push dword [ebp + eax*4 - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x4b7f3c
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x13c]
lea eax, [ebp - 0x140]
push eax
push ebx
push dword [ebp - 0x138]
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x4b7f3c
cmp dword [ebp - 0x140], 3
mov eax, 0x3f2
cmovne ebx, eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4b7f4d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4b7ff1
cmp dword [edi + 0x14], 8
jb 0x4b7f5d
mov edi, dword [edi]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0
test edi, edi
je 0x4b7ff1
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x148]
push 0x101
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun32
push dword [ebp + eax*4 - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x4b7fdc
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x13c]
lea eax, [ebp - 0x138]
push eax
push ebx
push edi
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x4b7fdc
cmp dword [ebp - 0x138], 3
mov eax, 0x3f2
cmovne ebx, eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4b7fed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4b7fff
mov edi, dword [ebp - 0x13c]
cmp word [edi], 3
setne byte [ebp - 0x2c]
mov eax, dword [ebp - 0x15c]
mov edi, dword [eax]
lea eax, [ebp - 0xb0]
push eax
mov ebx, dword [edi + 4]
push ebx
push edi
call fcn.004b9aa0
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ecx + 4]
mov ecx, 0x1c71c70
sub ecx, edx
cmp ecx, 1
jb 0x4b81de
lea ecx, [edx + 1]
mov edx, dword [ebp - 0x15c]
push 0x800
push 0
push dword [ebp - 0x13c]
mov dword [edx + 4], ecx
mov dword [edi + 4], eax
mov dword [ebx], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x144], 0x400
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0xb0], vtable.RC::DM::RCAutoRun.0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x94], vtable.RC::DM::RCDMFilePath.0
call fcn.00404320
lea ecx, [ebp - 0x60]
call fcn.00404320
lea ecx, [ebp - 0x78]
call fcn.00404320
lea ecx, [ebp - 0x90]
call fcn.00404320
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0x1c
call fcn.00404320
mov byte [ebp - 4], 0xc
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4b80d9
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4b80d5
cmp esi, dword [eax + 8]
jne 0x4b80d5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4b80c5
mov esi, eax
jmp 0x4b80ef
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4b80ef
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4b80e3
mov edi, dword [ebp - 0x158]
cmp esi, edi
jne 0x4b7b40
mov ebx, dword [ebp - 0x148]
inc ebx
mov dword [ebp - 0x148], ebx
cmp ebx, 2
jl 0x4b7ac0
push dword [ebp - 0x13c]
call fcn.0055f493
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call fcn.00413640
cmp dword [0x6263f0], 0
je 0x4b81ba
push ecx
mov ecx, 0x6263f0
call fcn.004cfdb0
mov eax, dword [0x6263f0]
cmp byte [eax + 0x54], 0
je 0x4b81ba
cmp dword [eax + 0x58], 4
jb 0x4b81ba
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.00404420
push 0x13
push str.Quit_EnumAllAutoRun
mov dword [ebp - 4], 0x1e
call fcn.00404900
push 0x1fc
push str.RC::DM::RCAutoRunDManager::EnumAllAutoRun
push str.d:workcode_git_rhinopcdomain_src_system_autorun_rcautorundmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x6263f0
push eax
push 4
call fcn.004d06c0
test bl, bl
je 0x4b81ab
lea eax, [ebp - 0x28]
mov ecx, 0x6263f0
push eax
call fcn.004d09f0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00404320
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e833
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
int3