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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641689
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
push edi
mov edi, ecx
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
mov ecx, edi
call fcn.00404180
test eax, eax
jne 0x409f69
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004044a0
mov esi, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a1b9
cmp byte [edi + 0x2d10], bl
je 0x409f78
mov ecx, edi
call fcn.00407d60
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
mov dword [ebp - 0x1e], 0x20009139
lea edx, [eax + 0x1c]
mov word [ebp - 0x20], 0x124
mov ecx, dword [ebp - 0x20]
mov dword [0x7081c8], ecx
mov dword [ebp - 0x1a], edx
mov edx, dword [ebp - 0x1c]
mov cx, word [ebp - 0x18]
mov dword [0x7081cc], edx
mov word [0x7081d0], cx
mov dword [0x7081d2], eax
mov eax, dword [esi]
cmp dword [eax - 4], 1
mov edx, dword [eax - 0xc]
mov dword [ebp + 0xc], edx
jle 0x409fcb
push edx
mov ecx, esi
call fcn.00404a90
mov ecx, dword [ebp + 0xc]
mov esi, dword [esi]
push ecx
push esi
push 0x7081d6
call fcn.00610e50
mov edx, dword [ebp - 0x1a]
mov eax, dword [edi + 0x48]
add esp, 0xc
push ebx
add edx, 0xa
push edx
push 0x7081c8
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40a022
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004044a0
mov esi, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 1
jmp 0x409f3e
mov ecx, dword [edi + 0x48]
push ebx
push 0x1000
push 0x7081c8
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40a079
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004044a0
mov esi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x409f54
mov ecx, dword [0x7081c8]
mov edx, dword [0x7081cc]
mov ax, word [0x7081d0]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov word [ebp - 0x18], ax
cmp cl, 0x24
je 0x40a0e7
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004044a0
mov esi, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.004014a0
jmp 0x40a1ae
cmp dword [0x7081ca], 0x20009139
je 0x40a13c
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x1e]
push ecx
lea edx, [ebp + 0xc]
push str.Bad_data_type.Received_type__04Xh
push edx
call fcn.00405ab0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004044a0
mov esi, dword [ebp + 8]
add esp, 0x10
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xd
jmp 0x40a0cf
mov eax, dword [0x7081ce]
cmp eax, ebx
jne 0x40a17e
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004044a0
mov esi, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x10
jmp 0x40a0cf
push eax
push 0x7081d2
lea ecx, [ebp - 0x10]
call fcn.00408c70
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004044a0
mov esi, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.004014a0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8