Function at 0x592f20
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x31c], edx
test edx, edx
je 0x592f5b
mov ecx, dword [ebp + 0xc]
xor eax, eax
test ecx, ecx
je 0x592f5b
nop dword [eax]
cmp dword [edx + eax*8], 0xffffffff
jne 0x592f99
inc eax
cmp eax, ecx
jb 0x592f50
mov ecx, dword [ebp + 0x10]
mov eax, ecx
mov edx, dword [ebp + 0x14]
or eax, edx
je 0x593305
test edx, edx
jg 0x5932ef
jl 0x592f7d
test ecx, ecx
jae 0x5932e4
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
xor edx, edx
mov dword [ebp - 0x108], edi
or ebx, 0xffffffff
mov dword [ebp - 0x20c], esi
xor ecx, ecx
mov dword [ebp - 0x310], edx
mov dword [ebp - 0x314], ebx
mov dword [ebp - 0x318], ecx
nop word [eax + eax]
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x328], ebx
xor ebx, ebx
mov word [eax + ecx*8 + 6], bx
mov ecx, dword [eax + ecx*8]
mov ebx, dword [ebp - 0x314]
cmp ecx, 0xffffffff
je 0x5930ef
jae 0x59312c
mov ebx, dword [ebp - 0x318]
movzx ebx, word [eax + ebx*8 + 4]
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x320], ebx
test ebx, 0x710
je 0x5930e9
cmp ecx, eax
mov ebx, ecx
cmovbe ebx, eax
mov dword [ebp - 0x314], ebx
mov ebx, dword [ebp - 0x320]
test ebx, 0x300
je 0x59306b
xor eax, eax
test edi, edi
je 0x59304e
nop
cmp dword [ebp + eax*4 - 0x104], ecx
je 0x59304e
inc eax
cmp eax, edi
jb 0x593040
cmp eax, edi
jne 0x59306b
cmp edi, 0x40
jae 0x59306b
mov dword [ebp + eax*4 - 0x104], ecx
mov edi, dword [ebp - 0x108]
inc edi
mov dword [ebp - 0x108], edi
test bl, 0x10
je 0x5930a1
xor eax, eax
test esi, esi
je 0x593084
cmp dword [ebp + eax*4 - 0x208], ecx
je 0x593084
inc eax
cmp eax, esi
jb 0x593076
cmp eax, esi
jne 0x5930a1
cmp esi, 0x40
jae 0x5930a1
mov dword [ebp + eax*4 - 0x208], ecx
mov esi, dword [ebp - 0x20c]
inc esi
mov dword [ebp - 0x20c], esi
test ebx, 0x600
je 0x5930e9
xor eax, eax
test edx, edx
je 0x5930be
nop
cmp dword [ebp + eax*4 - 0x30c], ecx
je 0x5930be
inc eax
cmp eax, edx
jb 0x5930b0
cmp eax, edx
jne 0x5930db
cmp edx, 0x40
jae 0x5930db
mov dword [ebp + eax*4 - 0x30c], ecx
mov edx, dword [ebp - 0x310]
inc edx
mov dword [ebp - 0x310], edx
mov ebx, dword [ebp - 0x314]
mov dword [ebp - 0x314], ebx
jmp 0x5930ef
mov ebx, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x318]
inc ecx
mov dword [ebp - 0x318], ecx
cmp ecx, dword [ebp + 0xc]
jb 0x592fd0
test edi, edi
jne 0x59318d
test esi, esi
jne 0x59318d
test edx, edx
jne 0x59318d
mov ecx, dword [ebp + 0x10]
mov eax, ecx
mov edx, dword [ebp + 0x14]
or eax, edx
mov dword [ebp - 0x320], edx
jne 0x59314b
jmp 0x5931e3
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
test edx, edx
jg 0x593173
jl 0x593155
test ecx, ecx
jae 0x593168
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or esi, 0xffffffff
jmp 0x5931e3
test edx, edx
jl 0x593182
jg 0x593173
cmp ecx, 0xffffffff
jb 0x593182
mov ecx, 0xfffffffe
mov dword [ebp - 0x320], 0
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x5931e3
push dword [ebp + 0x14]
lea eax, [ebp - 0x324]
push dword [ebp + 0x10]
push eax
call fcn.005a30f0
add esp, 0xc
lea esi, [ebp - 0x310]
lea ecx, [ebp - 0x20c]
push eax
xor eax, eax
cmp dword [ebp - 0x310], eax
cmove esi, eax
cmp dword [ebp - 0x20c], eax
push esi
cmove ecx, eax
xor edi, edi
cmp dword [ebp - 0x108], edi
lea eax, [ebp - 0x108]
push ecx
cmove eax, edi
push eax
lea eax, [ebx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jg 0x59320f
cmp esi, 0xffffffff
jne 0x5931fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
cmp eax, 0x2714
cmove esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x31c]
xor edi, edi
add esi, 6
mov ebx, 0x200
nop
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x5932c4
lea ecx, [ebp - 0x108]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x59326c
movzx ecx, word [esi - 2]
test ecx, 0x100
je 0x593256
mov eax, 0x100
or word [esi], ax
movzx eax, word [esi]
movzx eax, ax
test ecx, 0x300
je 0x59326c
or eax, 0x300
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x593289
test byte [esi - 2], 0x10
je 0x593289
or word [esi], 0x10
lea eax, [ebp - 0x310]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5932bd
movzx ecx, word [esi - 2]
test ebx, ecx
je 0x5932a7
or word [esi], bx
movzx eax, word [esi]
movzx eax, ax
test ecx, 0x400
je 0x5932bd
or eax, 0x400
mov word [esi], ax
cmp word [esi], 0
je 0x5932c4
inc edi
add esi, 8
sub dword [ebp + 0xc], 1
jne 0x593220
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
test edx, edx
jl 0x5932fe
jg 0x5932ef
cmp ecx, 0xffffffff
jb 0x5932fe
mov ecx, 0xfffffffe
mov dword [ebp - 0x320], 0
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret