Function at 0x480240
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2020
call fcn.004ff5c0
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2018], eax
mov dword [ebp - 0x201c], ebx
push edi
mov edi, dword [ebp + 0x1c]
mov dword [edi], 0
test esi, esi
jne 0x48029f
push 0x5402c8
push str.....UtilwebwebReceive.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push dword [esi]
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1804]
push eax
push ebx
call fcn.00477140
add esp, 0x10
test eax, eax
je 0x4802df
push 0x5402d0
push str.....UtilwebwebReceive.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push dword [esi]
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x1804]
push eax
call fcn.00478590
add esp, 0xc
test eax, eax
je 0x48031e
push 0x53ae24
push str.....UtilwebwebReceive.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x2010], 0
jne 0x48034a
push 0x53c800
push str.....UtilwebwebReceive.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x808], 0
jne 0x480614
cmp dword [esi + 0x818], 0
jne 0x480383
push 0x53dd30
push str.....UtilwebwebReceive.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x804], 0
jne 0x4803d7
lea eax, [ebp - 0x2020]
push eax
lea eax, [ebp - 0x2014]
push eax
push esi
call fcn.00480060
add esp, 0xc
test eax, eax
je 0x4803ca
push 0x53a9a8
push str.....UtilwebwebReceive.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x2014], 0
je 0x480614
mov eax, dword [ebp + 0x18]
neg eax
push 0
sbb eax, eax
and eax, 0x84000100
push eax
push 0
push 0
push dword [ebp - 0x2018]
push dword [esi + 0x818]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x480614
cmp dword [ebp + 0x14], 0
je 0x480553
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x200c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call ebx
test eax, eax
jne 0x480450
push esi
mov dword [edi], 1
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push 0x54ed70
push dword [ebp - 0x201c]
lea eax, [ebp - 0x2008]
push eax
call fcn.0051700a
add esp, 0xc
test eax, eax
je 0x480491
push 0x53cc68
push str.....UtilwebwebReceive.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x4804e1
nop dword [eax + eax]
push dword [ebp - 0x2008]
push 1
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.005179e8
add esp, 0x10
cmp eax, 1
jb 0x480530
lea eax, [ebp - 0x200c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call ebx
test eax, eax
je 0x480509
mov eax, dword [ebp - 0x200c]
test eax, eax
jne 0x4804a0
push dword [ebp - 0x2008]
call fcn.00514c02
add esp, 4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x2008]
mov dword [edi], 1
call fcn.00514c02
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push 0x53d2fc
push str.....UtilwebwebReceive.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push 0x53e458
lea eax, [ebp - 0x2008]
push ebx
push eax
call fcn.0051700a
add esp, 0xc
test eax, eax
je 0x48058f
push 0x53ddf0
push str.....UtilwebwebReceive.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
nop word [eax + eax]
lea eax, [ebp - 0x200c]
push eax
push 0xfff
lea eax, [ebp - 0x1004]
push eax
push esi
call ebx
test eax, eax
je 0x480614
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x4804e1
cmp eax, 0x1000
jae 0x48062d
push dword [ebp - 0x2008]
mov byte [ebp + eax - 0x1004], 0
lea eax, [ebp - 0x1004]
push eax
call fcn.0051a0ba
add esp, 8
cmp eax, 0xffffffff
jne 0x4805a0
push 0x540c08
push str.....UtilwebwebReceive.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [edi], 1
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004ff105
mov esp, ebp
pop ebp
ret
call fcn.004ff782
int3