Function at 0x570080
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6597d0
mov eax, dword fs:[0]
push eax
sub esp, 0x624
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
mov edi, dword [ebp + 8]
push edi
push str.Checking_connect__socket___d__n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.0055b6c0
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x62c], edi
mov ecx, 1
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], ecx
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x57013d
mov edx, dword [eax]
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x228], 2
mov dword [ebp - 0x42c], ebx
mov edx, dword [eax]
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ebx
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x630]
push edx
neg eax
sbb eax, eax
lea ecx, [ebp - 0x42c]
and eax, ecx
push eax
push edi
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x5701f9
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
push edi
push ebx
push str.Select_error_code___d__socket___d_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0x10
push 1
mov eax, dword [0x755a88]
push eax
mov ecx, esi
call fcn.0055bf00
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [esi + 0x194]
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [0x7559e0]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, ebx
jne 0x570264
cmp dword [ebp + 0xc], ebx
je 0x57023f
mov eax, dword [esi + 0x194]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov eax, dword [0x7559e8]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
push 1
mov eax, dword [0x755a1c]
push eax
mov ecx, esi
call fcn.0055bf00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
mov eax, 0x7532
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x228]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x570336
mov dword [ebp - 0x18], 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp + 8]
push eax
push 0x1007
push 0xffff
push edi
call sub.WS2_32.dll_getsockopt
lea ecx, [ebp + 0xc]
call fcn.00402500
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push ecx
push str.Except_fds_set._Error_code___ld_n
lea edx, [ebp + 0xc]
push edx
call fcn.00402f70
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [esi + 0x194]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov eax, dword [0x7559e0]
push eax
lea ecx, [ebp + 0xc]
push ecx
call fcn.00402f70
add esp, 0x10
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov eax, dword [ebp + 8]
cmp eax, ebx
mov esi, eax
jne 0x570308
mov esi, 0x755d
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00402570
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x570391
lea ecx, [ebp - 0x228]
push ecx
mov edx, dword [eax]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x57036c
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [esi + 0x108]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x570391
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
mov eax, dword [0x755a8c]
push eax
mov ecx, esi
call fcn.0055bf00
mov ecx, esi
call fcn.0055b910
mov dword [esi + 0x9c], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8