Function at 0x46ece0
Capabilities:
Get file size
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565631
mov eax, dword fs:[0]
push eax
mov eax, 0x422c
call fcn.00543120
mov eax, dword [0x5b3680]
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 esi, dword [ebp + 0xc]
push str.__SendFile:_prepare_n
call fcn.0052d67c
push 0x1fff
lea eax, [ebp - 0x400f]
mov byte [ebp - 0x4010], 0
push 0
push eax
call fcn.00531bd0
push 0x1fff
lea eax, [ebp - 0x200f]
mov byte [ebp - 0x2010], 0
push 0
push eax
call fcn.00531bd0
mov ecx, esi
add esp, 0x1c
lea edx, [ecx + 2]
jmp 0x46ed60
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ed60
sub ecx, edx
sar ecx, 1
je 0x46f0cc
test ecx, ecx
je 0x46ed8a
lea esp, [esp]
cmp word [esi + ecx*2], 0x5c
je 0x46ed8a
dec ecx
jne 0x46ed80
lea eax, [esi + 2]
lea eax, [eax + ecx*2]
push eax
lea eax, [ebp - 0x4218]
push 0x104
push eax
call fcn.0052c92e
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46edf2
lea ecx, [ebp - 0x4218]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46edd0
sub ecx, edx
mov dword [ebp - 0x421c], 0
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x4220], eax
lea ecx, [ebp - 0x4218]
lea edx, [ecx + 2]
jmp 0x46ee00
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ee00
sub ecx, edx
sar ecx, 1
push 0
push edi
lea eax, [ecx + ecx]
mov dword [ebp - 0x4220], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x421c], eax
cmp eax, 0xffffffff
jne 0x46ee3f
push edi
call ebx
mov dword [ebp - 0x421c], 0
mov esi, dword [ebp - 0x4220]
push 1
lea eax, [esi + 9]
push eax
call fcn.0052d1c5
mov ecx, eax
add esp, 8
mov dword [ebp - 0x4224], ecx
test ecx, ecx
je 0x46f0c9
mov dword [ecx], esi
mov eax, dword [ebp - 0x421c]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x4218]
push dword [ebp - 0x4220]
push eax
lea eax, [ecx + 8]
push eax
call fcn.00531580
mov eax, dword [ebp - 0x4220]
mov word [ebp - 0x4230], 0x124
mov dword [ebp - 0x422e], 0x20009304
lea esi, [eax*2 + 8]
mov dword [ebp - 0x422a], esi
mov ax, word [ebp - 0x4228]
movq xmm0, qword [ebp - 0x4230]
push esi
push dword [ebp - 0x4224]
mov word [ebp - 0x4008], ax
lea eax, [ebp - 0x4006]
push eax
movq qword [ebp - 0x4010], xmm0
call fcn.00531580
add esp, 0x18
lea eax, [esi + 0xa]
mov esi, dword [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x4010]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x46f0bb
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.00531bd0
add esp, 0xc
lea eax, [ebp - 0x2010]
push 0
push 0x1000
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x46f0bb
cmp dword [ebp - 0x200e], 0x55aa0000
movq xmm0, qword [ebp - 0x2010]
mov ax, word [ebp - 0x2008]
movq qword [ebp - 0x4230], xmm0
mov word [ebp - 0x4228], ax
je 0x46efc9
push dword [ebp - 0x4224]
call fcn.0052adae
add esp, 4
push edi
call ebx
lea ecx, [ebp - 0x4224]
call fcn.00402b10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4224]
push dword [ebp - 0x422e]
push str.Bad_data_type._Received_type:__04Xh.
push eax
call fcn.00415d20
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4224]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46f0cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46f0cc
cmp edi, 0xffffffff
je 0x46f0bb
cmp dword [ebp - 0x421c], 0
je 0x46f0bb
push str.SendFile:_start_transmit_n
call fcn.0052d67c
add esp, 4
push 0
push 0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.MSWSOCK.dll_TransmitFile]
test eax, eax
je 0x46f0bb
push 0
push 0xa
lea eax, [ebp - 0x2010]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x46f0bb
cmp dword [ebp - 0x200e], 0x55aa0000
movq xmm0, qword [ebp - 0x2010]
mov ax, word [ebp - 0x2008]
movq qword [ebp - 0x4230], xmm0
mov word [ebp - 0x4228], ax
je 0x46f099
lea ecx, [ebp - 0x4234]
call fcn.00402b10
mov dword [ebp - 4], 2
lea eax, [ebp - 0x4234]
push dword [ebp - 0x422e]
push str.Bad_data_type._Received_type__04Xh
push eax
call fcn.00415d20
push dword [ebp - 0x4224]
call fcn.0052adae
add esp, 0x10
push edi
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4234]
call fcn.00402750
jmp 0x46f0cc
push str.__SendFile:_finish_transmit_n
call fcn.0052d67c
push dword [ebp - 0x4224]
call fcn.0052adae
add esp, 8
push edi
call ebx
mov eax, 1
jmp 0x46f0ce
push dword [ebp - 0x4224]
call fcn.0052adae
add esp, 4
push edi
call ebx
xor eax, eax
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.005295e2
mov esp, ebp
pop ebp
ret 8