Function at 0x10015130
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x205c
call fcn.1009b8d0
mov eax, dword [0x10112018]
xor eax, esp
mov dword [esp + 0x2058], eax
mov eax, dword [sym.ACE.dll_class_ACE_Time_Value_const_ACE_Time_Value::zero]
mov edx, dword [0x10115d70]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x10115d6c]
mov dword [esp + 0x28], eax
mov eax, dword [0x10115d74]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x10115d78]
mov dword [esp + 0x34], eax
push 0x100c
lea eax, [edi + 0x3048]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], edx
mov edx, dword [0x10115d7c]
xor ebx, ebx
push eax
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x1060], 0xffffffff
mov dword [esp + 0x105c], ebx
mov dword [esp + 0x1064], ebx
mov dword [esp + 0x20], ebx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add edi, 0x4060
nop
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
cmp ebx, dword [edx + 0x405c]
jae 0x1001522d
mov esi, dword [edi]
inc ebx
add edi, 4
cmp esi, 0xffffffff
je 0x1001522d
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x100151d0
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x1001520e
cmp dword [esp + eax*4 + 0x4c], esi
je 0x1001520e
inc eax
cmp eax, ecx
jb 0x10015203
cmp eax, ecx
jne 0x10015227
cmp ecx, 0x400
jae 0x10015227
mov dword [esp + eax*4 + 0x4c], esi
mov ecx, dword [esp + 0x48]
inc ecx
mov dword [esp + 0x48], ecx
inc dword [esp + 0x40]
jmp 0x100151d4
mov edi, edx
xor ebx, ebx
add edi, 0x506c
jmp 0x10015240
mov edx, dword [esp + 0x10]
cmp ebx, dword [edx + 0x5068]
jae 0x1001529a
mov esi, dword [edi]
inc ebx
add edi, 4
cmp esi, 0xffffffff
je 0x1001529a
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov ecx, dword [esp + 0x48]
test eax, eax
jne 0x10015240
test ecx, ecx
je 0x1001527b
nop
cmp dword [esp + eax*4 + 0x4c], esi
je 0x1001527b
inc eax
cmp eax, ecx
jb 0x10015270
cmp eax, ecx
jne 0x10015294
cmp ecx, 0x400
jae 0x10015294
mov dword [esp + eax*4 + 0x4c], esi
mov ecx, dword [esp + 0x48]
inc ecx
mov dword [esp + 0x48], ecx
inc dword [esp + 0x40]
jmp 0x10015240
lea edx, [esp + 0x4c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], edx
jmp 0x100152b4
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x20], ecx
jae 0x10015411
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
inc dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x18], eax
cmp edi, 0xffffffff
je 0x10015411
mov ebx, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [esp + 0x1058]
push eax
push edi
call ebx
test eax, eax
jne 0x1001532f
mov ecx, dword [esp + 0x1058]
test ecx, ecx
je 0x1001530e
jmp 0x10015300
cmp dword [esp + eax*4 + 0x105c], edi
je 0x1001530e
inc eax
cmp eax, ecx
jb 0x10015300
cmp eax, ecx
jne 0x10015328
cmp ecx, 0x400
jae 0x10015328
mov dword [esp + eax*4 + 0x105c], edi
inc dword [esp + 0x1058]
inc dword [esp + 0x1050]
xor ecx, ecx
cmp dword [esp + 0x1050], ecx
lea edx, [esp + 0x1058]
setle cl
lea esi, [ecx - 1]
lea ecx, [esp + 0x28]
and esi, edx
call sym.ACE.dll_public:_struct_timeval_const____thiscall_ACE_Time_Value::operator_struct_timeval_const__void_const
push eax
push 0
push 0
push esi
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x10015375
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], esi
jmp 0x10015379
test eax, eax
jns 0x10015395
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x124]
push 0x1ff
push edi
mov dword [esp + 0x1c], 1
call edx
lea eax, [esp + 0x1058]
push eax
push edi
call ebx
test eax, eax
je 0x100152b0
mov ecx, dword [esp + 0x1058]
xor eax, eax
test ecx, ecx
je 0x10015405
cmp dword [esp + eax*4 + 0x105c], edi
je 0x100153cf
inc eax
cmp eax, ecx
jb 0x100153b5
dec dword [esp + 0x1050]
jmp 0x100152b0
lea edx, [ecx - 1]
cmp eax, edx
jae 0x100153fd
jmp 0x100153e0
mov ecx, dword [esp + eax*4 + 0x1060]
mov dword [esp + eax*4 + 0x105c], ecx
mov ecx, dword [esp + 0x1058]
inc eax
lea edx, [ecx - 1]
cmp eax, edx
jb 0x100153e0
dec ecx
mov dword [esp + 0x1058], ecx
dec dword [esp + 0x1050]
jmp 0x100152b0
mov ecx, dword [esp + 0x2064]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009acfd
mov esp, ebp
pop ebp
ret