Function at 0x402552
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4a3c4c
call fcn.0044c320
sub esp, 0x30
push ebx
push esi
lea eax, [ebp - 0x34]
push edi
push eax
call dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
mov dword [esp], 0x4b8fe4
push eax
lea eax, [ebp - 0x28]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_5
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_5
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
dec eax
je 0x4026cc
dec eax
je 0x40267d
dec eax
je 0x40262b
dec eax
jne 0x40271e
push 0x4b8fdc
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::operator_1
push 0x4b8fd0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4b8fc4
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x28]
push 0x4b8fbc
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator_2
mov byte [ebp - 4], 6
lea ecx, [ebp + 8]
jmp 0x402719
push 0x4b8fb4
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::operator_1
push 0x4b8fa4
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4b8f94
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x28]
push 0x4b8f8c
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::operator_2
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
jmp 0x402719
push 0x4b8f84
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::operator_1
push 0x4b8f74
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4b8f64
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x28]
push 0x4b8f5c
push eax
lea eax, [ebp - 0x30]
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator_2
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
jmp 0x402719
push 0x4b8f54
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::operator_1
push 0x4b8f44
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push 0x4b8f34
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x28]
push 0x4b8f2c
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::operator_2
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x18]
mov ebx, 0xf003f
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
push esi
push esi
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
mov dword [ebp - 0x10], esi
push SysReAllocStringLen
call edi
test eax, eax
jne 0x402767
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
push 1
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push esi
push esi
push esi
push dword [ebp - 0x14]
push SysReAllocStringLen
call edi
cmp eax, esi
jne 0x40289a
mov eax, dword [ebp - 0x20]
push dword [eax - 8]
push eax
push 1
push esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
push esi
push esi
push esi
push 0x4b8f20
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4027d5
mov eax, dword [ebp - 0x1c]
push dword [eax - 8]
push eax
push 1
push esi
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x38], esi
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push ebx
push esi
push esi
push esi
push 0x4b8f18
push dword [ebp - 0x10]
call edi
cmp eax, esi
jne 0x40288e
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], esi
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push ebx
push esi
push esi
push esi
push 0x4b8f10
push dword [ebp - 0x38]
call edi
cmp eax, esi
jne 0x402885
lea eax, [ebp - 0x18]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp + 8]
push eax
push esi
push ebx
push esi
push esi
push esi
push 0x4b8f08
push dword [ebp - 0x34]
call edi
cmp eax, esi
jne 0x40287c
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_5
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xb
push 0x4b8efc
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x30]
add esp, 0xc
push dword [eax - 8]
push eax
push 1
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret