Function at 0x4be320
Capabilities:
Delete file
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
push 0xffffffffffffffff
push 0x539ebb
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x57c06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x260], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x254], 0
test byte [esi + 0x250], 4
je 0x4be37c
lea ecx, [esi + 0x124]
call fcn.004bdf80
test al, al
je 0x4be3bd
lea eax, [esi + 0x130]
cmp byte [esi + 0x240], bl
jne 0x4be390
mov eax, dword [esi + 0x12c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4be3c4
mov dword [esi + 0x260], 9
xor al, al
jmp 0x4be622
mov eax, 4
mov byte [ebp - 0x13c], 1
mov word [ebp - 0x13e], ax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x250]
push dword [esi + 0x26c]
push 0
call fcn.00410bb0
mov ecx, eax
mov dword [ebp - 0x258], ecx
nop dword [eax + eax]
mov eax, dword [esi + 0x270]
test eax, eax
je 0x4be423
cmp byte [eax], 0
jne 0x4be4b0
lea eax, [ebp - 0x254]
push eax
push dword [esi + 0x26c]
push ecx
push dword [ebp - 0x260]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x25c], eax
test ecx, ecx
je 0x4be498
push 0
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0
push eax
push ecx
push dword [ebp - 0x258]
add ebx, ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x264]
test ecx, ecx
je 0x4be492
push dword [esi + 0x268]
or eax, 0xffffffff
cmp byte [ebp + 0xc], 0
cmovne eax, dword [ebp + 8]
push eax
push ebx
call ecx
add esp, 0xc
mov ecx, dword [ebp - 0x254]
cmp dword [ebp - 0x25c], 0
je 0x4be4dd
test ecx, ecx
je 0x4be4dd
mov ecx, dword [ebp - 0x258]
jmp 0x4be410
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x240], 0
lea eax, [esi + 0x130]
jne 0x4be4cc
mov eax, dword [esi + 0x12c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
jmp 0x4be5fe
push ecx
mov ecx, edi
mov dword [esi + 0x25c], ebx
call fcn.004b5a20
add esp, 4
lea eax, [esi + 0x130]
cmp byte [esi + 0x240], 0
jne 0x4be503
mov eax, dword [esi + 0x12c]
sub esp, 0x10
lea ecx, [ebp - 0x138]
add eax, 4
push 0
push eax
call fcn.004b2790
cmp byte [ebp - 0x1c], 0
lea eax, [ebp - 0x12c]
push 0x5c
cmove eax, dword [ebp - 0x130]
add eax, 4
push eax
call fcn.004e4b65
cmp byte [ebp - 0x1c], 0
lea ecx, [ebp - 0x12c]
push 0x2e
cmove ecx, dword [ebp - 0x130]
mov esi, eax
add ecx, 4
push ecx
call fcn.004e4b65
add esp, 0x10
test eax, eax
je 0x4be5bd
test esi, esi
je 0x4be560
cmp esi, eax
jae 0x4be5bd
cmp byte [ebp - 0x1c], 0
lea eax, [ebp - 0x12c]
push 0x5c
cmove eax, dword [ebp - 0x130]
add eax, 4
push eax
call fcn.004e4b65
cmp byte [ebp - 0x1c], 0
lea ecx, [ebp - 0x12c]
push 0x2e
cmove ecx, dword [ebp - 0x130]
mov esi, eax
add ecx, 4
push ecx
call fcn.004e4b65
add esp, 0x10
test eax, eax
je 0x4be5a9
test esi, esi
je 0x4be5ab
cmp esi, eax
jb 0x4be5ab
xor eax, eax
push str..exe
push eax
call fcn.004f89f8
add esp, 8
test eax, eax
je 0x4be5c4
mov ecx, edi
call fcn.004b5a70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x1c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4be5f4
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x4be5f4
push eax
call fcn.004e4a56
add esp, 4
cmp dword [ebp - 0x25c], 0
setne bl
cmp byte [ebp - 0x13c], 0
jne 0x4be620
mov ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x24c]
cmp ecx, eax
je 0x4be620
push ecx
call fcn.004e4a56
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e24d7
mov esp, ebp
pop ebp
ret