Function at 0x4768d4
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x476c6d
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov ecx, 0x476c88
mov edx, dword [ebp - 8]
mov eax, dword [0x411194]
call fcn.004115b0
mov eax, dword [ebp - 8]
mov byte [eax + 0x88], 1
mov eax, dword [ebp - 8]
call fcn.00476260
xor eax, eax
push ebp
push 0x476c45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004760c8
test al, al
jne 0x476940
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x476c4f
mov eax, dword [ebp - 8]
call fcn.00476d6c
test al, al
jne 0x476956
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x476c4f
xor eax, eax
push ebp
push 0x476b86
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00476de0
test al, al
jne 0x47697f
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x476c4f
xor eax, eax
push ebp
push 0x476b65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00476e68
test al, al
jne 0x4769ad
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x476c4f
mov eax, dword [ebp - 8]
call fcn.00476350
test al, al
jne 0x4769cd
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x476c4f
mov eax, dword [ebp - 8]
call fcn.004761b4
test al, al
jne 0x4769f7
mov eax, dword [ebp - 8]
mov byte [eax + 0x8a], 1
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x476c4f
xor eax, eax
push ebp
push 0x476a29
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff00
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x6c]
mov dl, 1
mov eax, dword [sym.imp.rtl160.bpl__System_Classes_TFileStream_]
call sub.rtl160.bpl__System_Classes_TFileStream__bctr_qqrx20System_UnicodeStringus
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x476a4c
xor eax, eax
push ebp
push 0x476b44
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x400
call sub.rtl160.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
mov eax, dword [ebp - 8]
cmp byte [eax + 0xd], 0
je 0x476a8b
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x476c4f
lea eax, [ebp - 0xc]
push eax
push 0x400
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x476ac1
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x476c4f
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, ebx
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
cmp ebx, eax
je 0x476aee
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
call sub.rtl160.bpl__System__TryFinallyExit_qqrv
jmp 0x476c4f
mov eax, ebx
cdq
mov ecx, dword [ebp - 8]
add dword [ecx + 0x80], eax
adc dword [ecx + 0x84], edx
test ebx, ebx
jne 0x476a69
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x84]
mov eax, dword [eax + 0x80]
mov ecx, dword [ebp - 8]
cmp edx, dword [ecx + 0x7c]
jne 0x476b2e
cmp eax, dword [ecx + 0x78]
jne 0x476b2e
mov eax, dword [ebp - 8]
mov byte [eax + 0x88], 5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476b4b
lea eax, [ebp - 0x10]
call sub.rtl160.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476c74
lea eax, [ebp - 0x1c]
call sub.rtl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrClr_qqrpv
ret