Function at 0x55584fc
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x53f40dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
xorps xmm0, xmm0
push ebx
xor ebx, ebx
movlpd qword [ebp - 0x340], xmm0
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x320], ecx
push esi
push edi
cmp ecx, ebx
jl 0x5558558
mov edx, bind
jg 0x555854c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x314], eax
cmp eax, edx
jb 0x5558561
mov ecx, ebx
mov eax, edx
mov dword [ebp - 0x320], ecx
jmp 0x555855b
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x314], eax
or edi, 0xffffffff
cmp dword [ebp + 8], edi
jne 0x555857f
cmp dword [ebp + 0xc], edi
jne 0x555857f
cmp dword [ebp + 0x10], edi
jne 0x555857f
push eax
call fcn.055588a9
pop ecx
jmp 0x555889a
cmp ecx, ebx
jl 0x55585ab
jg 0x5558589
cmp eax, ebx
jbe 0x55585ab
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x350]
push eax
call fcn.0555b2d4
mov esi, eax
lea edi, [ebp - 0x340]
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
or edi, 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, ebx
xor edx, edx
mov dword [ebp - 0x20c], ecx
cmp eax, edi
je 0x55585d1
lea ecx, [edx + 1]
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x104], eax
mov edx, eax
mov esi, ecx
cmove edx, edi
mov eax, esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x108], eax
cmp edi, 0xffffffff
je 0x5558677
mov eax, ebx
test ecx, ecx
je 0x5558600
cmp dword [ebp + eax*4 - 0x208], edi
je 0x5558600
inc eax
cmp eax, ecx
jb 0x55585f2
cmp eax, ecx
jne 0x555861d
cmp ecx, 0x40
jae 0x555861d
mov dword [ebp + eax*4 - 0x208], edi
mov ecx, dword [ebp - 0x20c]
inc ecx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x318], ebx
mov eax, ebx
test esi, esi
je 0x555863d
cmp dword [ebp + eax*4 - 0x104], edi
je 0x5558637
inc eax
cmp eax, esi
jb 0x5558629
mov dword [ebp - 0x318], eax
mov eax, esi
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x318], esi
jne 0x5558672
mov dword [ebp - 0x108], eax
cmp esi, 0x40
jae 0x5558672
mov eax, dword [ebp - 0x318]
mov dword [ebp + eax*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 0x55586c4
mov dword [ebp - 0x30c], esi
mov edi, ebx
mov dword [ebp - 0x310], 1
test eax, eax
je 0x55586a9
cmp dword [ebp + edi*4 - 0x104], esi
je 0x55586a9
inc edi
cmp edi, eax
jb 0x555869b
cmp edi, eax
jne 0x55586bf
cmp eax, 0x40
jae 0x55586bf
mov dword [ebp + edi*4 - 0x104], esi
inc dword [ebp - 0x108]
cmp esi, edx
cmova edx, esi
mov edi, dword [ebp - 0x320]
mov esi, dword [ebp - 0x314]
cmp edi, ebx
jg 0x55586e2
jl 0x55586da
cmp esi, ebx
jae 0x55586e2
mov dword [ebp - 0x318], ebx
jmp 0x55586ee
lea eax, [ebp - 0x328]
mov dword [ebp - 0x318], eax
lea eax, [edx + 1]
mov dword [ebp - 0x330], eax
cmp edi, ebx
jl 0x555872c
jg 0x5558701
cmp esi, ebx
jbe 0x555872c
mov eax, dword [ebp - 0x31c]
cdq
mov dword [ebp - 0x32c], 0x3e8
idiv dword [ebp - 0x32c]
mov dword [ebp - 0x328], eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x324], eax
jmp 0x555873e
mov eax, esi
or eax, edi
jne 0x555873e
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x324], ebx
push dword [ebp - 0x318]
xor edx, edx
lea eax, [ebp - 0x108]
cmp dword [ebp - 0x310], edx
push eax
lea eax, [ebp - 0x310]
cmove eax, edx
test ecx, ecx
push eax
lea eax, [ebp - 0x20c]
cmove eax, edx
push eax
push dword [ebp - 0x330]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x55587f2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x5558793
cmp dword [0x552b44c], ebx
jne 0x55587f6
cmp eax, 0x2714
jne 0x55587f6
cmp edi, ebx
jl 0x55587e5
jg 0x555879d
cmp esi, ebx
jbe 0x55587e5
lea eax, [ebp - 0x350]
push eax
call fcn.0555b2d4
sub esp, 0xc
lea esi, [ebp - 0x340]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
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.0555b364
mov esi, dword [ebp - 0x314]
add esp, 0x20
mov ecx, esi
sub ecx, eax
mov dword [ebp - 0x31c], ecx
test ecx, ecx
jle 0x55587f0
mov edi, dword [ebp - 0x320]
mov ecx, dword [ebp - 0x20c]
jmp 0x55586f7
mov eax, ebx
test eax, eax
jns 0x55587fe
or eax, 0xffffffff
jmp 0x555889a
jne 0x5558807
xor eax, eax
jmp 0x555889a
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x5558838
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 0x5558838
or ebx, 4
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
je 0x5558868
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5558854
or ebx, 8
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5558868
or ebx, 4
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x5558898
lea eax, [ebp - 0x310]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5558884
or ebx, 2
lea eax, [ebp - 0x108]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5558898
or ebx, 4
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0557c24c
leave
ret