Function at 0x474650
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ba980
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.004764f0
push 1
push 0x4e7698
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 + 0x4e76ac], 1
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
lea edx, [esp + 0x34]
mov dword [esi + 0x4e76b0], ecx
push edx
lea ecx, [esi + 0x4e76b8]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [0x4e7fd4]
mov dword [esi + 0x4e76b4], edi
cmp eax, edi
je 0x4748cc
push str.Settings
mov ecx, 0x4e7650
mov dword [0x4e766c], edi
mov dword [0x4e7670], edi
mov dword [0x4e7674], edi
mov dword [0x4e767c], edi
call fcn.004072e0
test al, al
jne 0x474713
push 1
push edi
push edi
push str.Settings
mov ecx, 0x4e7650
call fcn.00408e90
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x4e7650
mov byte [esp + 0x28], 2
call fcn.004073e0
lea eax, [esp + 0x30]
mov ecx, 0x4e7650
push eax
call fcn.00407340
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, 0x4e7650
call fcn.004072e0
and eax, 0xff
mov esi, eax
je 0x474828
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
lea eax, [ebx + ebx*8]
lea edi, [eax*4 + 0x4e4684]
lea ecx, [esp + 0x30]
push str.name
push ecx
mov ecx, 0x4e7650
call fcn.00478170
mov edx, dword [esp + 0x30]
push edi
push edx
mov byte [esp + 0x30], 4
call ebp
add esp, 8
test eax, eax
je 0x4747ce
push 0
mov ecx, 0x4e7650
call fcn.004072e0
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 0x47477f
jmp 0x474828
mov eax, dword [0x4e7674]
push edi
push str.name
push eax
mov ecx, 0x4e7650
call fcn.00408380
mov ecx, dword [0x4e7674]
push str.string
push str.type
push ecx
mov ecx, 0x4e7650
call fcn.00408380
mov edx, dword [esp + 0x34]
mov eax, dword [0x4e7674]
push 0
push edx
push eax
mov ecx, 0x4e7650
call fcn.004085d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x47487c
mov ecx, dword [esp + 0x34]
push 1
push 1
push ecx
push str.Item
mov ecx, 0x4e7650
call fcn.00408e90
mov ecx, dword [0x4e7674]
lea edx, [ebx + ebx*8]
lea eax, [edx*4 + 0x4e4684]
push eax
push str.name
push ecx
mov ecx, 0x4e7650
call fcn.00408380
mov edx, dword [0x4e7674]
push str.string
push str.type
push edx
mov ecx, 0x4e7650
call fcn.00408380
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, 0x4e7650
push eax
mov byte [esp + 0x2c], 5
call fcn.004071d0
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 0x47495f
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 0x474956
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 + 0x4e4684]
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