Function at 0x1004be45
Capabilities:
Check if file exists
Create process on windows
Delete file
Delete registry value
Download url
Receive data

Disassembly:
push 0x7c
mov eax, 0x100987ec
call fcn.1008f84a
push 0x100b712c
lea ecx, [ebp - 0x4c]
call dword [0x100b6094]
mov ebx, eax
and dword [ebp - 4], 0
push 0x100b70d0
lea ecx, [ebp - 0x48]
call dword [0x100b6094]
mov edi, eax
push 0x100b70e8
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call dword [0x100b6094]
lea ecx, [ebp - 0x40]
push 0x100b7110
push ecx
mov esi, eax
mov byte [ebp - 4], 2
call fcn.1000a016
lea ecx, [ebp - 0x3c]
push edi
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10009c3e
mov edi, 0x100b70dc
lea ecx, [ebp - 0x38]
push edi
push ecx
mov esi, eax
mov byte [ebp - 4], 4
call fcn.1000a016
lea ecx, [ebp - 0x34]
push ebx
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.10009c3e
lea ecx, [ebp - 0x30]
push edi
push ecx
mov esi, eax
mov byte [ebp - 4], 6
call fcn.1000a016
add esp, 0x28
mov edi, 0x101176ac
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [ebp - 0x30]
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 - 0x34]
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 - 0x38]
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 - 0x3c]
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 - 0x40]
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 - 0x44]
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 - 0x48]
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 - 0x4c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x14]
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 ebx, SysReAllocStringLen
mov dword [ebp - 4], 8
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x68]
call sym.ASOHelper.dll_public:_void___thiscall_CRegistry::constructor_struct_HKEY____const_const__
mov byte [ebp - 4], 9
call sym.ASOHelper.dll_wchar_t_const____cdecl_GetSystweakAppKey_void_
push eax
lea ecx, [ebp - 0x20]
call dword [0x100b6094]
push 1
mov byte [ebp - 4], 0xa
push dword [ebp - 0x20]
lea esi, [ebx + 1]
push esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x64], 0x20019
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::Open_struct_HKEY_____wchar_t_const___bool_
test eax, eax
je 0x1004bfe4
push str.sdurl
lea ecx, [ebp - 0x68]
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::VerifyValue_wchar_t_const__
test eax, eax
je 0x1004bfba
lea eax, [ebp - 0x14]
push eax
push str.sdurl
lea ecx, [ebp - 0x68]
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::ReadString_wchar_t_const___class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____
push str.InstallSupportDock
lea ecx, [ebp - 0x68]
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::VerifyValue_wchar_t_const__
test eax, eax
je 0x1004bfdc
lea eax, [ebp - 0x24]
push eax
push str.InstallSupportDock
lea ecx, [ebp - 0x68]
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::ReadDWORD_wchar_t_const___unsigned_long_int__
lea ecx, [ebp - 0x68]
call sym.ASOHelper.dll_public:_void___thiscall_CRegistry::Close_void_
cmp dword [ebp - 0x24], 0
jne 0x1004c00d
xor esi, esi
lea ecx, [ebp - 0x20]
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 - 0x68]
call sym.ASOHelper.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_
lea ecx, [ebp - 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]
mov eax, esi
jmp 0x1004c240
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x1004c224
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x101176a8
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [ebp - 0x1c]
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, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xb
call sym.ASOHelper.dll_bool___cdecl_ReturnAppDataFolder_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call dword [0x100b6030]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call dword [0x100b6030]
lea eax, [ebp - 0x10]
push edi
push eax
mov byte [ebp - 4], 0xd
call sym.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__
lea eax, [ebp - 0x10]
push eax
call sym.ASOHelper.dll_enum_PCO_ERROR_CODES___cdecl_DoesPathExists_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__
add esp, 0xc
test eax, eax
je 0x1004c085
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
xor edi, edi
push edi
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call sub.urlmon.dll_URLDownloadToFileW
cmp eax, edi
jl 0x1004c209
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004c209
mov edi, 0x100c24b4
push edi
lea ecx, [ebp - 0x40]
call dword [0x100b5fc8]
mov dword [ebp - 0x4c], eax
push edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call dword [0x100b5fc8]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.10009c3e
mov byte [ebp - 4], 0x10
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.10009c3e
add esp, 0x10
lea ecx, [ebp - 0x48]
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 - 0x44]
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 - 0x40]
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 1
push 0x100be7bc
push 0x100c24b8
push dword [ebp - 0x28]
push 0x100b7f34
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x4c], ebx
call sym.ASOHelper.dll_public:_void___thiscall_CRegistry::constructor_struct_HKEY____const_const__
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x80], 0x2001f
call sym.ASOHelper.dll_wchar_t_const____cdecl_GetSystweakAppKey_void_
push eax
lea ecx, [ebp - 0x18]
call dword [0x100b6094]
push 1
mov byte [ebp - 4], 0x16
push dword [ebp - 0x18]
lea ecx, [ebp - 0x84]
push esi
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::Open_struct_HKEY_____wchar_t_const___bool_
test eax, eax
je 0x1004c1be
mov ebx, str.sdurl
push ebx
lea ecx, [ebp - 0x84]
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::DeleteValue_wchar_t_const__
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x1004c1a2
push ebx
push dword [ebp - 0x18]
push esi
call edi
mov ebx, str.InstallSupportDock
push ebx
lea ecx, [ebp - 0x84]
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::DeleteValue_wchar_t_const__
test eax, eax
jne 0x1004c1be
push ebx
push dword [ebp - 0x18]
push esi
call edi
lea ecx, [ebp - 0x84]
call sym.ASOHelper.dll_public:_void___thiscall_CRegistry::Close_void_
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 - 0x84]
call sym.ASOHelper.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_
lea ecx, [ebp - 0x28]
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]
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 - 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 - 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]
xor esi, esi
inc esi
jmp 0x1004bfec
lea ecx, [ebp - 0x2c]
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 - 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 - 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, [ebp - 0x20]
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 - 0x68]
call sym.ASOHelper.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_
lea ecx, [ebp - 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]
xor eax, eax
call fcn.1008f922
ret