Function at 0x40df00
Capabilities:
Print debug messages
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x994
mov eax, dword [0x4a3300]
xor eax, esp
mov dword [esp + 0x990], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ecx
push ebx
push esi
mov esi, edx
push edi
test eax, eax
je 0x40e290
test esi, esi
je 0x40e290
cmp esi, 0x5a0
ja 0x40e290
call fcn.00409e10
mov ecx, edx
mov dword [esp + 0xc], eax
or eax, ecx
mov dword [esp + 0x10], ecx
je 0x40e290
mov ebx, dword [0x728ff0]
xor edi, edi
mov dword [esp + 0x18], edi
xorps xmm0, xmm0
mov dword [esp + 0x2c], edi
movdqu xmmword [esp + 0x1c], xmm0
test ebx, ebx
je 0x40dfb5
push 0xec
lea eax, [esp + 0x48]
push edi
push eax
call fcn.00453200
add esp, 0xc
mov dword [esp + 0x40], ebx
lea edx, [esp + 0x18]
lea ecx, [esp + 0x40]
call fcn.0040dcf0
mov edi, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x728ff0], eax
cmp dword [esp + 0x1c], 0
jne 0x40e03a
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x18]
call fcn.0040dcf0
test eax, eax
je 0x40e290
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x131]
push 0x63
push 0
push eax
mov dword [0x728ff0], ebx
mov byte [esp + 0x13c], 0
call fcn.00453200
add esp, 0xc
mov eax, ebx
shr eax, 0x18
push eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
push eax
mov eax, ebx
shr eax, 8
movzx eax, al
push eax
movzx eax, bl
push eax
lea eax, [esp + 0x140]
push 0x482718
push eax
call fcn.004582cf
add esp, 0x18
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [esp + 0x18]
push 0x7ff
lea eax, [esp + 0x19d]
push 0
push eax
call fcn.00453200
movdqu xmm0, xmmword [0x727688]
lea eax, [esi + 0x54]
mov dword [esp + 0x1aa], 0x2713
mov word [esp + 0x1a4], ax
add esp, 0xc
mov eax, dword [0x727600]
mov dword [esp + 0x1a2], eax
mov eax, dword [0x727604]
mov dword [esp + 0x1a6], eax
mov eax, 1
mov word [esp + 0x1aa], ax
mov eax, dword [0x727608]
mov dword [esp + 0x1ac], eax
mov eax, dword [0x72760c]
movdqu xmmword [esp + 0x1bc], xmm0
mov dword [esp + 0x1b0], eax
movdqu xmm0, xmmword [0x727698]
mov eax, dword [0x727610]
mov dword [esp + 0x1b4], eax
mov eax, dword [0x727614]
push esi
push dword [esp + 0x34]
movdqu xmmword [esp + 0x1d4], xmm0
mov dword [esp + 0x1c0], eax
lea eax, [esp + 0x1f4]
movdqu xmm0, xmmword [esp + 0x28]
push eax
movdqu xmmword [esp + 0x1e8], xmm0
call fcn.00452bb0
add esp, 0xc
lea eax, [esp + 0x1dc]
mov edx, esi
lea ecx, [esp + 0x1ec]
push eax
call fcn.0040a210
movzx esi, word [esp + 0x19c]
lea ecx, [esp + 0x19c]
add esp, 4
mov dword [esp + 0x19a], 0
mov edx, esi
call fcn.00409ee0
mov dword [esp + 0x19a], eax
mov eax, dword [0x729004]
test eax, eax
push 0
cmove eax, dword [esp + 0x1e4]
mov dword [0x729004], eax
lea eax, [esp + 0x19c]
push esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp dword [esp + 0x14], 0
je 0x40e1c9
cmp dword [ebp + 0xc], 0
jbe 0x40e1c9
call fcn.00409e10
sub eax, dword [esp + 0xc]
sbb edx, dword [esp + 0x10]
test edx, edx
jg 0x40e1c9
jl 0x40e190
cmp eax, 0x1f4
ja 0x40e1c9
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40e1a0
push 2
push 4
lea eax, [esp + 0x1a0]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x40e1c9
cmp eax, 0xffffffff
jne 0x40e1ed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40e228
xor ebx, ebx
test edi, edi
je 0x40e1d6
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x990]
xor ecx, esp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x40e1c9
mov esi, dword [esp + 0x198]
cmp esi, 0x11
jb 0x40e1c9
cmp esi, dword [ebp + 0xc]
ja 0x40e1c9
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
push 0x4004667f
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x40e1c9
mov eax, dword [esp + 0x3c]
cmp eax, esi
jae 0x40e255
push 1
call ebx
call fcn.00409e10
sub eax, dword [esp + 0xc]
sbb edx, dword [esp + 0x10]
mov dword [esp + 0x34], edx
js 0x40e1a0
jg 0x40e1c9
cmp eax, 0x1f4
jbe 0x40e1a0
jmp 0x40e1c9
jne 0x40e1c9
push 0
push esi
mov esi, dword [esp + 0x1c]
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
mov ecx, esi
lea eax, [esp + 0x20]
mov edx, ebx
push eax
call fcn.0040a210
mov edi, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x40e1cb
mov dword [esi], ebx
jmp 0x40e1cb
mov ecx, dword [esp + 0x99c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004524fc
mov esp, ebp
pop ebp
ret