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

Disassembly:
push 0x7c
mov eax, 0x1007ba53
call fcn.100751fa
push 0x1009807c
lea ecx, [ebp - 0x50]
call dword [0x10096f84]
mov ebx, eax
and dword [ebp - 4], 0
push 0x10098030
lea ecx, [ebp - 0x4c]
call dword [0x10096f84]
mov edi, eax
push 0x10098054
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [0x10096f84]
lea ecx, [ebp - 0x44]
push 0x1009fda0
push ecx
mov esi, eax
mov byte [ebp - 4], 2
call fcn.100064c1
lea ecx, [ebp - 0x40]
push edi
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.100060e9
mov edi, 0x1009803c
lea ecx, [ebp - 0x3c]
push edi
push ecx
mov esi, eax
mov byte [ebp - 4], 4
call fcn.100064c1
lea ecx, [ebp - 0x38]
push ebx
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.100060e9
lea ecx, [ebp - 0x34]
push edi
push ecx
mov esi, eax
mov byte [ebp - 4], 6
call fcn.100064c1
add esp, 0x28
mov edi, 0x100ea128
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call dword [0x10096f88]
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 [0x10096f98]
mov ebx, SysReAllocString
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 [0x10096f84]
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 0x1003c1a6
push str.rburl
lea ecx, [ebp - 0x6c]
call sym.ASOHelper.dll_public:_int___thiscall_CRegistry::VerifyValue_wchar_t_const__
test eax, eax
je 0x1003c17c
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 0x1003c19e
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 0x1003c1cf
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 0x1003c425
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x1003c409
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x100ea124
call dword [0x10096f88]
push 0x1009f454
lea ecx, [ebp - 0x30]
call dword [0x10096f84]
lea ecx, [ebp - 0x1c]
call dword [0x10096f98]
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 [0x10096f20]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call dword [0x10096f20]
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 0x1003c255
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 0x1003c3e5
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003c3e5
mov edi, 0x100a24a0
push edi
lea ecx, [ebp - 0x44]
call dword [0x10096ef4]
mov dword [ebp - 0x50], eax
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call dword [0x10096ef4]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.100060e9
mov byte [ebp - 4], 0x11
push dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.100060e9
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 0x1009f454
push 0x100a24a4
push dword [ebp - 0x28]
push 0x10098e70
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 [0x10096f84]
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 0x1003c391
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 0x1003c375
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 0x1003c391
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 0x1003c1ae
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.100752d2
ret