Function at 0x10024d46
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x1009d350]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
push ebx
xor ebx, ebx
push esi
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 0x340], xmm0
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x318], ecx
cmp ecx, ebx
jl 0x10024da2
mov edx, accept
jg 0x10024d96
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x314], eax
cmp eax, edx
jb 0x10024dab
mov ecx, ebx
mov eax, edx
mov dword [ebp - 0x318], ecx
jmp 0x10024da5
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x314], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x10024dc9
cmp dword [ebp + 0xc], 0xffffffff
jne 0x10024dc9
cmp dword [ebp + 0x10], 0xffffffff
jne 0x10024dc9
push eax
call fcn.100250d0
pop ecx
jmp 0x100250c1
cmp ecx, ebx
jl 0x10024df2
jg 0x10024dd3
cmp eax, ebx
jbe 0x10024df2
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x350]
push eax
call fcn.1001c850
mov esi, eax
lea edi, [ebp - 0x340]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov eax, ebx
or edx, 0xffffffff
mov ecx, ebx
xor edi, edi
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x20c], ecx
cmp esi, 0xffffffff
je 0x10024e2f
lea ecx, [edi + 1]
lea eax, [edi + 1]
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], eax
mov edx, esi
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x10024e9e
mov esi, ebx
test ecx, ecx
je 0x10024e4b
cmp dword [ebp + esi*4 - 0x208], edi
je 0x10024e4b
inc esi
cmp esi, ecx
jb 0x10024e3d
cmp esi, ecx
jne 0x10024e68
cmp ecx, 0x40
jae 0x10024e68
mov dword [ebp + esi*4 - 0x208], edi
mov ecx, dword [ebp - 0x20c]
inc ecx
mov dword [ebp - 0x20c], ecx
mov esi, ebx
test eax, eax
je 0x10024e7c
cmp dword [ebp + esi*4 - 0x104], edi
je 0x10024e7c
inc esi
cmp esi, eax
jb 0x10024e6e
cmp esi, eax
jne 0x10024e99
cmp eax, 0x40
jae 0x10024e99
mov dword [ebp + esi*4 - 0x104], edi
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
cmp edi, edx
cmova edx, edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x310], ebx
cmp esi, 0xffffffff
je 0x10024eeb
mov dword [ebp - 0x30c], esi
mov dword [ebp - 0x310], 1
mov edi, ebx
test eax, eax
je 0x10024ed0
cmp dword [ebp + edi*4 - 0x104], esi
je 0x10024ed0
inc edi
cmp edi, eax
jb 0x10024ec2
cmp edi, eax
jne 0x10024ee6
cmp eax, 0x40
jae 0x10024ee6
mov dword [ebp + edi*4 - 0x104], esi
inc dword [ebp - 0x108]
cmp esi, edx
cmova edx, esi
mov edi, dword [ebp - 0x318]
mov esi, dword [ebp - 0x314]
cmp edi, ebx
jg 0x10024f09
jl 0x10024f01
cmp esi, ebx
jae 0x10024f09
mov dword [ebp - 0x320], ebx
jmp 0x10024f15
lea eax, [ebp - 0x328]
mov dword [ebp - 0x320], eax
lea eax, [edx + 1]
mov dword [ebp - 0x32c], eax
cmp edi, ebx
jl 0x10024f53
jg 0x10024f28
cmp esi, ebx
jbe 0x10024f53
mov eax, dword [ebp - 0x31c]
cdq
mov dword [ebp - 0x330], 0x3e8
idiv dword [ebp - 0x330]
imul edx, edx, 0x3e8
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], edx
jmp 0x10024f65
mov eax, esi
or eax, edi
jne 0x10024f65
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x324], ebx
push dword [ebp - 0x320]
xor edx, edx
cmp dword [ebp - 0x310], edx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
cmove eax, edx
push eax
test ecx, ecx
lea eax, [ebp - 0x20c]
cmove eax, edx
push eax
push dword [ebp - 0x32c]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x10025019
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x10024fba
cmp dword [0x1009eba0], ebx
jne 0x1002501d
cmp eax, 0x2714
jne 0x1002501d
cmp edi, ebx
jl 0x1002500c
jg 0x10024fc4
cmp esi, ebx
jbe 0x1002500c
lea eax, [ebp - 0x350]
push eax
call fcn.1001c850
sub esp, 0xc
mov edi, esp
lea esi, [ebp - 0x340]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1001c814
mov esi, dword [ebp - 0x314]
mov ecx, esi
sub ecx, eax
add esp, 0x20
mov dword [ebp - 0x31c], ecx
test ecx, ecx
jle 0x10025017
mov edi, dword [ebp - 0x318]
mov ecx, dword [ebp - 0x20c]
jmp 0x10024f1e
mov eax, ebx
test eax, eax
jns 0x10025025
or eax, 0xffffffff
jmp 0x100250c1
jne 0x1002502e
xor eax, eax
jmp 0x100250c1
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x1002505f
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
push 1
test eax, eax
pop eax
cmovne ebx, eax
lea eax, [ebp - 0x108]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1002505f
or ebx, 4
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x1002508f
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1002507b
or ebx, 8
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1002508f
or ebx, 4
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x100250bf
lea eax, [ebp - 0x310]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100250ab
or ebx, 2
lea eax, [ebp - 0x108]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100250bf
or ebx, 4
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004bbda
leave
ret