Function at 0x10030839
Capabilities:
Check if file exists

Disassembly:
push 0x20
mov eax, 0x10063964
call fcn.100596da
mov edi, ecx
push 1
xor esi, esi
push sym.SACOhelper.dll_class_CCriticalSection_CRegistrationClient::m_csRegistrationCheck
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call sub.mfc90u.dll_CSingleLock::CSingleLock
lea ecx, [ebp - 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, [ebp - 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]
mov byte [ebp - 4], 3
call sub.mfc90u.dll_AfxGetModuleState
cmp dword [eax + 4], esi
jne 0x100308ac
lea ecx, [ebp - 0x10]
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, [ebp - 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]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call sub.mfc90u.dll_CSingleLock::Unlock
lea ecx, [ebp + 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]
mov eax, esi
call fcn.100597b2
ret 8
mov ecx, edi
call sym.SACOhelper.dll_public:_void___thiscall_CRegistrationClient::ReadMsgStringsFromINI_void_
cmp byte [sym.SACOhelper.dll_bool_CRegistrationClient::m_bIsSubscriptionChecked], 0
je 0x100308d5
cmp byte [sym.SACOhelper.dll_bool_CRegistrationClient::m_bForceRefreshRegistration], 0
jne 0x100308d5
mov eax, dword [ebp + 0xc]
mov ecx, dword [sym.SACOhelper.dll_enum_REGISTRATION_STATUS_CRegistrationClient::REG_STATUS]
xor esi, esi
mov dword [eax], ecx
inc esi
jmp 0x1003087b
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov dword [sym.SACOhelper.dll_enum_REGISTRATION_STATUS_CRegistrationClient::REG_STATUS], 0x3e8616
call dword [0x1006ce0c]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call sym.SACOhelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CRegistrationClient::GetURL_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
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, [ebp - 0x1c]
push eax
mov ecx, edi
call sym.SACOhelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CRegistrationClient::GetFileSavePath_void_
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
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 0x5c
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid_1]
mov byte [ebp - 4], 6
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x1003097e
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call dword [0x1006ce0c]
call sym.SACOhelper.dll_enum_PCO_ERROR_CODES___cdecl_RecrusivelyCreateDirectory_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____
pop ecx
mov esi, dword [ebp + 0xc]
push esi
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call dword [0x1006ce0c]
push ecx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call dword [0x1006ce0c]
mov ecx, edi
mov byte [ebp - 4], 6
call sym.SACOhelper.dll_public:_enum_PCO_ERROR_CODES___thiscall_CRegistrationClient::DownloadStatusDotINIFile_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_____enum_REGISTRATION_STATUS__
xor ecx, ecx
mov dword [ebp + 0xc], eax
cmp eax, ecx
jne 0x10030a50
cmp dword [esi], 0x3e8af0
jne 0x10030a86
cmp byte [sym.SACOhelper.dll_bool_CRegistrationClient::m_bCheckingStatusBeforeDownload], cl
je 0x100309e9
push 1
push ecx
push ecx
push ecx
push str.Internet_Error
call sym.SACOhelper.dll_public:_static_int___cdecl_CSystweakApp::AfxMessageBox_wchar_t_const___unsigned_int__class_CDialog___class_CRect___bool_
add esp, 0x14
jmp 0x10030a86
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x100309fb
mov dword [ebp + 0xc], 1
jmp 0x10030a55
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call sym.SACOhelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CRegistrationClient::GetRegisteredKey_void_
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
lea ecx, [ebp + 0xc]
setg 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]
test bl, bl
je 0x10030a30
mov eax, 0x3e87f7
xor ebx, ebx
push eax
mov ecx, edi
inc ebx
mov dword [esi], eax
call sym.SACOhelper.dll_public:_void___thiscall_CRegistrationClient::SetRegistrationInfo_enum_REGISTRATION_STATUS_
jmp 0x10030a32
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov byte [sym.SACOhelper.dll_bool_CRegistrationClient::m_bForceRefreshRegistration], 0
mov byte [sym.SACOhelper.dll_bool_CRegistrationClient::m_bCheckingStatusBeforeDownload], 0
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 esi, ebx
jmp 0x1003087b
cmp eax, 1
jne 0x10030a86
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call dword [0x1006ce0c]
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 8
call dword [0x1006ce0c]
mov ecx, edi
mov byte [ebp - 4], 6
call sym.SACOhelper.dll_public:_enum_REGISTRATION_STATUS___thiscall_CRegistrationClient::ParseStatusDotINI_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____
mov dword [esi], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
mov dword [sym.SACOhelper.dll_enum_REGISTRATION_STATUS_CRegistrationClient::REG_STATUS], eax
mov byte [sym.SACOhelper.dll_bool_CRegistrationClient::m_bForceRefreshRegistration], 0
mov byte [sym.SACOhelper.dll_bool_CRegistrationClient::m_bCheckingStatusBeforeDownload], 0
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 esi, dword [ebp + 0xc]
jmp 0x1003087b