Function at 0x40e6b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4205cc
call fcn.0041ef90
sub esp, 0x140
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], edi
call sub.MFC42u.DLL_CString::CString_3
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
lea esi, [edi + 0x10]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040ee6b
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x20]
je 0x40e964
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0040ec80
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::operator_2
mov esi, 0xa000
push esi
call sub.MFC42u.DLL_operatornew
pop ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], esi
call sub.MFC42u.DLL_CString::CString_3
push 0x1fe
lea eax, [ebp - 0x18]
push 0x42a8f0
push eax
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push 0
push dword [ebp - 0x18]
push VariantClear
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40e788
cmp eax, 0xea
jne 0x40e7ea
add dword [ebp - 0x24], esi
push ebx
call sub.MFC42u.DLL_operatordelete
push dword [ebp - 0x24]
call sub.MFC42u.DLL_operatornew
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
jmp 0x40e749
push ebx
call fcn.0040e65e
and dword [ebp - 0x38], 0
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebx + 0x1c]
jge 0x40e951
cmp dword [esi + 0xc], 0x1fe
jne 0x40e93a
or dword [ebp - 0x34], 0xffffffff
push esi
call fcn.0040e668
pop ecx
xor ebx, ebx
cmp ebx, dword [esi + 0x20]
jge 0x40e7db
mov ecx, dword [eax + 4]
cmp ecx, dword [edi + 0x44]
jne 0x40e7d1
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x34], ecx
push eax
call fcn.0040e672
pop ecx
inc ebx
jmp 0x40e7be
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40e80d
push dword [ebp - 0x1c]
call sub.MFC42u.DLL_operatordelete
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
fld qword [0x423358]
jmp 0x40e976
push esi
call fcn.0040e67b
pop ecx
mov dword [ebp - 0x3c], eax
xor ebx, ebx
cmp ebx, dword [esi + 0x28]
jge 0x40e93a
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + 0x10]
push eax
add esi, eax
call fcn.0040e672
mov edi, eax
push 0xff
lea eax, [ebp - 0x14c]
push eax
push esi
call fcn.0040e699
add esp, 0x10
lea ecx, [ebp - 0x30]
mov esi, eax
call sub.MFC42u.DLL_CString::CString_3
push esi
lea eax, [ebp - 0x30]
push 0x42a3c8
push eax
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::Format
mov esi, dword [ebp - 0x40]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
lea ecx, [esi + 0x30]
push eax
mov dword [ebp - 0x28], ebx
call fcn.0040ef3c
mov eax, dword [esi + 0x34]
cmp dword [ebp - 0x44], eax
je 0x40e8a2
mov eax, dword [ebp - 0x34]
mov eax, dword [edi + eax]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 0x48], ebx
call fcn.0040ed4e
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x40e916
mov eax, dword [ebp - 0x34]
mov eax, dword [edi + eax]
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], eax
fild qword [ebp - 0x2c]
mov eax, dword [ebp + 8]
cmp dword [esi + 0x40], eax
je 0x40e8d9
fstp qword [esi + 8]
mov dword [esi + 0x40], eax
fldz
fstp qword [ebp - 0x2c]
jmp 0x40e8e4
fld st(0)
fsub qword [esi + 8]
fstp qword [ebp - 0x2c]
fstp qword [esi + 8]
push dword [ebp - 0x1c]
call sub.MFC42u.DLL_operatordelete
pop ecx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
fld qword [ebp - 0x2c]
jmp 0x40e976
push dword [ebp - 0x3c]
call fcn.0040e685
pop ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x20]
inc ebx
jmp 0x40e819
push esi
call fcn.0040e672
inc dword [ebp - 0x38]
mov ebx, dword [ebp - 0x1c]
pop ecx
mov dword [ebp - 0x20], eax
mov esi, eax
jmp 0x40e798
push ebx
call sub.MFC42u.DLL_operatordelete
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
fld qword [0x423338]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4