Function at 0x55faa0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658683
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
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 - 0x20], esi
xor ebx, ebx
mov dword [ebp - 0x18], 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 - 0x638], ebx
mov dword [ebp - 0x634], edi
mov ecx, 1
mov dword [ebp - 0x638], ecx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x230], ecx
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x55fb60
mov edx, dword [eax]
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x230], 2
mov dword [ebp - 0x434], ebx
mov edx, dword [eax]
mov dword [ebp - 0x430], edx
mov dword [ebp - 0x434], ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x230]
push edx
lea ecx, [ebp - 0x638]
push ecx
neg eax
sbb eax, eax
lea edx, [ebp - 0x434]
and eax, edx
push eax
push edi
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x55fcb2
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
push edi
push ebx
push str.Select_error_code___d__socket___d_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f70
add esp, 0x10
push 1
mov ecx, dword [0x755a88]
push ecx
mov ecx, esi
call fcn.0055bf00
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x55fbdf
mov edi, dword [eax + 0xc]
jmp 0x55fbe8
mov ecx, dword [esi + 0xc0]
mov edi, dword [ecx + 0x14]
test eax, eax
jne 0x55fc08
mov edx, dword [esi + 0xc0]
mov eax, dword [edx]
push eax
lea ecx, [ebp + 8]
call fcn.004030b0
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 1
mov eax, dword [eax]
push edi
push eax
mov ecx, dword [0x7559dc]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0x10
mov dword [ebp - 4], 1
test byte [ebp - 0x18], 1
je 0x55fc38
and dword [ebp - 0x18], 0xfffffffe
lea ecx, [ebp + 8]
call fcn.00402570
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [esi + 0xac]
call fcn.005646e0
push ebx
mov ecx, esi
call fcn.0055b870
test eax, eax
jne 0x55fc90
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
cmp dword [edx], eax
je 0x55fc90
mov eax, dword [0x755a24]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
push 0x1476
push 0x111
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
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
test eax, eax
jne 0x55fdad
test ebx, ebx
je 0x55fd88
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x55fcd1
mov edi, dword [eax + 0xc]
jmp 0x55fcda
mov ecx, dword [esi + 0xc0]
mov edi, dword [ecx + 0x14]
test eax, eax
jne 0x55fcfa
mov edx, dword [esi + 0xc0]
mov eax, dword [edx]
push eax
lea ecx, [ebp + 8]
call fcn.004030b0
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 2
mov eax, dword [eax]
push edi
push eax
mov ecx, dword [0x7559e4]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 0x10
mov dword [ebp - 4], 1
test byte [ebp - 0x18], 2
je 0x55fd2a
and dword [ebp - 0x18], 0xfffffffd
lea ecx, [ebp + 8]
call fcn.00402570
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [esi + 0xac]
call fcn.005646e0
push 1
mov ecx, dword [0x755a1c]
push ecx
mov ecx, esi
call fcn.0055bf00
mov edx, dword [esi + 0xb0]
mov eax, dword [edx]
cmp dword [eax], 0
je 0x55fd88
mov ecx, dword [0x755a20]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00402f70
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
push 0x1476
push 0x111
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
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 - 0x230]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55ff5a
mov ebx, 4
mov dword [ebp - 0x24], ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp + 0xc]
push eax
push 0x1007
push 0xffff
push edi
call sub.WS2_32.dll_getsockopt
lea ecx, [ebp + 8]
call fcn.00402500
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0xc]
push ecx
push str.Except_fds_set._Error_code___ld_n
lea edx, [ebp + 8]
push edx
call fcn.00402f70
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [esi + 0x194]
test eax, eax
je 0x55fe44
cmp byte [eax + 0x15c], 0
je 0x55fe44
mov ecx, dword [eax + 0x140]
push ecx
mov edx, dword [0x7565c4]
push edx
lea eax, [ebp + 8]
push eax
call fcn.00402f70
add esp, 0xc
jmp 0x55fea3
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x55fe53
mov edi, dword [eax + 0xc]
jmp 0x55fe5c
mov ecx, dword [esi + 0xc0]
mov edi, dword [ecx + 0x14]
test eax, eax
jne 0x55fe78
mov edx, dword [esi + 0xc0]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004030b0
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], ebx
mov eax, dword [eax]
push edi
push eax
mov ecx, dword [0x7559dc]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00402f70
add esp, 0x10
mov dword [ebp - 4], ebx
test byte [ebp - 0x18], bl
je 0x55fea3
and dword [ebp - 0x18], 0xfffffffb
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov eax, dword [ebp + 0xc]
cmp eax, 0x2749
jne 0x55ff41
mov dword [ebp + 0xc], 0
mov ecx, dword [esi + 0xc0]
mov byte [ecx + 0x33d], 1
lea ecx, [ebp - 0x1c]
call fcn.00402500
mov byte [ebp - 4], 6
mov edx, dword [0x7560c8]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_r_n_r_n_s
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402f70
add esp, 0x10
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x55ff13
mov esi, 0x755d
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
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
test eax, eax
je 0x55feb8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [esi + 0xac]
call fcn.005646e0
jmp 0x55ff07
mov eax, dword [esi + 0x108]
test eax, eax
je 0x55ffb5
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [eax]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x55ff90
lea eax, [ebp - 0x434]
push eax
mov ecx, dword [esi + 0x108]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55ffb5
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, dword [esi + 0xac]
test ecx, ecx
je 0x55ffd3
call fcn.00564390
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