Function at 0x465610
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.004e1e80
mov eax, dword [0x55154c]
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 0x46566f
push 0x51ad60
push str.....UtilwebwebReceive.cpp
call fcn.004688c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
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.0045d270
add esp, 0x10
test eax, eax
je 0x4656af
push 0x51ad68
push str.....UtilwebwebReceive.cpp
call fcn.004688c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
push dword [esi]
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x1804]
push eax
call fcn.0045e520
add esp, 0xc
test eax, eax
je 0x4656ee
push 0x518148
push str.....UtilwebwebReceive.cpp
call fcn.004688c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x2010], 0
jne 0x46571a
push 0x515d84
push str.....UtilwebwebReceive.cpp
call fcn.004688c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x808], 0
jne 0x4659e4
cmp dword [esi + 0x818], 0
jne 0x465753
push 0x54aeec
push str.....UtilwebwebReceive.cpp
call fcn.004688c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x804], 0
jne 0x4657a7
lea eax, [ebp - 0x2020]
push eax
lea eax, [ebp - 0x2014]
push eax
push esi
call fcn.00465430
add esp, 0xc
test eax, eax
je 0x46579a
push 0x515910
push str.....UtilwebwebReceive.cpp
call fcn.004688c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x2014], 0
je 0x4659e4
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 0x4659e4
cmp dword [ebp + 0x14], 0
je 0x465923
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 0x465820
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.004e19a5
mov esp, ebp
pop ebp
ret
push 0x527d10
push dword [ebp - 0x201c]
lea eax, [ebp - 0x2008]
push eax
call fcn.004f613a
add esp, 0xc
test eax, eax
je 0x465861
push 0x518158
push str.....UtilwebwebReceive.cpp
call fcn.004688c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x4658b1
nop dword [eax + eax]
push dword [ebp - 0x2008]
push 1
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.004f6a98
add esp, 0x10
cmp eax, 1
jb 0x465900
lea eax, [ebp - 0x200c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push esi
call ebx
test eax, eax
je 0x4658d9
mov eax, dword [ebp - 0x200c]
test eax, eax
jne 0x465870
push dword [ebp - 0x2008]
call fcn.004f3f63
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.004e19a5
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x2008]
mov dword [edi], 1
call fcn.004f3f63
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
push 0x5180f0
push str.....UtilwebwebReceive.cpp
call fcn.004688c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
mov esp, ebp
pop ebp
ret
push 0x518e90
lea eax, [ebp - 0x2008]
push ebx
push eax
call fcn.004f613a
add esp, 0xc
test eax, eax
je 0x46595f
push 0x518878
push str.....UtilwebwebReceive.cpp
call fcn.004688c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
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 0x4659e4
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x4658b1
cmp eax, 0x1000
jae 0x4659fd
push dword [ebp - 0x2008]
mov byte [ebp + eax - 0x1004], 0
lea eax, [ebp - 0x1004]
push eax
call fcn.004f8eef
add esp, 8
cmp eax, 0xffffffff
jne 0x465970
push 0x51ce50
push str.....UtilwebwebReceive.cpp
call fcn.004688c0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e19a5
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.004e19a5
mov esp, ebp
pop ebp
ret
call fcn.004e2042
int3