Function at 0x407a90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4095d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x781c
call fcn.00408560
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov edx, dword [esi + 0xc]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push ebx
or edx, 0xf003f
push edx
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x782c], bl
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ecx, ecx
add esi, 4
cmp eax, ebx
sete cl
push str.::RegCreateKeyEx_..._
mov dword [ebp - 0x1c], eax
push ecx
mov ecx, esi
call fcn.004076f0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
cmp eax, 1
jne 0x407b31
mov esi, 4
mov dword [ebp + 8], esi
lea edi, [ebx + 4]
jmp 0x407c7c
cmp eax, 2
jne 0x407b65
add ebx, 8
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], 1
call dword [0x40a13c]
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea ecx, [ebp - 0x14]
mov edi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
mov esi, eax
jmp 0x407c7c
cmp eax, 3
jne 0x407c25
lea ecx, [ebp + 0xc]
mov dword [ebp + 8], 7
xor esi, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x18]
test eax, eax
lea ecx, [ebp + 0xc]
je 0x407c0a
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Empty]
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebx + 0xc]
call sub.MFC71.DLL_CStringList::RemoveHead
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call dword [0x40a13c]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call dword [0x40a118]
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x407bfc
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
mov ebx, eax
xor edi, edi
cmp edi, ebx
jge 0x407bee
push edi
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetAt]
mov byte [ebp + esi - 0x782c], al
inc esi
inc edi
jmp 0x407bd5
mov ebx, dword [ebp + 0x14]
mov byte [ebp + esi - 0x782c], 0
inc esi
jmp 0x407b84
mov byte [ebp + esi - 0x782c], 0
inc esi
jmp 0x407b84
mov byte [ebp + esi - 0x782c], 0
inc esi
lea edi, [ebp - 0x782c]
mov byte [ebp - 4], 1
call dword [0x40a118]
jmp 0x407c7c
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x1c], 0x70c
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov eax, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea ecx, [ebp + 0x14]
push str.SC_Error_3036:_The_following_key_is_an_unrecognized_data_type:__s
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [ebp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0
mov ecx, esi
call fcn.004076f0
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call dword [0x40a118]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
push esi
push edi
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x20]
mov esi, eax
xor edx, edx
test esi, esi
sete dl
push str.::RegSetValueEx_..._
add ecx, 4
mov dword [ebp - 0x1c], esi
push edx
call fcn.004076f0
jmp 0x407cce
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
call dword [0x40a118]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10