Function at 0x100226c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x10062400]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x330], ecx
push ebx
mov dword [ebp - 0x334], eax
mov ebx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x32c], eax
push esi
push edi
test eax, eax
jl 0x10022729
jg 0x1002271a
mov edi, dword [ebp + 0xc]
cmp edi, 0x7fffffff
jb 0x1002272c
xor eax, eax
mov edi, accept
mov dword [ebp - 0x32c], eax
jmp 0x1002272c
mov edi, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x10022752
cmp ebx, ecx
jne 0x10022752
cmp dword [ebp + 8], ecx
jne 0x10022752
mov ecx, edi
call fcn.100226a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003bca3
mov esp, ebp
pop ebp
ret
test eax, eax
jl 0x10022773
jg 0x1002275c
test edi, edi
je 0x10022773
mov dword [ebp - 0x334], edi
call fcn.1002cfe0
mov dword [ebp - 0x338], eax
mov dword [ebp - 0x33c], edx
mov eax, dword [ebp - 0x330]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x114], ecx
or edx, 0xffffffff
mov dword [ebp - 0x21c], esi
cmp eax, 0xffffffff
je 0x100227b2
mov esi, 1
mov dword [ebp - 0x218], eax
mov ecx, esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x110], eax
mov edx, eax
mov dword [ebp - 0x114], ecx
cmp ebx, 0xffffffff
je 0x10022821
xor eax, eax
test esi, esi
je 0x100227ce
lea ecx, [ecx]
cmp dword [ebp + eax*4 - 0x218], ebx
je 0x100227ce
inc eax
cmp eax, esi
jb 0x100227c0
cmp eax, esi
jne 0x100227eb
cmp esi, 0x40
jae 0x100227eb
mov dword [ebp + eax*4 - 0x218], ebx
mov esi, dword [ebp - 0x21c]
inc esi
mov dword [ebp - 0x21c], esi
xor eax, eax
test ecx, ecx
je 0x100227ff
cmp dword [ebp + eax*4 - 0x110], ebx
je 0x100227ff
inc eax
cmp eax, ecx
jb 0x100227f1
cmp eax, ecx
jne 0x1002281c
cmp ecx, 0x40
jae 0x1002281c
mov dword [ebp + eax*4 - 0x110], ebx
mov ecx, dword [ebp - 0x114]
inc ecx
mov dword [ebp - 0x114], ecx
cmp ebx, edx
cmova edx, ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x324], 0
cmp eax, 0xffffffff
je 0x10022884
mov dword [ebp - 0x320], eax
xor eax, eax
mov dword [ebp - 0x324], 1
test ecx, ecx
je 0x10022864
mov ebx, dword [ebp + 8]
lea esp, [esp]
cmp dword [ebp + eax*4 - 0x110], ebx
je 0x1002285e
inc eax
cmp eax, ecx
jb 0x10022850
mov ebx, dword [ebp - 0x328]
cmp eax, ecx
jne 0x1002287d
cmp ecx, 0x40
jae 0x1002287d
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x110], ecx
inc dword [ebp - 0x114]
cmp dword [ebp + 8], edx
cmova edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x32c]
test ecx, ecx
jg 0x100228a0
jl 0x10022894
test edi, edi
jae 0x100228a0
mov dword [ebp - 0x328], 0
jmp 0x100228ac
lea eax, [ebp - 0x344]
mov dword [ebp - 0x328], eax
lea eax, [edx + 1]
mov dword [ebp - 0x348], eax
test ecx, ecx
jl 0x100228f2
jg 0x100228bf
test edi, edi
je 0x100228f2
mov ecx, dword [ebp - 0x334]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x344], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x340], eax
jmp 0x10022904
mov eax, edi
or eax, ecx
jne 0x10022904
mov dword [ebp - 0x344], eax
mov dword [ebp - 0x340], eax
push dword [ebp - 0x328]
xor ecx, ecx
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x324], ecx
push eax
lea eax, [ebp - 0x324]
cmove eax, ecx
test esi, esi
push eax
lea eax, [ebp - 0x21c]
cmove eax, ecx
push eax
push dword [ebp - 0x348]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x100229b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1002295a
cmp dword [0x10064308], 0
jne 0x100229b9
cmp eax, 0x2714
jne 0x100229b9
mov ecx, dword [ebp - 0x32c]
test ecx, ecx
jl 0x10022970
jg 0x1002297b
test edi, edi
jne 0x1002297b
lea ebx, [ebx]
mov esi, dword [ebp - 0x21c]
jmp 0x100228b5
push dword [ebp - 0x33c]
push dword [ebp - 0x338]
call fcn.1002cfe0
push edx
push eax
call fcn.1002d010
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov dword [ebp - 0x334], ecx
test ecx, ecx
jle 0x100229cf
mov esi, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x32c]
jmp 0x100228b5
test eax, eax
jns 0x100229cd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003bca3
mov esp, ebp
pop ebp
ret
jne 0x100229e2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1003bca3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x330]
xor esi, esi
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmp eax, 0xffffffff
je 0x10022a1f
lea ecx, [ebp - 0x21c]
push ecx
push eax
call edi
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x330]
cmovne esi, ecx
call edi
test eax, eax
je 0x10022a1f
or esi, 4
cmp ebx, 0xffffffff
je 0x10022a46
lea eax, [ebp - 0x21c]
push eax
push ebx
call edi
test eax, eax
je 0x10022a35
or esi, 8
lea eax, [ebp - 0x114]
push eax
push ebx
call edi
test eax, eax
je 0x10022a46
or esi, 4
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x10022a70
lea eax, [ebp - 0x324]
push eax
push ebx
call edi
test eax, eax
je 0x10022a5f
or esi, 2
lea eax, [ebp - 0x114]
push eax
push ebx
call edi
test eax, eax
je 0x10022a70
or esi, 4
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003bca3
mov esp, ebp
pop ebp
ret