Function at 0x474910
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4baab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x28], edi
call fcn.004767b0
push 1
push 0x4e66d8
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x2c], 1
lea esi, [ebx + ebx*4]
shl esi, 2
mov dword [esi + 0x4e66ec], 1
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
lea edx, [esp + 0x34]
mov dword [esi + 0x4e66f0], ecx
push edx
lea ecx, [esi + 0x4e66f8]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [0x4e7014]
mov dword [esi + 0x4e66f4], edi
cmp eax, edi
je 0x474b8c
push str.Settings
mov ecx, 0x4e6690
mov dword [0x4e66ac], edi
mov dword [0x4e66b0], edi
mov dword [0x4e66b4], edi
mov dword [0x4e66bc], edi
call fcn.004072b0
test al, al
jne 0x4749d3
push 1
push edi
push edi
push str.Settings
mov ecx, 0x4e6690
call fcn.00408e60
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x4e6690
mov byte [esp + 0x28], 2
call fcn.004073b0
lea eax, [esp + 0x30]
mov ecx, 0x4e6690
push eax
call fcn.00407310
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
push edi
mov ecx, 0x4e6690
call fcn.004072b0
and eax, 0xff
mov esi, eax
je 0x474ae8
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
lea eax, [ebx + ebx*8]
lea edi, [eax*4 + 0x4e36c4]
lea ecx, [esp + 0x30]
push str.name
push ecx
mov ecx, 0x4e6690
call fcn.00478620
mov edx, dword [esp + 0x30]
push edi
push edx
mov byte [esp + 0x30], 4
call ebp
add esp, 8
test eax, eax
je 0x474a8e
push 0
mov ecx, 0x4e6690
call fcn.004072b0
and eax, 0xff
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x474a3f
jmp 0x474ae8
mov eax, dword [0x4e66b4]
push edi
push str.name
push eax
mov ecx, 0x4e6690
call fcn.00408350
mov ecx, dword [0x4e66b4]
push str.string
push str.type
push ecx
mov ecx, 0x4e6690
call fcn.00408350
mov edx, dword [esp + 0x34]
mov eax, dword [0x4e66b4]
push 0
push edx
push eax
mov ecx, 0x4e6690
call fcn.004085a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x474b3c
mov ecx, dword [esp + 0x34]
push 1
push 1
push ecx
push str.Item
mov ecx, 0x4e6690
call fcn.00408e60
mov ecx, dword [0x4e66b4]
lea edx, [ebx + ebx*8]
lea eax, [edx*4 + 0x4e36c4]
push eax
push str.name
push ecx
mov ecx, 0x4e6690
call fcn.00408350
mov edx, dword [0x4e66b4]
push str.string
push str.type
push edx
mov ecx, 0x4e6690
call fcn.00408350
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push str.8uftp.xml
add eax, 0xc8
push eax
lea eax, [esp + 0x38]
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, 0x4e6690
push eax
mov byte [esp + 0x2c], 5
call fcn.004071a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
jmp 0x474c1f
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x38]
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, ebp
lea eax, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0
push 0x20006
mov ecx, edx
push 0
push 0
and ecx, 3
push 0
push str.Software8uftp
push reloc.WS2_32.dll_accept
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x474c16
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [ebx + ebx*8]
push ebp
push 1
push eax
mov eax, dword [esp + 0x40]
lea edx, [ecx*4 + 0x4e36c4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CSingleLock::Unlock
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret