Function at 0x4028e7
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4a3c88
call fcn.0044c320
sub esp, 0x24
push ebx
push edi
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push SysReAllocStringLen
call edi
cmp eax, ebx
jne 0x402ad5
push esi
lea eax, [ebp + 8]
push 0x4b8ff4
push eax
lea eax, [ebp - 0x30]
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov byte [ebp - 4], 1
push dword [eax - 8]
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
mov dword [esp], 0x4b8fe4
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
push dword [eax - 8]
push eax
push 1
push ebx
push 0x4b8e4c
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x4b8f20
push dword [ebp - 0x10]
call edi
cmp eax, ebx
jne 0x4029f3
lea eax, [ebp - 0x18]
push 0x4b8ff0
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 5
push dword [eax - 8]
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x4b8f18
push dword [ebp - 0x10]
call edi
cmp eax, ebx
jne 0x402ab4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x4b8f10
push dword [ebp - 0x2c]
call edi
cmp eax, ebx
jne 0x402aab
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x4b8f08
push dword [ebp - 0x28]
call edi
cmp eax, ebx
jne 0x402aa2
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_5
push dword [ebp - 0x18]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 6
push 0x4b8efc
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x24]
add esp, 0xc
push dword [eax - 8]
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret