Function at 0x4010cd
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x4036b0
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x1c]
xor ebx, ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], eax
mov ecx, dword [esi + 0x12c]
mov eax, dword [esi + 0x234]
inc ecx
cmp eax, ebx
mov dword [esi + 0x12c], ecx
jle 0x403789
lea ebp, [esi + 0x238]
mov edx, dword [esi + 0x28]
xor eax, eax
test edx, edx
jbe 0x40370d
mov ecx, dword [ebp]
mov edi, dword [ecx + 0x408]
lea ecx, [esi + 0x2c]
cmp dword [ecx], edi
je 0x40370d
inc eax
add ecx, 4
cmp eax, edx
jb 0x403701
cmp eax, edx
jne 0x40372a
cmp edx, 0x40
jae 0x40372a
mov edx, dword [ebp]
mov ecx, dword [edx + 0x408]
mov dword [esi + eax*4 + 0x2c], ecx
mov eax, dword [esi + 0x28]
inc eax
mov dword [esi + 0x28], eax
mov edx, dword [esi + 0x12c]
xor eax, eax
test edx, edx
jbe 0x403751
mov ecx, dword [ebp]
mov edi, dword [ecx + 0x408]
lea ecx, [esi + 0x130]
cmp dword [ecx], edi
je 0x403751
inc eax
add ecx, 4
cmp eax, edx
jb 0x403745
cmp eax, edx
jne 0x403777
cmp edx, 0x40
jae 0x403777
mov edx, dword [ebp]
mov ecx, dword [edx + 0x408]
mov dword [esi + eax*4 + 0x130], ecx
mov eax, dword [esi + 0x12c]
inc eax
mov dword [esi + 0x12c], eax
mov eax, dword [esi + 0x234]
inc ebx
add ebp, 4
cmp ebx, eax
jl 0x4036ec
push 0
lea eax, [esi + 0x28]
push 0
lea edi, [esi + 0x12c]
push eax
push edi
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
mov dword [esi + 0x230], eax
je 0x403945
mov edx, dword [esi + 0x1c]
push edi
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x403805
mov ebp, dword [esi + 0x230]
mov eax, dword [esi + 0x1c]
push 0
dec ebp
push 0
push eax
mov dword [esi + 0x230], ebp
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
je 0x4037f2
push eax
mov ecx, esi
call fcn.00401037
test eax, eax
je 0x40396f
jmp 0x403805
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
jne 0x40395f
mov eax, dword [esi + 0x230]
xor ebx, ebx
test eax, eax
jle 0x403938
lea ecx, [esi + 0x238]
mov dword [esp + 0x10], ecx
cmp ebx, dword [esi + 0x234]
jge 0x403938
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x12c]
push eax
mov edi, dword [edx]
mov eax, dword [edi + 0x408]
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40391e
mov edx, dword [esi + 0x230]
push 0
dec edx
push 0x400
mov dword [esi + 0x230], edx
mov ecx, dword [edi + 0x408]
push edi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
push edi
push 0x418e74
mov ebp, eax
call fcn.00404256
add esp, 8
test ebp, ebp
jg 0x4038b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40391e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv___failed_with_error__d_n
call fcn.00404256
add esp, 8
mov ecx, esi
push ebx
call fcn.00401032
jmp 0x40391e
mov ebp, str.first
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x4038dd
test cl, cl
je 0x4038d9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x4038dd
add eax, 2
add ebp, 2
test cl, cl
jne 0x4038b8
xor eax, eax
jmp 0x4038e2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4038fc
lea ebp, [esi + 4]
push str.delay.conf
mov ecx, ebp
call fcn.0040107d
mov ecx, ebp
call fcn.0040106e
mov ecx, dword [edi + 0x408]
mov eax, dword [esi]
push 0x400
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
push edi
push 0x418e74
call fcn.00404256
add esp, 8
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x230]
inc ebx
add ecx, 4
test eax, eax
mov dword [esp + 0x10], ecx
jg 0x40381f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4036b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.select___failed_with_error__d_n
call fcn.00404256
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call edi
push eax
push str.accept___failed_with_error__d_n
call fcn.00404256
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret