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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449b78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x462014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov ebx, dword [0x468498]
xor esi, esi
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov eax, 4
push 0
push eax
lea eax, [ebp - 0x20]
add eax, esi
push eax
push ebx
call edi
cmp eax, 0xffffffff
je 0x40e0e2
add esi, eax
mov eax, 4
sub eax, esi
cmp esi, 4
jl 0x40e0c1
jmp 0x40e0e9
mov byte [0x4663dc], 1
mov ebx, dword [0x468498]
xor esi, esi
mov eax, 8
push 0
push eax
lea eax, [ebp - 0x28]
add eax, esi
push eax
push ebx
call edi
cmp eax, 0xffffffff
je 0x40e117
add esi, eax
mov eax, 8
sub eax, esi
cmp esi, 8
jl 0x40e0f6
jmp 0x40e11e
mov byte [0x4663dc], 1
mov ebx, dword [0x468498]
xor esi, esi
mov eax, 1
nop dword [eax + eax]
push 0
push eax
lea eax, [ebp - 0x11]
add eax, esi
push eax
push ebx
call edi
cmp eax, 0xffffffff
je 0x40e151
add esi, eax
mov eax, 1
sub eax, esi
cmp esi, 1
jl 0x40e130
jmp 0x40e158
mov byte [0x4663dc], 1
mov ebx, dword [ebp - 0x20]
cmp ebx, 0x1f40
jle 0x40e16d
mov eax, 2
jmp 0x40e275
mov ecx, dword [0x468498]
xor esi, esi
mov dword [ebp - 0x2c], ecx
test ebx, ebx
jle 0x40e1aa
mov eax, ebx
nop
push 0
push eax
mov eax, dword [ebp - 0x18]
add eax, esi
push eax
push ecx
call edi
cmp eax, 0xffffffff
je 0x40e1a0
mov ecx, dword [ebp - 0x2c]
add esi, eax
mov eax, ebx
sub eax, esi
cmp esi, ebx
jl 0x40e180
jmp 0x40e1a7
mov byte [0x4663dc], 1
mov ebx, dword [ebp - 0x20]
mov al, byte [ebp - 0x11]
cmp al, 0x55
jne 0x40e297
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
push 0x7e0
call fcn.0041d3e2
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [eax], esi
lea ecx, [eax + 8]
push ebx
push dword [ebp - 0x18]
mov dword [eax + 4], edi
mov dword [eax + 0x7d8], ebx
call fcn.004020c0
add esp, 8
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004187d0
add esp, 8
mov dword [ebp - 4], 0
mov edx, dword [0x4684ec]
cmp edx, dword [0x4684f0]
je 0x40e243
lea eax, [ebp - 0x1c]
mov dword [edx], 0
cmp edx, eax
je 0x40e233
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [edx], eax
mov byte [edx + 4], 1
add dword [0x4684ec], 8
jmp 0x40e250
mov ecx, dword [ebp - 0x1c]
mov byte [edx + 4], 1
add dword [0x4684ec], 8
jmp 0x40e250
lea eax, [ebp - 0x1c]
push eax
push edx
call fcn.004188e0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x40e273
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x40e273
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x40e291
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cff1
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
push 1
jmp 0x40e271
cmp al, 0x70
jne 0x40e273
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
push 0x4684f4
mov dword [ebp - 0x2c], eax
call fcn.0041c6ac
add esp, 4
test eax, eax
jne 0x40e312
mov ecx, dword [0x4684e0]
mov esi, dword [ecx]
cmp esi, ecx
je 0x40e2f7
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi + 8]
cmp dword [eax], edi
jne 0x40e2d0
cmp dword [eax + 4], edx
je 0x40e2d8
mov esi, dword [esi]
cmp esi, ecx
jne 0x40e2c4
jmp 0x40e2f7
push 0
push ebx
push dword [ebp - 0x18]
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_send]
test ebx, ebx
jne 0x40e2f7
mov eax, dword [esi + 8]
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x4684f4
call fcn.0041c6d1
add esp, 4
test eax, eax
je 0x40e273
push eax
call fcn.0041c26a
push eax
call fcn.0041c26a
int3