Function at 0x40ff80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4138e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esp + 4]
mov dword [esp + 0x8c], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x8c], 1
call sub.MFC42.DLL_CString::CString
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x90], 2
call fcn.00407fc0
mov byte [esp + 0x8c], 3
call fcn.0040ff00
cmp eax, 4
je 0x410076
lea ecx, [esp + 0x80]
mov byte [esp + 0x8c], 5
call fcn.00411236
lea ecx, [esp + 0x7c]
mov byte [esp + 0x8c], 4
call fcn.00411236
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 2
call fcn.004113fe
lea ecx, [esp + 0xc]
mov byte [esp + 0x8c], 1
call fcn.00411236
lea ecx, [esp + 4]
mov byte [esp + 0x8c], bl
call fcn.00411236
lea ecx, [esp + 0x14]
mov dword [esp + 0x8c], 0xffffffff
call fcn.00411236
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
add esp, 0x8c
ret
lea eax, [esp + 0x10]
push esi
push eax
push 0x20019
push ebx
push 0x41b038
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410143
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], ebx
push ecx
push ebx
push ebx
push ebx
push 0x41bd28
push edx
call esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4100e9
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
push eax
push ebx
push ebx
push 0x41bd28
push edx
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push ebx
push ebx
push ebx
push 0x41b184
push ecx
mov dword [esp + 0x24], ebx
call esi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x410138
push eax
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push 0x41b184
push eax
call esi
push 0xffffffffffffffff
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 8]
cmp dword [edx - 8], ebx
jne 0x41015c
push 0x41bd1c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
jmp 0x4101b3
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.00411230
mov ecx, dword [esp + 0x10]
push 0x80
mov esi, dword [ecx - 8]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x41bd0c
push 0x41bd00
push esi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00407c10
add esp, 0x10
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 1
jne 0x410203
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 8]
push edx
push eax
call esi
add esp, 8
test eax, eax
setne cl
and ecx, 0xff
mov dword [esp + 0x1c], ecx
je 0x410203
push 0xffffffffffffffff
push 4
push 0x32
call sub.MFC42.DLL_AfxMessageBox
xor edx, edx
cmp eax, 6
sete dl
mov eax, edx
cmp eax, ebx
jne 0x4101b9
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 8]
push eax
push ecx
call esi
add esp, 8
test eax, eax
sete dl
and edx, 0xff
mov esi, edx
lea ecx, [esp + 0x84]
mov byte [esp + 0x90], 7
call fcn.00411236
lea ecx, [esp + 0x80]
mov byte [esp + 0x90], 6
call fcn.00411236
lea ecx, [esp + 0x20]
mov byte [esp + 0x90], 2
call fcn.004113fe
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 1
call fcn.00411236
lea ecx, [esp + 8]
mov byte [esp + 0x90], bl
call fcn.00411236
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xffffffff
call fcn.00411236
mov ecx, dword [esp + 0x88]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret