Function at 0x472510
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565b84
mov eax, dword fs:[0]
push eax
sub esp, 0x424
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 eax, dword [ebp + 0x10]
push 0x3ff
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.00531bd0
add esp, 0xc
lea ecx, [ebp - 0x430]
call fcn.00446740
mov dword [ebp - 4], 0
lea eax, [ebp - 0x41c]
mov esi, dword [ebp + 8]
push 0
push 0xa
push eax
push esi
mov word [ebp - 0x41c], 0x24
mov dword [ebp - 0x416], 0
mov dword [ebp - 0x41a], 0x55aa0000
call dword [sym.imp.WS2_32.dll_send]
or edi, 0xffffffff
cmp eax, edi
je 0x4727f7
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jbe 0x4726d4
mov edi, edi
push 0
push 0x400
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4727f4
cmp byte [ebp - 0x410], 0x24
movq xmm0, qword [ebp - 0x410]
mov ax, word [ebp - 0x408]
movq qword [ebp - 0x41c], xmm0
mov word [ebp - 0x414], ax
jne 0x472787
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x40e], eax
jne 0x472731
cmp dword [ebp - 0x40a], 0
je 0x4726de
movzx edi, byte [ebp - 0x406]
lea eax, [ebp - 0x402]
push edi
push eax
lea ecx, [ebp - 0x430]
call fcn.00402600
movzx esi, byte [ebp + edi*2 - 0x402]
lea eax, [ebp - 0x3fe]
push esi
lea eax, [eax + edi*2]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00402600
lea ecx, [esi + edi]
mov eax, dword [ebp + ecx*2 - 0x3fe]
mov dword [ebp - 0x428], eax
mov al, byte [ebp + ecx*2 - 0x3fa]
mov ecx, dword [ebp - 0x420]
mov byte [ebp - 0x424], al
lea eax, [ebp - 0x430]
push eax
call fcn.004735c0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x41c]
push 0
push 0xa
push eax
push esi
mov word [ebp - 0x41c], 0x24
mov dword [ebp - 0x416], 0
mov dword [ebp - 0x41a], 0x55aa0000
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4727f4
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x4725c0
or edi, 0xffffffff
mov esi, 1
jmp 0x4727f9
lea ecx, [ebp - 0x420]
call fcn.00402b10
mov byte [ebp - 4], 6
lea eax, [ebp - 0x420]
push ebx
push str.RecvBWLists:_bad_data_length._Step__d.
push eax
call fcn.00415d20
add esp, 0xc
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x420]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4727f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4727f7
lea ecx, [ebp - 0x420]
call fcn.00402b10
mov byte [ebp - 4], 4
lea eax, [ebp - 0x420]
push dword [ebp - 0x41a]
push ebx
push str.RecvBWLists:_bad_data_type._Step__d._Received_type__04Xh
push eax
call fcn.00415d20
add esp, 0x10
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x420]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4727f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4727f7
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4727a3
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x420], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x420]
push ebx
push 0x58d620
push eax
call fcn.00415d20
add esp, 0xc
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x420]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4727f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4727f7
or edi, 0xffffffff
xor esi, esi
mov dword [ebp - 4], 8
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x420], eax
mov byte [ebp - 4], 8
mov ecx, edi
mov edx, dword [ebp - 0x42c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47282f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x430]
mov dword [ebp - 0x420], eax
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x430]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x472866
mov ecx, dword [ebx]
push ebx
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 - 0x10]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 0x10