Function at 0x40b905
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x5ac
mov eax, 0x4201c9
call fcn.0041f415
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x5b0]
call fcn.0041de44
xor esi, esi
lea ecx, [ebp - 0x5b0]
push 4
mov dword [ebp - 4], esi
call sub.MFC42u.dll_CString::LoadStringW
push 0x28
lea eax, [ebp - 0x60]
mov dword [ebp - 0x5b4], 0x100
push eax
push 0x4036e4
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push 0x401d6c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x5b4]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x160]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x40b992
inc esi
jmp 0x40bb81
lea ecx, [ebp - 0x5a4]
call fcn.0041de44
lea ecx, [ebp - 0x5a8]
mov byte [ebp - 4], 1
call fcn.0041de44
push 0x401d80
lea ecx, [ebp - 0x5ac]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::CString_1
mov byte [ebp - 4], 3
jmp 0x40baa8
push 0x17
lea ecx, [ebp - 0x5a4]
call sub.MFC42u.dll_CString::LoadStringW
push 0x18
lea ecx, [ebp - 0x5a8]
call sub.MFC42u.dll_CString::LoadStringW
lea eax, [ebp - 0x5a8]
push eax
lea ecx, [ebp - 0x5a4]
call sub.MFC42u.dll_CString::operator
push 0x1a
lea ecx, [ebp - 0x5a8]
call sub.MFC42u.dll_CString::LoadStringW
lea eax, [ebp - 0x5a8]
push eax
lea ecx, [ebp - 0x5a4]
call sub.MFC42u.dll_CString::operator
push esi
push 4
push dword [ebp - 0x5a4]
call sub.MFC42u.dll_AfxMessageBox
cmp eax, 6
jne 0x40bb60
push ebx
push str.DLL_Files__.dll_.dllAllFiles_._.
push 0x1804
push esi
push 0x401d98
push 1
lea ecx, [ebp - 0x5a0]
call sub.MFC42u.dll_CFileDialog::CFileDialog
lea ecx, [ebp - 0x5a0]
mov byte [ebp - 4], 4
call sub.MFC42u.dll_CFileDialog::DoModal
cmp eax, 1
jne 0x40bae3
lea eax, [ebp - 0x5b8]
push eax
lea ecx, [ebp - 0x5a0]
call sub.MFC42u.dll_CFileDialog::GetPathName
push eax
lea ecx, [ebp - 0x5ac]
mov byte [ebp - 4], 5
call fcn.0041de50
lea ecx, [ebp - 0x5b8]
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x4f0]
mov byte [ebp - 4], 3
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x5a0]
call fcn.0041df7c
push dword [ebp - 0x5ac]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, 0x20
jbe 0x40b9c9
push 0x401cbc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40bb04
mov ecx, ebx
call dword [0x42486c]
call ebx
test eax, eax
jns 0x40baff
push 0x16
jmp 0x40bb06
lea ecx, [ebp - 0x4f0]
mov byte [ebp - 4], 3
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x5a0]
call fcn.0041df7c
jmp 0x40bb44
xor esi, esi
inc esi
jmp 0x40bb3d
push 0x19
lea ecx, [ebp - 0x5a4]
call sub.MFC42u.dll_CString::LoadStringW
push 0x18
lea ecx, [ebp - 0x5a8]
call sub.MFC42u.dll_CString::LoadStringW
lea eax, [ebp - 0x5a8]
push eax
lea ecx, [ebp - 0x5a4]
call sub.MFC42u.dll_CString::operator
push esi
push esi
push dword [ebp - 0x5a4]
call sub.MFC42u.dll_AfxMessageBox
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, 1
jne 0x40bb60
push 0x3d
push 0x401c90
push dword [ebp - 0x5b0]
mov ecx, 0x4238c8
call sub.MFC42u.dll_CWinApp::WriteProfileInt
lea ecx, [ebp - 0x5ac]
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x5a8]
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x5a4]
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x5b0]
call sub.MFC42u.dll_CString::CString
mov eax, esi
call fcn.0041f3c4
ret 4