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

Disassembly:
push 0xffffffffffffffff
push 0x4ba9c0
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.004764f0
push 1
push 0x4e7698
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0x4e6998
lea ecx, [esp + 0x14]
mov dword [esp + 0x140], 1
call fcn.004ac198
mov ebx, dword [esp + 0x148]
mov byte [esp + 0x13c], 2
lea ebp, [ebx + ebx*4]
shl ebp, 2
cmp dword [ebp + 0x4e76ac], edi
je 0x474a66
push ecx
mov ecx, dword [ebp + 0x4e76b0]
mov eax, esp
mov dword [esp + 0x20], esp
lea edx, [esp + 0x20]
mov dword [eax], ecx
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.00427350
cmp dword [eax], 0x78
jl 0x474a4a
cmp dword [0x4e7fd4], edi
jne 0x474a4a
mov dword [ebp + 0x4e76ac], edi
jmp 0x474a5a
lea ecx, [ebp + 0x4e76b8]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
cmp dword [ebp + 0x4e76ac], edi
jne 0x474b66
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 0x474b02
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 + 0x4e4684]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x474ad8
push esi
lea ecx, [esp + 0x14]
mov edi, 1
call sub.MFC42.DLL_CString::operator
jmp 0x474adc
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x474b02
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
jne 0x474b5d
cmp ebx, 0x47
jne 0x474b5d
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 0x474b5d
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 + 0x4e4684]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x474b52
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 0x4e6998
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x474c6a
cmp ebx, 0x1d
jne 0x474b99
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 0x474c6a
cmp ebx, 0x2c
jne 0x474bb1
push str.mit.edu_
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x474c6a
cmp ebx, 0x53
jne 0x474bc9
push str.UNIX
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x474c6a
cmp ebx, 0x2f
jne 0x474be1
push str.0_222_88_1195_704
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x474c6a
cmp ebx, 0x39
jne 0x474bf6
push str.360_111_477_477_476
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
jmp 0x474c6a
cmp ebx, 0x1b
jne 0x474c6a
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 0x474c6a
lea edx, [esp + 0x14]
push edx
push 5
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x474c51
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 + 0x4e76ac]
test eax, eax
jne 0x474caa
lea edx, [esp + 0x1c]
mov dword [ebp + 0x4e76ac], 1
push edx
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 0x4e76b8]
mov dword [ebp + 0x4e76b0], eax
call sub.MFC42.DLL_CString::operator_1
mov dword [ebp + 0x4e76b4], 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