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

Disassembly:
push 0x7c
mov eax, 0x100988c8
call fcn.1008f84a
push 0x100b712c
lea ecx, [ebp - 0x50]
call dword [0x100b6094]
mov ebx, eax
and dword [ebp - 4], 0
push 0x100b70d0
lea ecx, [ebp - 0x4c]
call dword [0x100b6094]
mov edi, eax
push 0x100b70f4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [0x100b6094]
lea ecx, [ebp - 0x44]
push str.b3_62_gf
push ecx
mov esi, eax
mov byte [ebp - 4], 2
call fcn.1000a016
lea ecx, [ebp - 0x40]
push edi
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10009c3e
mov edi, 0x100b70dc
lea ecx, [ebp - 0x3c]
push edi
push ecx
mov esi, eax
mov byte [ebp - 4], 4
call fcn.1000a016
lea ecx, [ebp - 0x38]
push ebx
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.10009c3e
lea ecx, [ebp - 0x34]
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 - 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]
lea ecx, [ebp - 0x50]
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 - 0x50], ebx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x6c]
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 - 0x6c]
mov dword [ebp - 0x68], 0x20019
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::Open_struct_HKEY_____wchar_t_const___bool_
test eax, eax
je 0x1004bbc0
push str.rburl
lea ecx, [ebp - 0x6c]
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::VerifyValue_wchar_t_const__
test eax, eax
je 0x1004bb96
lea eax, [ebp - 0x14]
push eax
push str.rburl
lea ecx, [ebp - 0x6c]
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.InstallRightBackup
lea ecx, [ebp - 0x6c]
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::VerifyValue_wchar_t_const__
test eax, eax
je 0x1004bbb8
lea eax, [ebp - 0x24]
push eax
push str.InstallRightBackup
lea ecx, [ebp - 0x6c]
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::ReadDWORD_wchar_t_const___unsigned_long_int__
lea ecx, [ebp - 0x6c]
call sym.ASOHelper.dll_public:_void___thiscall_CRegistry::Close_void_
cmp dword [ebp - 0x24], 0
jne 0x1004bbe9
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 - 0x6c]
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 0x1004be3f
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x1004be23
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]
push 0x100be7bc
lea ecx, [ebp - 0x30]
call dword [0x100b6094]
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], 0xc
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], 0xd
call dword [0x100b6030]
lea eax, [ebp - 0x10]
push edi
push eax
mov byte [ebp - 4], 0xe
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 0x1004bc6f
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 0x1004bdff
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004bdff
mov edi, 0x100c24b4
push edi
lea ecx, [ebp - 0x44]
call dword [0x100b5fc8]
mov dword [ebp - 0x50], eax
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call dword [0x100b5fc8]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.10009c3e
mov byte [ebp - 4], 0x11
push dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.10009c3e
add esp, 0x10
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]
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]
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 - 0x50]
push eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x50], ebx
call sym.ASOHelper.dll_public:_void___thiscall_CRegistry::constructor_struct_HKEY____const_const__
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x84], 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], 0x17
push dword [ebp - 0x18]
lea ecx, [ebp - 0x88]
push esi
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::Open_struct_HKEY_____wchar_t_const___bool_
test eax, eax
je 0x1004bdab
mov ebx, str.rburl
push ebx
lea ecx, [ebp - 0x88]
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::DeleteValue_wchar_t_const__
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x1004bd8f
push ebx
push dword [ebp - 0x18]
push esi
call edi
mov ebx, str.InstallRightBackup
push ebx
lea ecx, [ebp - 0x88]
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::DeleteValue_wchar_t_const__
test eax, eax
jne 0x1004bdab
push ebx
push dword [ebp - 0x18]
push esi
call edi
lea ecx, [ebp - 0x88]
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 - 0x88]
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]
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]
xor esi, esi
inc esi
jmp 0x1004bbc8
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 - 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 - 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 - 0x6c]
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