Function at 0x402690
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4061d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
push 0x409ab0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push 0x409ab0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString_2
push 0x409ab0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0xc]
mov byte [esp + 0x2c], 2
push eax
push str.SOFTWARE_njubrasProject1
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4028a7
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x1a4]
call sub.MFC42.DLL_CWnd::GetWindowTextA
lea edx, [esp + 0x10]
lea ecx, [esi + 0x164]
push edx
call sub.MFC42.DLL_CWnd::GetWindowTextA
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
push ecx
call fcn.00401070
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.0040580a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x20]
push eax
call fcn.00401070
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call fcn.0040580a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0x144]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push pe_nt_image_headers32
push ecx
call ebp
cmp eax, 1
jne 0x4027f1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [eax - 8]
push ecx
push eax
push 1
push 0
push str.MyValue1
push edx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x14]
push 1
push 0
push str.MyValue2
push eax
jmp 0x402823
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0x409ab0
push 1
push 0
push str.MyValue1
push ecx
call edi
mov edx, dword [esp + 0xc]
push 1
push 0x409ab0
push 1
push 0
push str.MyValue2
push edx
call edi
mov eax, dword [esi + 0x104]
push 0
push 0
push pe_nt_image_headers32
push eax
call ebp
cmp eax, 1
push 1
jne 0x402853
mov ecx, dword [esp + 0x10]
push 0x409050
push 1
push 0
push str.MyValue3
push ecx
jmp 0x402866
mov edx, dword [esp + 0x10]
push 0x409034
push 1
push 0
push str.MyValue3
push edx
call edi
mov eax, dword [esi + 0x144]
push 0
push 0
push pe_nt_image_headers32
push eax
call ebp
lea edx, [esp + 0x20]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [esp + 0x14]
push 4
push 0
push str.RadioCheck
setne cl
push eax
mov dword [esp + 0x38], ecx
call edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x24
ret