Function at 0x100f0bd0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x320
push ebx
push ebp
mov ebp, dword [esp + 0x32c]
push esi
push edi
or edi, 0xffffffff
xor esi, esi
xor ebx, ebx
cmp ebp, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jne 0x100f0c21
cmp dword [esp + 0x338], edi
jne 0x100f0c21
cmp dword [esp + 0x33c], edi
jne 0x100f0c21
mov eax, dword [esp + 0x340]
push eax
call fcn.100f0ba0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x320
ret
mov eax, dword [esp + 0x340]
cmp eax, esi
jle 0x100f0c3b
mov ebx, eax
call fcn.100fedb0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
xor eax, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x128], esi
je 0x100f0c74
mov esi, 1
mov edi, ebp
mov eax, esi
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x338]
cmp ebp, 0xffffffff
je 0x100f0cee
xor ecx, ecx
test esi, esi
jbe 0x100f0c99
lea edx, [esp + 0x12c]
cmp dword [edx], ebp
je 0x100f0c99
inc ecx
add edx, 4
cmp ecx, esi
jb 0x100f0c8d
cmp ecx, esi
jne 0x100f0cb8
cmp esi, 0x40
jae 0x100f0cb8
mov dword [esp + ecx*4 + 0x12c], ebp
mov esi, dword [esp + 0x128]
inc esi
mov dword [esp + 0x128], esi
xor ecx, ecx
test eax, eax
jbe 0x100f0cce
lea edx, [esp + 0x28]
cmp dword [edx], ebp
je 0x100f0cce
inc ecx
add edx, 4
cmp ecx, eax
jb 0x100f0cc2
cmp ecx, eax
jne 0x100f0ce4
cmp eax, 0x40
jae 0x100f0ce4
mov dword [esp + ecx*4 + 0x28], ebp
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp ebp, edi
jbe 0x100f0cee
mov edi, ebp
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x33c]
xor ecx, ecx
cmp ebp, 0xffffffff
mov dword [esp + 0x22c], ecx
je 0x100f0d4c
mov ecx, 1
xor edx, edx
test eax, eax
mov dword [esp + 0x230], ebp
mov dword [esp + 0x22c], ecx
jbe 0x100f0d30
lea edi, [esp + 0x28]
cmp dword [edi], ebp
je 0x100f0d2c
inc edx
add edi, 4
cmp edx, eax
jb 0x100f0d20
mov edi, dword [esp + 0x10]
cmp edx, eax
jne 0x100f0d46
cmp eax, 0x40
jae 0x100f0d46
mov dword [esp + edx*4 + 0x28], ebp
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp ebp, edi
jbe 0x100f0d4c
mov edi, ebp
mov ebp, dword [esp + 0x340]
xor edx, edx
test ebp, ebp
setl dl
dec edx
lea eax, [esp + 0x1c]
and edx, eax
inc edi
mov ebp, edx
mov dword [esp + 0x10], edi
jmp 0x100f0d78
mov esi, dword [esp + 0x128]
mov ecx, dword [esp + 0x22c]
mov edi, dword [esp + 0x340]
xor eax, eax
cmp edi, eax
jle 0x100f0dbd
mov eax, 0x10624dd3
mov edi, 0x3e8
imul ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebx
mov dword [esp + 0x1c], edx
cdq
idiv edi
mov edi, dword [esp + 0x340]
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 0x20], edx
jmp 0x100f0dc7
jne 0x100f0dc7
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x22c]
lea eax, [esp + 0x24]
and ecx, edx
push ebp
push eax
neg esi
sbb esi, esi
lea eax, [esp + 0x130]
push ecx
mov ecx, dword [esp + 0x1c]
and esi, eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x100f0e47
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x100f0e14
mov ecx, dword [0x1030bb5c]
test ecx, ecx
jne 0x100f0e4b
cmp eax, 0x2714
jne 0x100f0e4b
test edi, edi
jle 0x100f0d6a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.100fedb0
push edx
push eax
call fcn.100fede0
mov ebx, dword [esp + 0x350]
add esp, 0x10
sub ebx, eax
test ebx, ebx
jle 0x100f0e5b
jmp 0x100f0d6a
test eax, eax
jge 0x100f0e59
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x320
ret
jne 0x100f0e68
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x320
ret
mov edi, dword [esp + 0x334]
xor esi, esi
cmp edi, 0xffffffff
je 0x100f0e9f
lea ecx, [esp + 0x128]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100f0e8d
mov esi, 1
lea edx, [esp + 0x24]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100f0e9f
or esi, 4
mov edi, dword [esp + 0x338]
cmp edi, 0xffffffff
je 0x100f0ed2
lea eax, [esp + 0x128]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100f0ec0
or esi, 8
lea ecx, [esp + 0x24]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100f0ed2
or esi, 4
mov edi, dword [esp + 0x33c]
cmp edi, 0xffffffff
je 0x100f0f05
lea edx, [esp + 0x22c]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100f0ef3
or esi, 2
lea eax, [esp + 0x24]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100f0f05
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x320
ret