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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6415d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
mov edx, dword [0x700724]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 4
mov edi, 7
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov byte [ebp - 4], 5
mov ecx, esi
mov dword [ebp - 0x16], ebx
mov word [ebp - 0x1c], 0x124
mov dword [ebp - 0x1a], 0x20009138
call fcn.00404180
test eax, eax
jne 0x409d18
mov byte [ebp - 4], 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004052c0
pop edi
pop esi
mov eax, 0xe0000001
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 0x409d27
mov ecx, esi
call fcn.00407d60
mov ecx, dword [esi + 0x48]
push ebx
push 0xa
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
or edi, 0xffffffff
cmp eax, edi
jne 0x409d73
mov byte [ebp - 4], 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
call fcn.004052c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x48]
push ebx
push 0x1000
push 0x706dc8
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, edi
jne 0x409dc0
mov byte [ebp - 4], 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
call fcn.004052c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x706dc8]
mov edx, dword [0x706dcc]
mov cx, word [0x706dd0]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x14], cx
cmp al, 0x24
je 0x409e2e
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
call fcn.004014a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.00405700
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
call fcn.004052c0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
cmp dword [0x706dca], 0x20009138
je 0x409e6b
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1a]
push ecx
lea edx, [ebp + 8]
push str.Bad_data_type.Received_type__04Xh
push edx
call fcn.00405ab0
add esp, 0xc
jmp 0x409df6
mov eax, dword [0x706dce]
cmp eax, ebx
jne 0x409e8e
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp + 8], eax
jmp 0x409df6
mov ecx, dword [ebp + 8]
push eax
push 0x706dd2
call fcn.00408c70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.00405700
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
call fcn.004052c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4