Function at 0x50b410
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 0x526667
mov eax, dword fs:[0]
push eax
mov eax, 0x212c
call fcn.004a5c90
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2138], ecx
mov byte [ebp - 0x114], 0
push 0xff
push 0
lea eax, [ebp - 0x113]
push eax
call fcn.00491e40
add esp, 0xc
mov ecx, dword [ebp - 0x2138]
add ecx, 0x1c
call fcn.0040acf0
push eax
call fcn.0050b2a0
add esp, 4
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x121], 1
cmp dword [ebp - 0x118], 0xffffffff
jne 0x50b496
xor al, al
jmp 0x50b65e
mov ecx, dword [ebp - 0x2138]
cmp dword [ecx + 0x50], 0
je 0x50b4c5
mov edx, dword [ebp - 0x2138]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x2138]
call fcn.0050aec0
mov ecx, dword [ebp - 0x2138]
mov ecx, dword [ecx + 0x50]
mov dword [ecx], eax
mov dword [ecx + 4], edx
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x120]
call fcn.00426350
mov dword [ebp - 4], 0
mov dword [ebp - 0x2130], 0x2000
mov byte [ebp - 0x212c], 0
push 0x1fff
push 0
lea eax, [ebp - 0x212b]
push eax
call fcn.00491e40
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
push 0x2000
lea edx, [ebp - 0x212c]
push edx
mov eax, dword [ebp - 0x2138]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x50b5a3
cmp dword [ebp - 0x12c], 0
je 0x50b5a3
mov edx, dword [ebp - 0x2138]
cmp dword [edx + 0x54], 0
je 0x50b570
mov eax, dword [ebp - 0x2138]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x12c]
xor eax, eax
add edx, dword [ecx]
adc eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x2138]
mov ecx, dword [ecx + 0x54]
mov dword [ecx], edx
mov dword [ecx + 4], eax
push 0
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x212c]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x50b5a1
mov byte [ebp - 0x121], 0
jmp 0x50b5d1
jmp 0x50b5c4
cmp dword [ebp - 0x128], 0
jne 0x50b5c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2138]
mov dword [ecx + 0x4c], eax
mov byte [ebp - 0x121], 0
jmp 0x50b5d1
mov edx, 1
test edx, edx
jne 0x50b4de
movzx eax, byte [ebp - 0x121]
test eax, eax
je 0x50b5eb
mov ecx, dword [ebp - 0x2138]
call fcn.0050aff0
test eax, eax
jne 0x50b63f
mov ecx, dword [ebp - 0x2138]
cmp dword [ecx + 0x4c], 0xffffffff
jne 0x50b609
mov edx, dword [ebp - 0x2138]
mov eax, dword [ebp - 0x2138]
mov ecx, dword [eax + 0x48]
mov dword [edx + 0x4c], ecx
mov ecx, dword [ebp - 0x2138]
add ecx, 0x1c
call fcn.0040acf0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x2131], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00426370
mov al, byte [ebp - 0x2131]
jmp 0x50b65e
mov byte [ebp - 0x2132], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00426370
mov al, byte [ebp - 0x2132]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret