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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f3ef
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x608514]
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 [0x60e3b0], 0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x15c], ebx
je 0x4b833d
push ecx
mov ecx, 0x60e3b0
call fcn.004d07d0
mov eax, dword [0x60e3b0]
cmp byte [eax + 0x54], 0
je 0x4b833d
cmp dword [eax + 0x58], 4
jb 0x4b833d
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.004042c0
push 0x14
push str.Entry_EnumAllAutoRun
mov dword [ebp - 4], 0
call fcn.004047a0
push 0x1bd
push 0x5c0eb0
push str.d:_rhinopcdomain_src_system_autorun_rcautorundmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x60e3b0
push eax
push 4
call fcn.004d10e0
test bl, bl
je 0x4b8328
lea eax, [ebp - 0x28]
mov ecx, 0x60e3b0
push eax
call fcn.004d1410
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004041c0
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 0x4b83c9
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.004041c0
lea ecx, [edi + 0x58]
call fcn.004041c0
lea ecx, [edi + 0x40]
call fcn.004041c0
lea ecx, [edi + 0x28]
call fcn.004041c0
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
call fcn.004041c0
push 0x90
push edi
mov dword [ebp - 4], 3
call fcn.0054bf14
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edi, esi
cmp esi, dword [ebx]
jne 0x4b8360
push 0
push 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
call fcn.00486850
mov dword [ebp - 0x150], eax
push 0x800
mov dword [ebp - 4], 6
call fcn.0054cb4f
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.00404270
mov edx, ebx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.004b7c50
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.004041c0
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.00404270
mov edx, ebx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.004b7c50
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.004041c0
test edi, edi
je 0x4b848a
push edi
call fcn.0054cb33
add esp, 4
lea ecx, [ebp - 0x150]
mov dword [ebp - 4], 9
call fcn.004865d0
mov byte [ebp - 4], 0xb
push 0x20
push dword [ebp - 0x150]
call fcn.0054bf14
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call fcn.00415000
push 0x800
mov dword [ebp - 4], 0xc
call fcn.0054cb4f
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], VariantClear
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.00419440
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.004b7230
add esp, 0xc
lea eax, [ebp - 0x158]
mov edx, ebx
push 0
push eax
push ecx
lea ecx, [ebp - 0x170]
call fcn.004b7230
mov edi, dword [ebp - 0x158]
add esp, 0xc
mov esi, dword [edi]
cmp esi, edi
je 0x4b8b5d
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.004042c0
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.004042c0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xe
call fcn.004042c0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xf
call fcn.004042c0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call fcn.004042c0
push 0x5b57ac
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0x11
call fcn.00404270
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x12
call fcn.004a2ae0
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0x11
call fcn.004041c0
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 0x4b8677
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b8668
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0xac]
push eax
call fcn.004047a0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b8681
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.004b73d0
add esp, 0x10
test eax, eax
jne 0x4b8776
push ebx
lea ecx, [ebp - 0x28]
call fcn.00404270
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.004042c0
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0x16
call fcn.004042c0
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0x17
call fcn.004042c0
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 0x18
call fcn.004042c0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x118]
call fcn.004a2ae0
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x94]
call fcn.004bb070
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.004041c0
lea ecx, [ebp - 0xe4]
call fcn.004041c0
lea ecx, [ebp - 0xfc]
call fcn.004041c0
lea ecx, [ebp - 0x114]
call fcn.004041c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x14
call fcn.004041c0
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 0x4b87ab
mov eax, dword [edi]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0
test eax, eax
je 0x4b8a51
cmp dword [ebp - 0x13c], 0
je 0x4b8a51
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 0x4b8839
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 0x4b8839
cmp dword [ebp - 0x138], 3
mov eax, 0x3f2
cmovne ebx, eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4b884a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4b8a51
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x138], edi
jb 0x4b8868
mov eax, dword [edi]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x140], 0
test eax, eax
je 0x4b8a51
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 0x4b88e9
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 0x4b88e9
cmp dword [ebp - 0x140], 3
mov eax, 0x3f2
cmovne ebx, eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4b88fa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4b8a51
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x138], edi
jb 0x4b8918
mov eax, dword [edi]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x140], 0
test eax, eax
je 0x4b8a51
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 0x4b899c
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 0x4b899c
cmp dword [ebp - 0x140], 3
mov eax, 0x3f2
cmovne ebx, eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4b89ad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4b8a51
cmp dword [edi + 0x14], 8
jb 0x4b89bd
mov edi, dword [edi]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0
test edi, edi
je 0x4b8a51
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 0x4b8a3c
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 0x4b8a3c
cmp dword [ebp - 0x138], 3
mov eax, 0x3f2
cmovne ebx, eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4b8a4d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x4b8a5f
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.004ba500
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ecx + 4]
mov ecx, 0x1c71c70
sub ecx, edx
cmp ecx, 1
jb 0x4b8c3e
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.004041c0
lea ecx, [ebp - 0x60]
call fcn.004041c0
lea ecx, [ebp - 0x78]
call fcn.004041c0
lea ecx, [ebp - 0x90]
call fcn.004041c0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0x1c
call fcn.004041c0
mov byte [ebp - 4], 0xc
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4b8b39
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4b8b35
cmp esi, dword [eax + 8]
jne 0x4b8b35
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4b8b25
mov esi, eax
jmp 0x4b8b4f
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4b8b4f
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4b8b43
mov edi, dword [ebp - 0x158]
cmp esi, edi
jne 0x4b85a0
mov ebx, dword [ebp - 0x148]
inc ebx
mov dword [ebp - 0x148], ebx
cmp ebx, 2
jl 0x4b8520
push dword [ebp - 0x13c]
call fcn.0054cb33
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x158]
call fcn.004133d0
cmp dword [0x60e3b0], 0
je 0x4b8c1a
push ecx
mov ecx, 0x60e3b0
call fcn.004d07d0
mov eax, dword [0x60e3b0]
cmp byte [eax + 0x54], 0
je 0x4b8c1a
cmp dword [eax + 0x58], 4
jb 0x4b8c1a
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.004042c0
push 0x13
push str.Quit_EnumAllAutoRun
mov dword [ebp - 4], 0x1e
call fcn.004047a0
push 0x1fc
push 0x5c0eb0
push str.d:_rhinopcdomain_src_system_autorun_rcautorundmanager.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x60e3b0
push eax
push 4
call fcn.004d10e0
test bl, bl
je 0x4b8c0b
lea eax, [ebp - 0x28]
mov ecx, 0x60e3b0
push eax
call fcn.004d1410
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004041c0
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.0054bed3
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