Function at 0x40ef50
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x40f20a
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [0x40f220]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x40f230
mov edx, 0x40f260
mov eax, dword [ebp - 4]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov al, byte [0x40f220]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x40f284
mov edx, 0x40f2ac
mov eax, dword [ebp - 4]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 4]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
push ebp
push 0x40effc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Sysutils_DeleteFile_qqrx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f006
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40f120
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [sym.imp.rtl260.bpl__System_Net_Httpclient_THTTPClient_]
call sub.rtl260.bpl__System_Net_Httpclient_THTTPClient_Create_qqrv
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f04f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call sub.rtl260.bpl__System_Net_Httpclient_THTTPClient_Head_qqrx20System_UnicodeStringx59System__DynamicArray_35System_Net_Urlclien
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f059
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x38]
cmp eax, 0xc8
jne 0x40f116
xor eax, eax
push ebp
push 0x40f10f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff00
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [sym.imp.rtl260.bpl__System_Classes_TFileStream_]
call sub.rtl260.bpl__System_Classes_TFileStream__bctr_qqrx20System_UnicodeStringus
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x40f0f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x40f0cb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call sub.rtl260.bpl__System_Net_Httpclient_THTTPClient_Get_qqrx20System_UnicodeStringxp22System_Classes_TStreamx59System__DynamicAr
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f0dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f0f9
mov eax, dword [ebp - 0x14]
call sub.rtl260.bpl__System_TObject_Free_qqrv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f131
mov dl, 1
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x40f149
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40f1cd
xor eax, eax
push ebp
push 0x40f169
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Sysutils_DeleteFile_qqrx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f173
xor eax, eax
push ebp
push 0x40f1ba
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 4]
call sub.rtl260.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileW
test eax, eax
jne 0x40f1a9
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x40f1b0
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f1d2
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f211
lea eax, [ebp - 0x2c]
call sub.rtl260.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
lea eax, [ebp - 0x28]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x1c]
call sub.rtl260.bpl__System__IntfClear_qqrr44System__DelphiInterface_17System_IInterface_
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret