Function at 0x403af0
Capabilities:
Delete registry value
Persist via run registry key
Persist via winlogon helper dll registry key
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
sub esp, 0x268
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
call fcn.0040c916
mov ebp, 0x80
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x30], 0x100
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x10]
push 0x4117fc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x10]
push 1
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
lea ecx, [esp + 0x44]
push 0xffffffffffffffff
push 0
call sub.MFC42.DLL_CStringArray::SetSize
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push 0
push 0
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x403d47
mov ebx, 1
xor esi, esi
lea edx, [esp + 0x30]
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x4c]
push 0
lea eax, [esp + 0x188]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x50], 0x100
call edi
cmp eax, 0x103
je 0x403c8a
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x403c01
cmp eax, 2
jne 0x403c84
push ecx
lea edx, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x403c84
lea eax, [esp + 0x78]
lea ecx, [esp + 0x178]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x4117a0
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x284]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x403c84
lea eax, [esp + 0x178]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
inc esi
jmp 0x403bb2
test ebx, ebx
jne 0x403d3a
mov eax, dword [esp + 0x27c]
test eax, eax
je 0x403d3a
mov eax, dword [esp + 0x4c]
xor esi, esi
test eax, eax
jle 0x403d3a
lea eax, [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0x4c]
call fcn.00401d00
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x403d00
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push 0x411780
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x403d19
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push 0x411760
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x54]
add esp, 8
inc esi
cmp esi, eax
jl 0x403caf
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403d4b
mov ebx, dword [esp + 0x24]
xor edx, edx
push 0xffffffffffffffff
test ebx, ebx
sete dl
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], edx
call sub.MFC42.DLL_CStringArray::SetSize
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push 0xf003f
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403f36
mov ebx, 1
xor esi, esi
lea ecx, [esp + 0x30]
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push 0
lea edx, [esp + 0x188]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x50], 0x100
call edi
cmp eax, 0x103
je 0x403e7b
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x403df2
cmp eax, 2
jne 0x403e75
push ecx
lea edx, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x403e75
lea eax, [esp + 0x78]
lea ecx, [esp + 0x178]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x4117a0
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x284]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x403e75
lea eax, [esp + 0x178]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
inc esi
jmp 0x403da3
test ebx, ebx
jne 0x403f2b
mov eax, dword [esp + 0x27c]
test eax, eax
je 0x403f2b
mov eax, dword [esp + 0x4c]
xor esi, esi
test eax, eax
jle 0x403f2b
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x4c]
call fcn.00401d00
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x403ef1
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push 0x411780
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x403f0a
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push 0x411760
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x54]
add esp, 8
inc esi
cmp esi, eax
jl 0x403ea0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x34]
xor edx, edx
test ebx, ebx
sete dl
or esi, edx
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], esi
call sub.MFC42.DLL_CStringArray::SetSize
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push 0xf003f
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404127
mov ebx, 1
xor esi, esi
lea ecx, [esp + 0x30]
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push 0
lea edx, [esp + 0x188]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x50], 0x100
call edi
cmp eax, 0x103
je 0x40406c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x403fe3
cmp eax, 2
jne 0x404066
push ecx
lea edx, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x404066
lea eax, [esp + 0x78]
lea ecx, [esp + 0x178]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x4117a0
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x284]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x404066
lea eax, [esp + 0x178]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
inc esi
jmp 0x403f94
test ebx, ebx
jne 0x40411c
mov eax, dword [esp + 0x27c]
test eax, eax
je 0x40411c
mov eax, dword [esp + 0x4c]
xor esi, esi
test eax, eax
jle 0x40411c
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x4c]
call fcn.00401d00
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4040e2
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push 0x411780
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x4040fb
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push 0x411760
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x54]
add esp, 8
inc esi
cmp esi, eax
jl 0x404091
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x34]
xor edx, edx
test ebx, ebx
sete dl
or esi, edx
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], esi
call sub.MFC42.DLL_CStringArray::SetSize
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push 0xf003f
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40431a
mov ebx, 1
xor esi, esi
lea ecx, [esp + 0x30]
lea edx, [esp + 0x78]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push 0
lea edx, [esp + 0x188]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x50], 0x100
call edi
cmp eax, 0x103
je 0x40425d
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x4041d4
cmp eax, 2
jne 0x404257
push ecx
lea edx, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x404257
lea eax, [esp + 0x78]
lea ecx, [esp + 0x178]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x4117a0
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x284]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x404257
lea eax, [esp + 0x178]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
inc esi
jmp 0x404185
test ebx, ebx
jne 0x40430f
mov eax, dword [esp + 0x27c]
test eax, eax
je 0x40430f
mov eax, dword [esp + 0x4c]
xor esi, esi
test eax, eax
jle 0x40430f
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x4c]
call fcn.00401d00
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call edi
test eax, eax
jne 0x4042d5
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push 0x411780
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x4042ee
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push 0x411760
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x54]
add esp, 8
inc esi
cmp esi, eax
jl 0x404288
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x34]
xor edx, edx
test ebx, ebx
sete dl
or ebp, edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x34], ebp
call fcn.0040ca48
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CStringArray::SetSize
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push 0xf003f
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404707
lea ecx, [esp + 0x30]
lea edx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push edx
push eax
push 0
push str.Startup
push ecx
mov dword [esp + 0x48], 0x100
call ebp
test eax, eax
jne 0x404618
lea edx, [esp + 0x78]
lea eax, [esp + 0x14]
push edx
push str._s.lnk
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4044f5
mov edi, dword [esp + 0x27c]
xor esi, esi
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
test eax, eax
jne 0x404410
mov esi, 1
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x1f8]
lea ecx, [esp + 0x14]
push edx
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.004013f0
add esp, 8
test eax, eax
jne 0x4044e4
push ecx
lea eax, [esp + 0x1fc]
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x4044e4
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1f8]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x41169c
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
xor ebx, ebx
test edi, edi
je 0x4044e4
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
test esi, esi
je 0x4043fe
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x78]
lea edx, [esp + 0x14]
push ecx
push str._s.
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x404618
mov edi, dword [esp + 0x27c]
xor esi, esi
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
test eax, eax
jne 0x404546
mov esi, 1
lea eax, [esp + 0x24]
lea ecx, [esp + 0x5c]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
push str..lnk
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
test eax, eax
jle 0x404583
test esi, esi
jne 0x40460f
jmp 0x404534
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call fcn.0040c9c4
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x404607
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x5c]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push 0x411664
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
xor ebx, ebx
test edi, edi
je 0x404607
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
test esi, esi
je 0x404534
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CFileFind::Close
test ebx, ebx
jne 0x4046fc
mov eax, dword [esp + 0x27c]
test eax, eax
je 0x4046fc
mov eax, dword [esp + 0x4c]
xor esi, esi
test eax, eax
jle 0x4046fc
lea edx, [esp + 0x24]
push esi
push edx
lea ecx, [esp + 0x4c]
call fcn.00401d00
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push eax
call fcn.00401330
add esp, 4
test eax, eax
je 0x4046c2
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push 0x411648
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x4046db
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0x41162c
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x54]
add esp, 8
inc esi
cmp esi, eax
jl 0x40463d
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x34]
xor eax, eax
test ebx, ebx
sete al
or edi, eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [esp + 0x2c]
mov dword [esp + 0x38], edi
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push 0
push 0
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404a76
lea edx, [esp + 0x30]
lea eax, [esp + 0x78]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push eax
push ecx
push 0
push str.Common_Startup
push edx
mov dword [esp + 0x48], 0x100
call ebp
test eax, eax
jne 0x404a6b
lea eax, [esp + 0x78]
lea ecx, [esp + 0x14]
push eax
push str._s.lnk
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4048fe
mov edi, dword [esp + 0x27c]
xor esi, esi
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
test eax, eax
jne 0x4047cf
mov esi, 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x5c]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1f8]
lea ecx, [esp + 0x14]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.004013f0
add esp, 8
test eax, eax
jne 0x4048ed
push ecx
lea edx, [esp + 0x1fc]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x4048ed
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x5c]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1f8]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x4115e0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
xor ebx, ebx
test edi, edi
je 0x4048ed
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00401330
add esp, 4
test eax, eax
je 0x4048c0
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 0x411648
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x4048d9
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push 0x41162c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
test esi, esi
je 0x4047bd
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CFileFind::Close
lea eax, [esp + 0x78]
lea ecx, [esp + 0x14]
push eax
push str._s.
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x404a6b
mov edi, dword [esp + 0x27c]
xor esi, esi
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
test eax, eax
jne 0x40494f
mov esi, 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x5c]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
push str..lnk
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
test eax, eax
jle 0x40498c
test esi, esi
jne 0x404a62
jmp 0x40493d
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.0040c9c4
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x404a5a
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 0x4115b0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
xor ebx, ebx
test edi, edi
je 0x404a5a
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00401330
add esp, 4
test eax, eax
je 0x404a2d
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 0x411648
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x404a46
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push 0x41162c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
test esi, esi
je 0x40493d
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x34]
xor ecx, ecx
test ebx, ebx
sete cl
or edx, ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], edx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x4277a8]
test eax, eax
jne 0x404aa0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
jmp 0x404aa5
push str.SOFTWAREMicrosoftWindowsCurrentVersionWinlogon
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x28]
push edx
push 0xf003f
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404d95
lea eax, [esp + 0x30]
lea ecx, [esp + 0x78]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push ecx
push edx
push 0
push 0x411250
push eax
mov dword [esp + 0x48], 0x100
call ebp
test eax, eax
jne 0x404d95
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::operator
push 0x411114
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::TrimLeft_1
push 0x411114
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::TrimRight_1
push 0x411114
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jle 0x404b68
lea edx, [esp + 0x24]
push esi
push edx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
jmp 0x404b76
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x18]
push str.Explorer.exe
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x404c66
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call fcn.0040c9c4
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x404d95
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0x411510
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x284]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x404d95
mov edi, str.Explorer.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x7c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push 0x411250
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404d68
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push 0x4114fc
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x404d81
test esi, esi
jle 0x404d95
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call fcn.0040c9c4
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x404d95
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0x4114d8
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 4
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [esp + 0x284]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x404d95
mov edi, str.Explorer.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x7c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push 0x411250
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404d68
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push 0x4114fc
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
jmp 0x404d81
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0x4114c4
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
mov eax, dword [esp + 0x34]
xor edx, edx
test ebx, ebx
sete dl
or edx, eax
jne 0x404db0
lea eax, [esp + 0x10]
push 0x411498
push eax
jmp 0x404dba
lea ecx, [esp + 0x10]
push 0x411478
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x10]
push 1
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
call fcn.0040c91c
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x268
ret