Function at 0x474380
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ba940
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.004764f0
mov ebx, 1
lea ecx, [esp + 0x10]
push ebx
push 0x4e7698
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 + 0x4e76ac], ebx
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, dword [eax]
mov edi, dword [esp + 0x30]
mov dword [esi + 0x4e76b0], ecx
mov eax, dword [0x4e7fd4]
mov dword [esi + 0x4e76bc], edi
mov dword [esi + 0x4e76b4], ebx
xor esi, esi
cmp eax, esi
je 0x4745d3
push str.Settings
mov ecx, 0x4e7650
mov dword [0x4e766c], esi
mov dword [0x4e7670], esi
mov dword [0x4e7674], esi
mov dword [0x4e767c], esi
call fcn.004072e0
test al, al
jne 0x47443c
push ebx
push esi
push esi
push str.Settings
mov ecx, 0x4e7650
call fcn.00408e90
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_2
push edi
lea edx, [esp + 0x30]
push 0x4e094c
push edx
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
mov ecx, 0x4e7650
call fcn.004073e0
push esi
mov ecx, 0x4e7650
call fcn.004072e0
and eax, 0xff
mov esi, eax
je 0x474535
lea eax, [ebp + ebp*8]
lea edi, [eax*4 + 0x4e4684]
lea eax, [esp + 0x30]
push str.name
push eax
mov ecx, 0x4e7650
call fcn.00478170
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 0x4744db
push 0
mov ecx, 0x4e7650
call fcn.004072e0
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 0x474489
jmp 0x474535
mov edx, dword [0x4e7674]
push edi
push str.name
push edx
mov ecx, 0x4e7650
call fcn.00408380
mov eax, dword [0x4e7674]
push str.numeric
push str.type
push eax
mov ecx, 0x4e7650
call fcn.00408380
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x4e7674]
push 0
push ecx
push edx
mov ecx, 0x4e7650
call fcn.004085d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x474587
mov eax, dword [esp + 0x2c]
push ebx
push ebx
push eax
push str.Item
mov ecx, 0x4e7650
call fcn.00408e90
mov eax, dword [0x4e7674]
lea ecx, [ebp + ebp*8]
lea edx, [ecx*4 + 0x4e4684]
mov ecx, 0x4e7650
push edx
push str.name
push eax
call fcn.00408380
mov ecx, dword [0x4e7674]
push str.numeric
push str.type
push ecx
mov ecx, 0x4e7650
call fcn.00408380
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, 0x4e7650
push eax
mov byte [esp + 0x28], 3
call fcn.004071d0
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 0x474626
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 0x474626
lea ecx, [esp + 0x30]
lea edx, [ebp + ebp*8]
push 4
push ecx
mov ecx, dword [esp + 0x34]
push 4
lea eax, [edx*4 + 0x4e4684]
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