Function at 0x408f40
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40c0f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov ebp, ecx
push str.SOFTWAREEast_GoldBird_
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x20]
push 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x410058
push eax
call esi
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x408fbb
push 0x410058
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x20]
push 1
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x410058
push eax
call esi
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x409006
push 0x410058
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.0040a5e4
lea eax, [esp + 0x1c]
mov ebx, 3
push eax
push 0xf003f
push 0
push esi
push 0x80000002
mov byte [esp + 0x44], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4090a4
push 0x77
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
push edi
push 0xff
mov dword [esp + 0x20], 0xff
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x20]
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, ebx
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push esi
push ecx
push 0
push edx
push eax
mov dword [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
je 0x409177
test esi, esi
je 0x409108
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push 0x81
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
push 0x4103f0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push esi
lea edx, [esp + 0x18]
push 0x41003c
push edx
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x4c]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.0040a632
test esi, esi
je 0x4091b8
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc