Function at 0x405950
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x420a20
mov eax, dword fs:[0]
push eax
sub esp, 0xe70
mov eax, dword [0x436028]
xor eax, esp
mov dword [esp + 0xe6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x436028]
xor eax, esp
push eax
lea eax, [esp + 0xe84]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xe94]
lea ecx, [esp + 0x18]
call dword [0x42497c]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0xe8c], ebx
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
mov ecx, ebp
call fcn.00405be0
test al, al
jne 0x405baa
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ASOHelper.dll_public:_static_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_CSystweakApp::GetAppDataAppPath_void_]
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe90], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8c], bl
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 + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
jne 0x405a8d
mov edx, dword [sym.imp.MSVCR90.dll___wargv]
mov eax, dword [edx]
mov edi, dword [eax]
push 0xe3e
lea ecx, [esp + 0x44]
push ebx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp edi, ebx
je 0x405a30
lea esi, [esp + 0x40]
call fcn.00401d20
lea edx, [esp + 0x450]
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
push eax
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x45e]
mov byte [esp + 0xe94], 2
call fcn.00405d40
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe90], 3
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [esp + 0x14]
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 + 0x20]
mov byte [esp + 0xe8c], bl
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push str.FileEncrypt.dat
lea ecx, [esp + 0x18]
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 ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
mov byte [esp + 0xe90], 4
mov esi, dword [sym.imp.ASOHelper.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__]
push edx
call esi
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8c], bl
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 eax, [esp + 0x18]
push eax
mov ecx, ebp
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], 0x80000001
call dword [sym.imp.ASOHelper.dll_public:_void___thiscall_CRegistry::constructor_struct_HKEY____const_const__]
lea ecx, [esp + 0x1c]
call dword [0x42497c]
mov byte [esp + 0xe8c], 6
mov edx, dword [0x440794]
add edx, 0x1504
push edx
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
push 0x426074
lea ecx, [esp + 0x18]
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 eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0xe94], 7
call esi
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8c], 6
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 edx, dword [esp + 0x1c]
push 1
push edx
push 0x80000001
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], 0x2001f
call dword [sym.imp.ASOHelper.dll_public:_int___thiscall_CRegistry::Open_struct_HKEY_____wchar_t_const___bool_]
test eax, eax
je 0x405b8f
mov ebp, dword [ebp]
push ebx
push ebp
push 0x426074
lea ecx, [esp + 0x30]
call dword [sym.imp.ASOHelper.dll_public:_int___thiscall_CRegistry::WriteString_wchar_t_const___wchar_t_const___bool_]
lea ecx, [esp + 0x24]
call dword [sym.imp.ASOHelper.dll_public:_void___thiscall_CRegistry::Close_void_]
lea ecx, [esp + 0x1c]
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 + 0x24]
mov byte [esp + 0xe8c], bl
call dword [sym.imp.ASOHelper.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_]
lea ecx, [esp + 0x18]
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 + 0xe84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe6c]
xor ecx, esp
call fcn.0041e2f2
add esp, 0xe7c
ret 4