Function at 0x40c110
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x413288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 6
call sub.MFC42.DLL_CString::Empty
push 0xfd
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push eax
push ecx
call esi
add esp, 8
test eax, eax
jne 0x40c1ac
push 0x41b4b8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
jmp 0x40c21c
push 0x89
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
push edx
push eax
call esi
add esp, 8
test eax, eax
jne 0x40c1dd
push 0x41b494
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
jmp 0x40c21c
push 0xff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
push ecx
push edx
call esi
add esp, 8
test eax, eax
jne 0x40c20e
push 0x41b4a8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
jmp 0x40c21c
lea eax, [esp + 0x40]
lea ecx, [esp + 0x14]
push eax
call fcn.00411230
mov esi, dword [esp + 0x44]
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40c246
push 0x7e
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::SetAt
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40c22e
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40c272
push 0x7e
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::SetAt
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x40c256
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x41b4f4
push 0x41b038
push 0x41b1c8
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
push 0xb2
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x30]
push 0x41b548
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push 0x2001f
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c2f9
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push 0x41b534
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [esp + 0x28]
mov edi, 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push 0x41b4f4
push 0x41b038
lea edx, [esp + 0x2c]
push 0x41b520
push edx
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::Format
add esp, 0x18
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x18]
push eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0x2001f
push 0
push 0x41bec0
push 0
push edx
push SysReAllocString
call ebp
test eax, eax
jne 0x40c4bf
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x2c], 2
jne 0x40c3fb
mov eax, dword [esp + 0x18]
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov eax, edi
push eax
push ecx
lea edx, [esp + 0x18]
push 0x41b52c
push edx
inc edi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00411230
mov ecx, dword [esi]
mov edx, dword [esp + 0x14]
push ecx
push edx
push 0x41b4f4
push 0x41b038
lea eax, [esp + 0x2c]
push 0x41b520
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x18
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0x2001f
push 0
push 0x41bec0
push 0
push eax
push SysReAllocString
call ebp
test eax, eax
je 0x40c36b
jmp 0x40c4bf
cmp edi, 1
jle 0x40c441
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esi]
mov ecx, dword [esp + 0x24]
push esi
push ecx
lea edx, [esp + 0x4c]
push 0x85
push edx
mov byte [esp + 0x48], 8
call sub.MFC42.DLL_AfxFormatString2
mov eax, dword [esp + 0x44]
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 7
call fcn.00411236
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push 1
push 0
push 0
push ecx
call esi
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push 0x41b514
push edx
call esi
push 0x28
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push 0x28
push edx
push 1
push 0
push 0x41b508
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x18]
push edx
call ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 6
call fcn.00411236
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 5
call fcn.00411236
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 4
call fcn.00411236
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 3
call fcn.00411236
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.00411236
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call fcn.00411236
lea ecx, [esp + 0x48]
mov byte [esp + 0x38], 0
call fcn.00411236
lea ecx, [esp + 0x4c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00411236
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x20