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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641460
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 ebx, 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 eax, 4
mov dword [ebp - 4], eax
mov edi, 7
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
mov byte [ebp - 4], 5
mov ecx, ebx
mov dword [ebp - 0x16], eax
mov word [ebp - 0x1c], 0x24
mov dword [ebp - 0x1a], 0x20009229
call fcn.00404180
test eax, eax
jne 0x4084e9
mov byte [ebp - 4], 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
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 [ebx + 0x2d10], 0
je 0x4084f9
mov ecx, ebx
call fcn.00407d60
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
sub eax, dword [edi]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push esi
mov dword [0x7045c8], ecx
mov cx, word [ebp - 0x14]
sar eax, 4
push 0xe
mov dword [0x7045cc], edx
mov word [0x7045d0], cx
mov dword [0x7045d2], eax
mov edx, dword [ebx + 0x48]
push 0x7045c8
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x408575
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 0xffffffff
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 edx, dword [ebx + 0x48]
push esi
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40853d
cmp byte [ebp - 0x1c], 0x24
jne 0x4085d5
cmp dword [ebp - 0x1a], 0x55aa0000
je 0x4085e6
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], 7
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
mov byte [ebp - 4], 5
lea ecx, [ebp + 8]
call fcn.004014a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.00405700
jmp 0x408551
cmp dword [ebp - 0x16], esi
jne 0x4085d5
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x4086f1
jmp 0x408600
mov dword [ebp - 0x1a], 0x20009229
mov word [ebp - 0x1c], 0x124
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax + eax + 0x24]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x16], ecx
mov edx, dword [esi]
mov edi, dword [edx - 0xc]
mov ecx, dword [ebp - 0x18]
mov dx, word [ebp - 0x14]
mov dword [0x7045c8], eax
mov dword [0x7045cc], ecx
mov word [0x7045d0], dx
mov dword [0x7045d2], edi
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x408653
mov eax, dword [eax - 0xc]
push eax
mov ecx, esi
call fcn.00401370
mov eax, dword [esi]
add edi, edi
push edi
push eax
push 0x7045d6
call fcn.00610e50
mov edx, dword [ebp - 0x16]
mov ecx, dword [esi + 0xc]
add esp, 0xc
push 0
add edx, 0xa
push edx
mov dword [edi + 0x7045d6], ecx
mov eax, dword [ebx + 0x48]
push 0x7045c8
push eax
call dword [sym.imp.WS2_32.dll_send]
or edi, 0xffffffff
cmp eax, edi
je 0x40875e
mov ecx, dword [ebx + 0x48]
push 0
push 0xff
push 0x7045c8
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edx, dword [0x7045c8]
mov eax, dword [0x7045cc]
mov cx, word [0x7045d0]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], cx
cmp dl, 0x24
jne 0x40875e
cmp dword [0x7045ca], 0x55aa0000
jne 0x408724
cmp dword [0x7045ce], 0
jne 0x40875e
mov edx, dword [ebp + 8]
add esi, 0x10
cmp esi, dword [edx + 4]
jne 0x408600
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.00405700
mov dword [ebp - 4], 0xffffffff
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
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
mov ecx, 0x700724
call edx
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1a]
push eax
lea ecx, [ebp + 8]
push str.Bad_data_type._Received_type__04Xh
push ecx
call fcn.00405ab0
add esp, 0xc
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
jmp 0x408558