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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push esi
xor ebx, ebx
xor eax, eax
push edi
mov esi, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
push 0x3ff
lea ecx, [ebp - 0x433]
push ebx
push ecx
mov word [ebp - 0x34], 0x124
mov dword [ebp - 0x32], 0x20009206
mov dword [ebp - 0x2e], ebx
mov byte [ebp - 0x434], bl
call fcn.00555020
add esp, 0xc
xor edi, edi
mov ecx, esi
call fcn.0050aad0
test eax, eax
je 0x50ad6b
mov eax, dword [esi + 0x3c]
push ebx
push 0xa
lea edx, [ebp - 0x34]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x50ad82
mov edx, dword [esi + 0x3c]
push ebx
push 0x400
lea ecx, [ebp - 0x434]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
cmp eax, ecx
je 0x50ad97
cmp eax, ebx
jne 0x50ad34
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x50acd5
or ecx, 0xffffffff
cmp byte [ebp - 0x434], 0x24
mov eax, dword [ebp - 0x434]
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x34], eax
mov ax, word [ebp - 0x42c]
mov dword [ebp - 0x30], edx
mov word [ebp - 0x2c], ax
je 0x50ada8
mov dword [ebp - 4], ecx
xor ecx, ecx
mov word [ebp - 0x28], cx
lea eax, [ecx - 3]
jmp 0x50aefe
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, 0xfffffffe
jmp 0x50aefe
mov dword [ebp - 4], 0xffffffff
xor ecx, ecx
mov word [ebp - 0x28], cx
or eax, 0xffffffff
jmp 0x50aefe
mov dword [ebp - 4], ecx
xor edx, edx
mov word [ebp - 0x28], dx
lea eax, [edx - 2]
jmp 0x50aefe
mov eax, dword [ebp - 0x42e]
cmp eax, ebx
je 0x50ae90
cmp dword [ebp - 0x432], 0x55aa0000
je 0x50ae28
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x32]
push ecx
lea edx, [ebp + 8]
push str.Wrong_type_of_block._Type_received:__04Xh.
push edx
call fcn.004060d0
add esp, 0xc
mov byte [ebp - 4], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50ae13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
xor ecx, ecx
mov word [ebp - 0x28], cx
lea eax, [ecx - 5]
jmp 0x50aefe
cmp eax, 8
je 0x50ae3e
mov dword [ebp - 4], ecx
xor edx, edx
mov word [ebp - 0x28], dx
lea eax, [edx - 6]
jmp 0x50aefe
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x42a]
mov dword [esi + 0x2afc], 0x24
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x426]
mov dword [eax + 0x14], edx
mov dl, byte [ebp - 0x422]
mov byte [esi + 0x1a], dl
mov byte [esi + 0x2afa], 1
movzx edx, word [eax + 0x12]
mov word [esi + 0x14], dx
movzx edx, word [eax + 0x10]
mov word [esi + 0x16], dx
mov ax, word [eax + 0x16]
mov word [esi + 0x18], ax
mov dword [ebp - 4], ecx
xor ecx, ecx
mov word [ebp - 0x28], cx
jmp 0x50aefc
cmp dword [ebp - 0x432], 0x55aa0000
je 0x50aed0
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x32]
push ecx
lea edx, [ebp + 8]
push str.Wrong_type_of_block._Type_received:__04Xh.
push edx
call fcn.004060d0
add esp, 0xc
jmp 0x50adf1
mov edx, dword [ebp + 8]
push 0x34
push ebx
push edx
mov dword [esi + 0x2afc], 0x10
call fcn.00555020
add esp, 0xc
mov byte [esi + 0x2afa], bl
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp - 0x28], ax
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ebp - 0x18], ebx
pop esi
mov dword [ebp - 0x14], 7
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4