Function at 0x474640
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4baa70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call fcn.004767b0
mov ebx, 1
lea ecx, [esp + 0x10]
push ebx
push 0x4e66d8
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov ebp, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x28], 0
lea esi, [ebp + ebp*4]
shl esi, 2
mov dword [esi + 0x4e66ec], ebx
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
mov edi, dword [esp + 0x30]
mov dword [esi + 0x4e66f0], ecx
mov eax, dword [0x4e7014]
mov dword [esi + 0x4e66fc], edi
mov dword [esi + 0x4e66f4], ebx
xor esi, esi
cmp eax, esi
je 0x474893
push str.Settings
mov ecx, 0x4e6690
mov dword [0x4e66ac], esi
mov dword [0x4e66b0], esi
mov dword [0x4e66b4], esi
mov dword [0x4e66bc], esi
call fcn.004072b0
test al, al
jne 0x4746fc
push ebx
push esi
push esi
push str.Settings
mov ecx, 0x4e6690
call fcn.00408e60
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
push edi
lea edx, [esp + 0x30]
push 0x4df944
push edx
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
mov ecx, 0x4e6690
call fcn.004073b0
push esi
mov ecx, 0x4e6690
call fcn.004072b0
and eax, 0xff
mov esi, eax
je 0x4747f5
lea eax, [ebp + ebp*8]
lea edi, [eax*4 + 0x4e36c4]
lea eax, [esp + 0x30]
push str.name
push eax
mov ecx, 0x4e6690
call fcn.00478620
mov ecx, dword [esp + 0x30]
push edi
push ecx
mov byte [esp + 0x2c], 2
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x47479b
push 0
mov ecx, 0x4e6690
call fcn.004072b0
and eax, 0xff
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x474749
jmp 0x4747f5
mov edx, dword [0x4e66b4]
push edi
push str.name
push edx
mov ecx, 0x4e6690
call fcn.00408350
mov eax, dword [0x4e66b4]
push str.numeric
push str.type
push eax
mov ecx, 0x4e6690
call fcn.00408350
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x4e66b4]
push 0
push ecx
push edx
mov ecx, 0x4e6690
call fcn.004085a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x474847
mov eax, dword [esp + 0x2c]
push ebx
push ebx
push eax
push str.Item
mov ecx, 0x4e6690
call fcn.00408e60
mov eax, dword [0x4e66b4]
lea ecx, [ebp + ebp*8]
lea edx, [ecx*4 + 0x4e36c4]
mov ecx, 0x4e6690
push edx
push str.name
push eax
call fcn.00408350
mov ecx, dword [0x4e66b4]
push str.numeric
push str.type
push ecx
mov ecx, 0x4e6690
call fcn.00408350
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push str.8uftp.xml
add eax, 0xc8
lea edx, [esp + 0x34]
push eax
push edx
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, 0x4e6690
push eax
mov byte [esp + 0x28], 3
call fcn.004071a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
jmp 0x4748e6
lea eax, [esp + 0x2c]
push esi
push eax
push esi
push 0x20006
push esi
push esi
push esi
push str.Software8uftp
push reloc.WS2_32.dll_accept
mov dword [esp + 0x54], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4748e6
lea ecx, [esp + 0x30]
lea edx, [ebp + ebp*8]
push 4
push ecx
mov ecx, dword [esp + 0x34]
push 4
lea eax, [edx*4 + 0x4e36c4]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret