Function at 0x474c60
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4baaf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], edi
call fcn.004767b0
push 1
push 0x4e66d8
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0x4e59d8
lea ecx, [esp + 0x14]
mov dword [esp + 0x140], 1
call fcn.004ac728
mov ebx, dword [esp + 0x148]
mov byte [esp + 0x13c], 2
lea ebp, [ebx + ebx*4]
shl ebp, 2
cmp dword [ebp + 0x4e66ec], edi
je 0x474d28
push ecx
mov ecx, dword [ebp + 0x4e66f0]
mov eax, esp
mov dword [esp + 0x20], esp
lea edx, [esp + 0x1c]
mov dword [eax], ecx
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.00426e80
cmp dword [esp + 0x18], 0x78
jl 0x474d0c
cmp dword [0x4e7014], edi
jne 0x474d0c
mov dword [ebp + 0x4e66ec], edi
jmp 0x474d1c
lea ecx, [ebp + 0x4e66f8]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
cmp dword [ebp + 0x4e66ec], edi
jne 0x474e28
push 0x7d0
mov dword [esp + 0x1c], 0x7d0
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x1c], edi
push edx
push str.Software8uftp
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x474dc4
mov ecx, 0x1f4
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [ebx + ebx*8]
push eax
mov eax, dword [esp + 0x18]
push esi
push 0
lea edx, [ecx*4 + 0x4e36c4]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x474d9a
push esi
lea ecx, [esp + 0x14]
mov edi, 1
call sub.MFC42.DLL_CString::operator
jmp 0x474d9e
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x474dc4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
jne 0x474e1f
cmp ebx, 0x47
jne 0x474e1f
mov ecx, 0x1f4
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push str.Software8uftp
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x474e1f
lea ecx, [esp + 0x18]
lea edx, [ebx + ebx*8]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push eax
push eax
lea eax, [edx*4 + 0x4e36c4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x474e14
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
push 0x4e59d8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x474f2c
cmp ebx, 0x1d
jne 0x474e5b
push str.ASP_BAT_C_CFM_CGI_CONF_CPP_CSS_DHTML_DIZ_H_HPP_HTM_HTML_INC_JS_MAK_NFO_PAS_PATCH_PHTML_PINERC_PL_QMAIL_SH_SHTML_SQL_TCL_TPL_TXT_VBS_
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x474f2c
cmp ebx, 0x2c
jne 0x474e73
push str.mit.edu_
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x474f2c
cmp ebx, 0x53
jne 0x474e8b
push str.UNIX
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x474f2c
cmp ebx, 0x2f
jne 0x474ea3
push str.0_222_88_1195_704
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x474f2c
cmp ebx, 0x39
jne 0x474eb8
push str.360_111_477_477_476
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x474f2c
cmp ebx, 0x1b
jne 0x474f2c
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
xor esi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
push ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, esi
jl 0x474f2c
lea edx, [esp + 0x14]
push edx
push 5
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x474f13
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edx, [esp + 0x30]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0x4e66ec]
test eax, eax
jne 0x474f6c
lea edx, [esp + 0x1c]
mov dword [ebp + 0x4e66ec], 1
push edx
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 0x4e66f8]
mov dword [ebp + 0x4e66f0], eax
call sub.MFC42.DLL_CString::operator_1
mov dword [ebp + 0x4e66f4], 0
mov esi, dword [esp + 0x144]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x13c], 0
call sub.MFC42.DLL_CSingleLock::Unlock
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x130
ret