Function at 0x405ab0
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x41e2bb
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x433028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0x80000001
call dword [sym.imp.SolvusoftWMhelper.dll_public:_void___thiscall_CRegistry::constructor_struct_HKEY____const_const__]
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0
call dword [0x422924]
mov ecx, esi
mov byte [esp + 0x38], 1
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
mov ecx, dword [0x43d778]
add ecx, 0x11d8
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x20019
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
push 0x423f3c
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
mov byte [esp + 0x40], 2
call dword [sym.imp.SolvusoftWMhelper.dll_enum_PCO_ERROR_CODES___cdecl_STPathAppend_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
add esp, 8
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 8]
push 1
push ecx
push 0x80000001
lea ecx, [esp + 0x20]
call dword [sym.imp.SolvusoftWMhelper.dll_public:_int___thiscall_CRegistry::Open_struct_HKEY_____wchar_t_const___bool_]
lea ecx, [esp + 0x14]
test eax, eax
je 0x405bd7
push esi
push 0x423f3c
call dword [sym.imp.SolvusoftWMhelper.dll_public:_int___thiscall_CRegistry::ReadString_wchar_t_const___class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____]
lea ecx, [esp + 0x14]
call dword [sym.imp.SolvusoftWMhelper.dll_public:_void___thiscall_CRegistry::Close_void_]
mov esi, dword [esi]
cmp dword [esi - 0xc], 0
je 0x405bdd
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 8]
test eax, eax
je 0x405be1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.SolvusoftWMhelper.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
call dword [sym.imp.SolvusoftWMhelper.dll_public:_void___thiscall_CRegistry::Close_void_]
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.SolvusoftWMhelper.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret