Function at 0x406250
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x414ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x78]
mov ebp, dword [sym.imp.MSVCRT.dll_wcscmp]
push str.HKEY_CLASSES_ROOT
push eax
mov dword [esp + 0x74], 3
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 8
test eax, eax
je 0x4062aa
mov ecx, dword [esp + 0x78]
push str.HKCR
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4062c2
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push 0x80000000
call esi
mov ecx, dword [esp + 0x78]
push str.HKEY_CURRENT_USER
push ecx
call ebp
add esp, 8
test eax, eax
je 0x4062e8
mov edx, dword [esp + 0x78]
push str.HKCU
push edx
call ebp
add esp, 8
test eax, eax
jne 0x406300
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push ecx
push 0x80000001
call esi
mov edx, dword [esp + 0x78]
push str.HKEY_LOCAL_MACHINE
push edx
call ebp
add esp, 8
test eax, eax
je 0x406326
mov eax, dword [esp + 0x78]
push str.HKLM
push eax
call ebp
add esp, 8
test eax, eax
jne 0x40633e
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call esi
mov eax, dword [esp + 0x78]
push str.HKEY_USERS
push eax
call ebp
add esp, 8
test eax, eax
je 0x406364
mov ecx, dword [esp + 0x78]
push 0x41baf4
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40637c
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push 0x80000003
call esi
mov ecx, dword [esp + 0x78]
push str.HKEY_CURRENT_CONFIG
push ecx
call ebp
add esp, 8
test eax, eax
je 0x4063a2
mov edx, dword [esp + 0x78]
push str.HKCC
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4063ba
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push ecx
push 0x80000005
call esi
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
push eax
push ecx
call edi
test eax, eax
je 0x4063ee
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4069a4
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x20]
mov esi, eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x34]
push esi
push edx
push 0
push eax
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x2c]
call fcn.00413970
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 4
call fcn.00413970
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 5
call fcn.00413970
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 6
call fcn.00413970
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 7
call fcn.00413970
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 8
call fcn.00413970
lea eax, [esp + 0x74]
mov bl, 9
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], bl
call sub.MFC42u.DLL_CString::operator
push 0x41b354
push 0x41b02c
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CString::Replace
lea ecx, [esp + 0x24]
push str..reg
push ecx
push str.Regs_
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 0x41b778
call sub.MFC42u.DLL_CString::CString_1
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x54]
push edx
call fcn.0040e300
push eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x80], 0xa
call sub.MFC42u.DLL_operator
lea ecx, [esp + 0x44]
push eax
push ecx
mov byte [esp + 0x7c], 0xb
call sub.MFC42u.DLL_operator_2
mov byte [esp + 0x70], 0xc
push eax
lea edx, [esp + 0x40]
push edx
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 0xd
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 0xc
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0xb
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], 0xa
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x30]
dec eax
je 0x40662a
sub eax, 3
je 0x406602
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
jbe 0x4065b0
xor eax, eax
lea ecx, [esp + 0x28]
mov al, byte [edi + esi]
push eax
push str._02x_
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x28]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x44]
push edx
push eax
push ecx
call sub.MFC42u.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 0xf
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jb 0x40655f
push 0x2c
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::ReverseFind
lea edx, [esp + 0x40]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 0x10
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], bl
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push eax
push str.hex__x_:
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
jmp 0x4066a1
push 4
lea edx, [esp + 0x54]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
push esi
lea eax, [esp + 0x20]
push str._08x
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x18
push str.dword:
jmp 0x406698
push esi
lea ecx, [esp + 0x14]
push 0x41b170
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x41ba70
push 0x41b02c
call sub.MFC42u.DLL_CString::Replace
push 0x41ba68
push 0x41b8d8
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Replace
lea edx, [esp + 0x10]
push 0x41b8d8
lea eax, [esp + 0x40]
push edx
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 0xe
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], bl
call sub.MFC42u.DLL_CString::CString
push 0x41b8d8
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [esp + 0x80]
push 0x41f9bc
push ecx
call ebp
add esp, 8
lea ecx, [esp + 0x74]
test eax, eax
push 0x5c
je 0x4067e9
call sub.MFC42u.DLL_CString::ReverseFind
lea edx, [esp + 0x50]
push eax
push edx
lea ecx, [esp + 0x7c]
call sub.MFC42u.DLL_CString::Left
push eax
lea eax, [esp + 0x50]
push str.Windows_Registry_Editor_Version_5.00_r_n_r_n_
push eax
mov byte [esp + 0x78], 0x11
call sub.MFC42u.DLL_operator_1
push str.__r_n_
lea ecx, [esp + 0x4c]
push eax
push ecx
mov byte [esp + 0x78], 0x12
call sub.MFC42u.DLL_operator
lea edx, [esp + 0x80]
mov byte [esp + 0x6c], 0x13
push edx
push eax
lea eax, [esp + 0x3c]
push eax
call sub.MFC42u.DLL_operator_2
push 0x41ba00
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x78], 0x14
call sub.MFC42u.DLL_operator
lea edx, [esp + 0x18]
mov byte [esp + 0x6c], 0x15
push edx
push eax
lea eax, [esp + 0x44]
push eax
call sub.MFC42u.DLL_operator_2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
push eax
push edx
mov byte [esp + 0x78], 0x16
call sub.MFC42u.DLL_operator_2
push str._r_n_r_n
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x74], 0x17
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0x18
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 0x17
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], 0x16
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0x15
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 0x14
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0x13
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x6c], 0x12
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6c], 0x11
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x6c], bl
lea ecx, [esp + 0x50]
jmp 0x4068c3
call sub.MFC42u.DLL_CString::ReverseFind
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x7c]
call sub.MFC42u.DLL_CString::Left
push eax
lea edx, [esp + 0x44]
push str.Windows_Registry_Editor_Version_5.00_r_n_r_n_
push edx
mov byte [esp + 0x78], 0x19
call sub.MFC42u.DLL_operator_1
push 0x41b9f4
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x74], 0x1a
push eax
call sub.MFC42u.DLL_operator
lea ecx, [esp + 0x18]
lea edx, [esp + 0x48]
push ecx
push eax
push edx
mov byte [esp + 0x78], 0x1b
call sub.MFC42u.DLL_operator_2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
push eax
push edx
mov byte [esp + 0x78], 0x1c
call sub.MFC42u.DLL_operator_2
push str._r_n_r_n
push eax
lea eax, [esp + 0x58]
mov byte [esp + 0x74], 0x1d
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0x1e
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 0x1d
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6c], 0x1c
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x6c], 0x1b
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 0x1a
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], 0x19
call sub.MFC42u.DLL_CString::CString
mov byte [esp + 0x6c], bl
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov edi, eax
push edi
call sub.MFC42u.DLL_operatornew
mov edx, dword [esp + 0x20]
add esp, 4
mov ebp, eax
push 0
push 0
push edi
push ebp
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov eax, dword [esp + 0x2c]
push 0x1001
push eax
lea ecx, [esp + 0x5c]
call sub.MFC42u.DLL_CFile::CFile
mov edx, dword [esp + 0x54]
dec edi
push edi
push ebp
lea ecx, [esp + 0x5c]
mov byte [esp + 0x74], 0x1f
call dword [edx + 0x40]
lea ecx, [esp + 0x54]
call sub.MFC42u.DLL_CFile::Close
push ebp
call sub.MFC42u.DLL_operatordelete
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x54]
mov byte [esp + 0x6c], bl
call fcn.00413cf4
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x74]
mov byte [esp + 0x6c], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0x6c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov byte [esp + 0x6c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x80]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0x10