Function at 0x4023b0
Capabilities:
Get socket status
Print debug messages
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
mov eax, dword [0x4a3300]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.00402100
mov eax, dword [0x522668]
or eax, dword [0x52266c]
je 0x402829
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x30]
mov ecx, 0x58
lea ebx, [esp + 0xa5]
mov esi, 0x522668
sub ebx, edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xcd]
mov dword [edx + 0x1b0], eax
lea esi, [edx + 0x9b]
mov eax, dword [esp + 0x34]
sub ecx, edx
mov dword [edx + 0x68], 0
mov edi, 0xa
mov dword [edx + 0x6c], 0
mov dword [edx + 0x1b4], eax
mov dword [esp + 0x10], ecx
mov edi, edi
mov eax, dword [ebx + esi]
mov dword [esi - 0x2b], eax
mov eax, dword [ecx + esi]
mov dword [esi - 0x8f], 0
mov dword [esi - 3], eax
test eax, eax
je 0x4024c9
push 0x63
lea eax, [esp + 0x29d]
mov byte [esp + 0x29c], 0
push 0
push eax
call fcn.00453200
movzx eax, byte [esi]
add esp, 0xc
push eax
movzx eax, byte [esi - 1]
push eax
movzx eax, byte [esi - 2]
push eax
movzx eax, byte [esi - 3]
push eax
mov eax, dword [esp + 0x24]
push dword [eax]
lea eax, [esp + 0x2ac]
push 0x4816d8
push eax
call fcn.004582cf
add esp, 0x1c
lea eax, [esp + 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi - 3]
mov edx, 0xfff0
call fcn.004017a0
mov ecx, dword [esp + 0x10]
mov dword [esi - 0x8f], eax
add esi, 4
dec edi
jne 0x402440
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp dword [ebx + 0xc], eax
lea esi, [ebx + 0xc]
mov ecx, 1
mov dword [esp + 0x18], esi
cmovne eax, ecx
cmp dword [ebx + 0x10], edi
je 0x4024f1
inc eax
cmp dword [ebx + 0x14], 0
je 0x4024f8
inc eax
cmp dword [ebx + 0x18], 0
je 0x4024ff
inc eax
cmp dword [ebx + 0x1c], 0
je 0x402506
inc eax
cmp dword [ebx + 0x20], 0
je 0x40250d
inc eax
cmp dword [ebx + 0x24], 0
je 0x402514
inc eax
cmp dword [ebx + 0x28], 0
je 0x40251b
inc eax
cmp dword [ebx + 0x2c], 0
je 0x402522
inc eax
cmp dword [ebx + 0x30], 0
je 0x402529
inc eax
test eax, eax
je 0x402829
call fcn.00409e10
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
mov edi, edi
push 0x3f
lea eax, [esp + 0x29d]
mov byte [esp + 0x29c], 0
push 0
push eax
call fcn.00453200
add esp, 0xc
xor edi, edi
mov edi, edi
mov eax, dword [esi]
test eax, eax
je 0x4025b5
push 0
push 0x40
lea ecx, [esp + 0x2a0]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4025a7
cmp eax, 0xffffffff
jne 0x40259e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4025b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2749
je 0x4025b5
jmp 0x4025a7
cmp eax, 0x10
je 0x40274c
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0
inc edi
add esi, 4
cmp edi, 0xa
jb 0x402560
xor eax, eax
lea edi, [ebx + 0xc]
cmp dword [edi], eax
mov ecx, 1
cmovne eax, ecx
cmp dword [ebx + 0x10], 0
je 0x4025d4
inc eax
cmp dword [ebx + 0x14], 0
je 0x4025db
inc eax
cmp dword [ebx + 0x18], 0
je 0x4025e2
inc eax
cmp dword [ebx + 0x1c], 0
je 0x4025e9
inc eax
cmp dword [ebx + 0x20], 0
je 0x4025f0
inc eax
cmp dword [ebx + 0x24], 0
je 0x4025f7
inc eax
cmp dword [ebx + 0x28], 0
je 0x4025fe
inc eax
cmp dword [ebx + 0x2c], 0
je 0x402605
inc eax
cmp dword [ebx + 0x30], 0
je 0x40260c
inc eax
test eax, eax
je 0x40280a
call fcn.00409e10
sub eax, dword [esp + 0x20]
sbb edx, dword [esp + 0x10]
test edx, edx
jg 0x40280a
jl 0x402636
cmp eax, 0x1f4
ja 0x40280a
push 0x100
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00453200
add esp, 0xc
lea eax, [esp + 0x194]
xor esi, esi
mov dword [esp + 0x30], esi
push 0x100
push esi
push eax
call fcn.00453200
xor edx, edx
mov eax, 0xfffffff4
add esp, 0xc
mov dword [esp + 0x2c], edx
sub eax, ebx
mov dword [esp + 0x190], edx
mov dword [esp + 0x24], eax
mov eax, 0xa
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0x64
mov dword [esp + 0x1c], eax
mov ebx, dword [edi]
test ebx, ebx
je 0x402715
xor ecx, ecx
test esi, esi
je 0x4026bb
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x24]
mov eax, dword [eax + edi]
lea ebx, [ebx]
cmp dword [esp + ecx*4 + 0x34], eax
je 0x4026bb
inc ecx
cmp ecx, esi
jb 0x4026b0
cmp ecx, esi
jne 0x4026d1
cmp esi, 0x40
jae 0x4026d1
mov dword [esp + ecx*4 + 0x34], ebx
mov esi, dword [esp + 0x30]
inc esi
mov dword [esp + 0x30], esi
xor eax, eax
test edx, edx
je 0x4026f2
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x24]
mov ebx, dword [edi]
mov ecx, dword [ecx + edi]
cmp dword [esp + eax*4 + 0x194], ecx
je 0x4026f2
inc eax
cmp eax, edx
jb 0x4026e4
cmp eax, edx
jne 0x402711
cmp edx, 0x40
jae 0x402711
mov dword [esp + eax*4 + 0x194], ebx
mov edx, dword [esp + 0x190]
inc edx
mov dword [esp + 0x190], edx
mov eax, dword [esp + 0x1c]
add edi, 4
dec eax
mov dword [esp + 0x1c], eax
jne 0x402693
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x194]
push eax
push 0
lea eax, [esp + 0x3c]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
jmp 0x402540
mov eax, dword [ebx + 8]
test eax, eax
je 0x402761
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 8], 0
movdqu xmm0, xmmword [esp + 0x298]
push 0x63
push 0
movdqu xmmword [ebx + 0x186], xmm0
mov eax, dword [ebx + edi*4 + 0xc]
mov dword [ebx + 8], eax
mov dword [ebx + edi*4 + 0xc], 0
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + edi*4 + 0x98]
mov dword [ebx + 0x6c], eax
lea eax, [esp + 0x309]
push eax
mov byte [esp + 0x30c], 0
call fcn.00453200
movzx eax, byte [ebx + 0x6f]
add esp, 0xc
push eax
movzx eax, byte [ebx + 0x6e]
push eax
movzx eax, byte [ebx + 0x6d]
push eax
movzx eax, byte [ebx + 0x6c]
push eax
call fcn.00409e10
sub eax, dword [esp + 0x30]
sbb edx, dword [esp + 0x20]
push edx
push eax
push dword [ebx]
lea eax, [esp + 0x31c]
push 0x481700
push eax
call fcn.004582cf
add esp, 0x24
lea eax, [esp + 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00409e10
mov edi, dword [esp + 0x18]
mov dword [ebx + 0x1d0], eax
mov dword [ebx + 0x1d4], edx
mov esi, 0xa
nop
mov eax, dword [edi]
test eax, eax
je 0x402823
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0
add edi, 4
dec esi
jne 0x402810
mov ecx, dword [esp + 0x36c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004524fc
mov esp, ebp
pop ebp
ret