Function at 0x534a10
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x320], ecx
push ebx
test ecx, ecx
je 0x534a4b
mov ebx, dword [ebp + 0xc]
xor eax, eax
test ebx, ebx
je 0x534a4b
nop word [eax + eax]
cmp dword [ecx + eax*8], 0xffffffff
jne 0x534a8a
inc eax
cmp eax, ebx
jb 0x534a40
mov ecx, dword [ebp + 0x10]
mov eax, ecx
mov edx, dword [ebp + 0x14]
or eax, edx
je 0x534d85
test edx, edx
jg 0x534d6f
jl 0x534a6d
test ecx, ecx
jae 0x534d64
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
push esi
push edi
xor edi, edi
mov dword [ebp - 0x314], 0xffffffff
xor esi, esi
mov dword [ebp - 0x108], edi
xor edx, edx
mov dword [ebp - 0x20c], esi
xor eax, eax
mov dword [ebp - 0x310], edx
mov dword [ebp - 0x318], eax
xor ebx, ebx
mov word [ecx + eax*8 + 6], bx
mov ecx, dword [ecx + eax*8]
mov ebx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
je 0x534bb6
jae 0x534bcc
mov ebx, dword [ebp - 0x320]
movzx ebx, word [ebx + eax*8 + 4]
test bl, 7
je 0x534bb3
cmp ecx, dword [ebp - 0x314]
mov eax, ecx
cmovbe eax, dword [ebp - 0x314]
mov dword [ebp - 0x314], eax
test bl, 1
je 0x534b31
xor eax, eax
test edi, edi
je 0x534b14
cmp dword [ebp + eax*4 - 0x104], ecx
je 0x534b14
inc eax
cmp eax, edi
jb 0x534b06
cmp eax, edi
jne 0x534b31
cmp edi, 0x40
jae 0x534b31
mov dword [ebp + eax*4 - 0x104], ecx
mov edi, dword [ebp - 0x108]
inc edi
mov dword [ebp - 0x108], edi
test bl, 4
je 0x534b6b
xor eax, eax
test esi, esi
je 0x534b4e
nop dword [eax]
cmp dword [ebp + eax*4 - 0x208], ecx
je 0x534b4e
inc eax
cmp eax, esi
jb 0x534b40
cmp eax, esi
jne 0x534b6b
cmp esi, 0x40
jae 0x534b6b
mov dword [ebp + eax*4 - 0x208], ecx
mov esi, dword [ebp - 0x20c]
inc esi
mov dword [ebp - 0x20c], esi
test bl, 2
je 0x534bad
xor eax, eax
test edx, edx
je 0x534b84
cmp dword [ebp + eax*4 - 0x30c], ecx
je 0x534b84
inc eax
cmp eax, edx
jb 0x534b76
cmp eax, edx
jne 0x534ba1
cmp edx, 0x40
jae 0x534ba1
mov dword [ebp + eax*4 - 0x30c], ecx
mov edx, dword [ebp - 0x310]
inc edx
mov dword [ebp - 0x310], edx
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x318]
mov ebx, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x318], eax
cmp eax, ebx
jae 0x534beb
mov ecx, dword [ebp - 0x320]
jmp 0x534ab6
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.004cb998
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x534c4f
test esi, esi
jne 0x534c4f
test edx, edx
jne 0x534c4f
mov ecx, dword [ebp + 0x10]
mov eax, ecx
mov edx, dword [ebp + 0x14]
or eax, edx
mov dword [ebp - 0x318], edx
je 0x534ca9
test edx, edx
jg 0x534c35
jl 0x534c17
test ecx, ecx
jae 0x534c2a
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or esi, 0xffffffff
jmp 0x534ca9
test edx, edx
jl 0x534c44
jg 0x534c35
cmp ecx, 0xffffffff
jb 0x534c44
mov ecx, 0xfffffffe
mov dword [ebp - 0x318], 0
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x534ca9
push dword [ebp + 0x14]
lea eax, [ebp - 0x31c]
push dword [ebp + 0x10]
push eax
call fcn.0055e8e0
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
mov eax, dword [ebp - 0x314]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jg 0x534cd5
cmp esi, 0xffffffff
jne 0x534cc2
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.004cb998
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x320]
xor edi, edi
add esi, 6
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x534d49
lea ecx, [ebp - 0x108]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x534d08
test byte [esi - 2], 1
je 0x534d08
or word [esi], 1
lea eax, [ebp - 0x20c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x534d25
test byte [esi - 2], 4
je 0x534d25
or word [esi], 4
lea eax, [ebp - 0x310]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x534d42
test byte [esi - 2], 2
je 0x534d42
or word [esi], 2
cmp word [esi], 0
je 0x534d49
inc edi
add esi, 8
sub ebx, 1
jne 0x534ce0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
test edx, edx
jl 0x534d7e
jg 0x534d6f
cmp ecx, 0xffffffff
jb 0x534d7e
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
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret