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

Disassembly:
push 0xffffffffffffffff
push 0x4b9f30
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.00475e80
push 1
push 0x4e65d8
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0x4e58d8
lea ecx, [esp + 0x14]
mov dword [esp + 0x140], 1
call fcn.004abd48
mov ebx, dword [esp + 0x148]
mov byte [esp + 0x13c], 2
lea ebp, [ebx + ebx*4]
shl ebp, 2
cmp dword [ebp + 0x4e65ec], edi
je 0x4743f8
push ecx
mov ecx, dword [ebp + 0x4e65f0]
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.00426ed0
cmp dword [esp + 0x18], 0x78
jl 0x4743dc
cmp dword [0x4e6f14], edi
jne 0x4743dc
mov dword [ebp + 0x4e65ec], edi
jmp 0x4743ec
lea ecx, [ebp + 0x4e65f8]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
cmp dword [ebp + 0x4e65ec], edi
jne 0x4744f8
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 0x474494
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 + 0x4e3654]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47446a
push esi
lea ecx, [esp + 0x14]
mov edi, 1
call sub.MFC42.DLL_CString::operator
jmp 0x47446e
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x474494
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
jne 0x4744ef
cmp ebx, 0x47
jne 0x4744ef
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 0x4744ef
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 + 0x4e3654]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4744e4
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 0x4e58d8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4745fc
cmp ebx, 0x1d
jne 0x47452b
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 0x4745fc
cmp ebx, 0x2c
jne 0x474543
push str.mit.edu_
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x4745fc
cmp ebx, 0x53
jne 0x47455b
push str.UNIX
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x4745fc
cmp ebx, 0x2f
jne 0x474573
push str.0_222_88_1195_704
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x4745fc
cmp ebx, 0x39
jne 0x474588
push str.360_111_477_477_476
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x4745fc
cmp ebx, 0x1b
jne 0x4745fc
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 0x4745fc
lea edx, [esp + 0x14]
push edx
push 5
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4745e3
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 + 0x4e65ec]
test eax, eax
jne 0x47463c
lea edx, [esp + 0x1c]
mov dword [ebp + 0x4e65ec], 1
push edx
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 0x4e65f8]
mov dword [ebp + 0x4e65f0], eax
call sub.MFC42.DLL_CString::operator_1
mov dword [ebp + 0x4e65f4], 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