Function at 0x404fbc
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 0x405276
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [0x40528c]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x40529c
mov edx, 0x4052cc
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 [0x40528c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x4052f0
mov edx, 0x405318
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 0x405068
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 0x405072
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40518c
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 0x4050bb
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 0x4050c5
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x38]
cmp eax, 0xc8
jne 0x405182
xor eax, eax
push ebp
push 0x40517b
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 0x40515e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x405137
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 0x405148
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405165
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 0x40519d
mov dl, 1
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x4051b5
cmp dword [ebp - 0x18], 0xffffffff
jne 0x405239
xor eax, eax
push ebp
push 0x4051d5
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 0x4051df
xor eax, eax
push ebp
push 0x405226
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 0x405215
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x40521c
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40523e
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40527d
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