Function at 0x46fc30
Capabilities:
Delete file
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565859
mov eax, dword fs:[0]
push eax
sub esp, 0x438
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 + 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov esi, dword [0x5ba1b0]
mov dword [ebp - 0x42c], eax
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46fc8f
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x43c], eax
mov dword [ebp - 4], 1
push dword [ebp - 0x42c]
push str._SendFilesR:_start:_type:__s_n
call fcn.0052d67c
add esp, 8
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x428]
push ebx
call fcn.004031c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x428]
push 2
push 0x58bcec
call fcn.00443ec0
mov eax, dword [ebp - 0x428]
cmp dword [eax - 4], 1
jle 0x46fd1d
push dword [eax - 0xc]
lea ecx, [ebp - 0x428]
call fcn.004024c0
mov eax, dword [ebp - 0x428]
lea ecx, [ebp - 0x438]
push ecx
push edi
push eax
mov ecx, esi
call fcn.0046f3e0
mov ecx, dword [ebp - 0x434]
or ebx, 0xffffffff
sub ecx, dword [ebp - 0x438]
sar ecx, 3
mov word [ebp - 0x420], 0x24
mov dword [ebp - 0x41e], 0x20009301
push 0
push 0xe
test ecx, ecx
jne 0x46fe29
lea eax, [ebp - 0x420]
mov dword [ebp - 0x41a], ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
xor esi, esi
mov byte [ebp - 4], 2
mov ecx, ebx
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46fd99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x438]
test ecx, ecx
je 0x46fde5
push dword [ebp - 0x43c]
mov edx, dword [ebp - 0x434]
push ecx
call fcn.00476d20
push dword [ebp - 0x438]
call fcn.005295dd
add esp, 0xc
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x43c]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x46fe09
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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 0x14
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41a], 4
mov ax, word [ebp - 0x418]
movq xmm0, qword [ebp - 0x420]
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x414]
push eax
push esi
movq qword [ebp - 0x414], xmm0
mov dword [ebp - 0x40a], ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x46fd74
push 0x400
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00531bd0
add esp, 0xc
lea eax, [ebp - 0x414]
push 0
push 0x400
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x46fd74
cmp byte [ebp - 0x414], 0x24
movq xmm0, qword [ebp - 0x414]
mov ax, word [ebp - 0x40c]
movq qword [ebp - 0x420], xmm0
mov word [ebp - 0x418], ax
jne 0x46fd74
cmp dword [ebp - 0x412], 0x55aa0000
je 0x46ff19
lea ecx, [ebp - 0x424]
call fcn.00402b10
mov byte [ebp - 4], 4
lea eax, [ebp - 0x424]
push dword [ebp - 0x41e]
push str.Bad_data_type._Received_type__04Xh.
push eax
call fcn.00415d20
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x424]
call fcn.00402750
jmp 0x46fd74
lea ecx, [ebp - 0x440]
call fcn.00402b10
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x438]
mov dword [ebp - 0x42c], 0
cmp esi, dword [ebp - 0x434]
je 0x470046
test edi, edi
je 0x470046
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x470046
push edi
push eax
call fcn.0052cc91
mov edx, eax
add esp, 8
test edx, edx
je 0x470046
mov ebx, dword [esi]
sub edx, ebx
sar edx, 1
cmp edx, 0xffffffff
je 0x470043
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0x444], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ff86
sub ecx, dword [ebp - 0x444]
mov eax, dword [ebx - 0xc]
sar ecx, 1
sub eax, ecx
mov ecx, esi
sub eax, edx
dec eax
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00415dc0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x424]
cmp dword [eax - 4], 1
jle 0x46ffd4
push dword [eax - 0xc]
lea ecx, [ebp - 0x424]
call fcn.004024c0
mov eax, dword [ebp - 0x424]
push eax
push dword [esi]
push dword [ebp + 8]
call fcn.00470090
test eax, eax
je 0x46fff1
cmp byte [esi + 4], 0
jne 0x46fff1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp - 0x42c]
inc ebx
push ebx
push str.SendFiles:_count:__d_n
mov dword [ebp - 0x42c], ebx
call fcn.0052d67c
add esp, 8
mov byte [ebp - 4], 5
or ebx, 0xffffffff
mov edx, dword [ebp - 0x424]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x470032
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 8
cmp esi, dword [ebp - 0x434]
jne 0x46ff44
jmp 0x470046
or ebx, 0xffffffff
push str.SendFilesR:_end_n
call fcn.0052d67c
add esp, 4
mov esi, 1
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebp - 0x440]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46fd76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46fd76