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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641749
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
push esi
mov esi, ecx
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
mov ecx, esi
call fcn.00404180
test eax, eax
jne 0x40a277
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 ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a488
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x2d10], bl
je 0x40a286
mov ecx, esi
call fcn.00407d60
push ebx
mov dword [ebp - 0x22], 0x20009228
mov dword [ebp - 0x1e], 0x1c
mov edx, dword [ebp - 0x20]
mov ax, word [ebp - 0x1c]
mov word [ebp - 0x24], 0x124
mov ecx, dword [ebp - 0x24]
push 0x26
mov dword [0x7095c8], ecx
mov dword [0x7095cc], edx
mov word [0x7095d0], ax
mov ecx, dword [esi + 0x48]
push 0x7095c8
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40a30a
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 edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40a253
mov ecx, dword [esi + 0x48]
push ebx
push 0x1000
push 0x7095c8
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40a348
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 0x40a2ef
mov ecx, dword [0x7095c8]
mov edx, dword [0x7095cc]
mov ax, word [0x7095d0]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov word [ebp - 0x1c], ax
cmp cl, 0x24
je 0x40a3b6
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x18], 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 - 0x18]
call fcn.004014a0
jmp 0x40a47d
cmp dword [0x7095ca], 0x20009228
je 0x40a40b
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x22]
push ecx
lea edx, [ebp - 0x18]
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 0x40a39e
mov eax, dword [0x7095ce]
cmp eax, ebx
jne 0x40a44d
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x18], 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 0x40a39e
push eax
push 0x7095d2
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]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4