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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641400
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x700724]
mov edx, dword [eax + 0xc]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x700724
mov dword [ebp - 0x14], esi
call edx
add eax, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 1
mov edx, dword [0x700724]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, 4
mov dword [ebp - 4], eax
mov edi, 7
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
mov byte [ebp - 4], 5
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x20], 0x24
mov dword [ebp - 0x10], 0x20009136
cmp dword [ebp + 0xc], ebx
jne 0x407e76
mov dword [ebp - 0x10], 0x20009137
mov edx, dword [ebp - 0x10]
mov ecx, esi
mov dword [ebp - 0x1e], edx
call fcn.00404180
test eax, eax
jne 0x407ebc
mov byte [ebp - 4], 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
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 8
cmp byte [esi + 0x2d10], 0
je 0x407ecc
mov ecx, esi
call fcn.00407d60
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
sub eax, dword [edi]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push ebx
mov dword [0x701dc8], ecx
mov cx, word [ebp - 0x18]
sar eax, 4
push 0xe
mov dword [0x701dcc], edx
mov word [0x701dd0], cx
mov dword [0x701dd2], eax
mov edx, dword [esi + 0x48]
push 0x701dc8
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x407f48
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
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 8
mov edx, dword [esi + 0x48]
push ebx
push 0xa
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
or esi, 0xffffffff
cmp eax, esi
jne 0x407f94
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x30]
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 8
cmp byte [ebp - 0x20], 0x24
jne 0x407fde
cmp dword [ebp - 0x1e], 0x55aa0000
je 0x40800a
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 - 0x1e]
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 - 0x4c]
call fcn.00405700
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x30]
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 8
cmp dword [ebp - 0x1a], ebx
jne 0x407fde
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x408172
lea ebx, [ebx]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1e], eax
mov word [ebp - 0x20], 0x124
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [edx - 0xc]
add ecx, eax
lea eax, [ecx + ecx + 0x29]
mov dword [ebp - 0x1a], eax
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov ecx, dword [ecx - 0xc]
mov ebx, dword [edx - 0xc]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [0x701dc8], eax
mov ax, word [ebp - 0x18]
mov dword [0x701dcc], edx
mov word [0x701dd0], ax
mov dword [0x701dd2], ecx
mov eax, dword [esi]
cmp dword [eax - 4], 1
mov dword [ebp + 0xc], ecx
jle 0x408085
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, esi
call fcn.00401370
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
add ecx, ecx
push ecx
push eax
push 0x701dd6
call fcn.00610e50
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [eax + 0x701dd6], ebx
mov eax, dword [esi + 4]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x4080b8
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esi + 4]
call fcn.00401370
mov edi, dword [esi + 4]
lea eax, [ebx + ebx]
push eax
mov eax, dword [ebp + 0xc]
add eax, eax
lea ecx, [eax + 0x701dda]
push edi
push ecx
call fcn.00610e50
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 8]
mov edi, dword [ebp - 0x14]
lea eax, [ebx + edx]
add eax, eax
mov dword [eax + 0x701dda], ecx
mov dl, byte [esi + 0xc]
add esp, 0xc
mov byte [eax + 0x701dde], dl
mov eax, dword [ebp - 0x1a]
mov ecx, dword [edi + 0x48]
push 0
add eax, 0xa
push eax
push 0x701dc8
push ecx
call dword [sym.imp.WS2_32.dll_send]
or ebx, 0xffffffff
cmp eax, ebx
je 0x4081e0
mov edx, dword [edi + 0x48]
push 0
push 0xff
push 0x701dc8
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [0x701dc8]
mov ecx, dword [0x701dcc]
mov dx, word [0x701dd0]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x18], dx
cmp al, 0x24
jne 0x4081e0
cmp dword [0x701dca], 0x55aa0000
jne 0x4081a5
cmp dword [0x701dce], 0
jne 0x4081e0
mov eax, dword [ebp + 8]
add esi, 0x10
cmp esi, dword [eax + 4]
jne 0x408020
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.00405700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004052c0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
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 - 0x1e]
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 - 0x4c]
call fcn.00405700
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x30]
call fcn.004052c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8