Function at 0x466160
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x66bf78]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x320], ecx
mov eax, dword [esi + 0x18]
lea edi, [esi + 0x10]
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x318], edi
mov eax, dword [eax + 0x100]
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x338], 4
mov ecx, dword [ecx + 4]
mov eax, 0x10624dd3
sub ecx, dword [esi + 0x14]
imul ecx
mov eax, dword [ebp - 0x320]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
mov eax, dword [eax]
add ecx, edx
sub eax, dword [edi]
lea edi, [ebp - 0x20c]
imul eax, eax, 0x3e8
add ecx, eax
mov eax, ebx
cmovs ecx, eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x330], ecx
mov ecx, 0x41
mov esi, dword [eax + 0x100]
add esi, 4
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0x100]
lea edi, [ebp - 0x310]
add esi, 0x108
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0x100]
lea edi, [ebp - 0x108]
add esi, 0x20c
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x330]
mov eax, 0x10624dd3
imul esi
mov ecx, esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x340], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp - 0x328]
cmp dword [eax + 0x310], ebx
je 0x4662c8
mov eax, dword [eax]
lea ecx, [ebp - 0x340]
push ecx
lea ecx, [ebp - 0x108]
inc eax
push ecx
lea ecx, [ebp - 0x310]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov dword [ebp - 0x31c], esi
call sub.WS2_32.dll_WSAGetLastError
cmp esi, 0xffffffff
jne 0x4662df
cmp eax, 0x2714
jne 0x4662df
mov esi, dword [ebp - 0x314]
mov edi, dword [ebp - 0x318]
mov ecx, dword [ebp - 0x320]
jmp 0x4661b2
imul eax, esi, 0x3e8
push eax
call fcn.004b66f0
add esp, 4
xor esi, esi
mov dword [ebp - 0x31c], esi
push 0
push dword [ebp - 0x318]
call fcn.004b6680
add esp, 8
cmp esi, 0xffffffff
je 0x4664ec
test esi, esi
jne 0x46630f
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x314]
mov edi, dword [ecx + 0x68]
mov eax, dword [ecx + 0x70]
mov edi, dword [edi]
mov eax, dword [eax]
mov dword [ebp - 0x320], edi
mov dword [ebp - 0x328], edi
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x330], eax
jmp 0x466345
mov ecx, dword [ebp - 0x314]
mov esi, dword [ebp - 0x31c]
mov edx, dword [ecx + 0x68]
cmp edi, edx
jne 0x466355
cmp eax, dword [ecx + 0x70]
je 0x4664d6
cmp ebx, esi
jge 0x4664d6
cmp edi, edx
je 0x466382
lea ecx, [ebp - 0x328]
call fcn.0047e470
mov eax, dword [ebp - 0x324]
mov esi, edi
mov edi, dword [ebp - 0x328]
mov dword [ebp - 0x320], edi
jmp 0x46639b
lea ecx, [ebp - 0x330]
mov esi, eax
call fcn.0047e470
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x324], eax
mov edx, dword [esi + 0x10]
mov esi, dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x314]
mov dword [ebp - 0x318], edx
cmp dword [edx + 0x30], 0
je 0x466345
mov ecx, dword [edx + 0x28]
mov esi, dword [ecx]
cmp esi, ecx
mov ecx, dword [ebp - 0x314]
je 0x46633f
lea esp, [esp]
mov edi, dword [ebp - 0x320]
mov eax, dword [ebp - 0x324]
cmp ebx, dword [ebp - 0x31c]
jge 0x466339
cmp dword [edx + 0x2c], 0
jbe 0x466339
mov ebx, dword [esi + 8]
mov edi, dword [esi]
cmp dword [ebx], 2
je 0x46641a
push 0x236
push str..._scan_engine_connect.cc
push str.probe__type__UltraProbe::UP_CONNECT
call dword [sym.imp.MSVCR120.dll__wassert]
mov edx, dword [ebp - 0x318]
add esp, 0xc
mov ebx, dword [ebx + 0x20]
mov ebx, dword [ebx]
test ebx, ebx
js 0x4664b4
lea eax, [ebp - 0x20c]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x46645a
lea eax, [ebp - 0x310]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x46645a
lea eax, [ebp - 0x108]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4664ae
inc dword [ebp - 0x32c]
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x334]
push eax
push 0x1007
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x466490
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebp - 0x334], eax
jmp 0x466496
mov eax, dword [ebp - 0x334]
push 0
push eax
push esi
push dword [ebp - 0x318]
push dword [ebp - 0x314]
call fcn.00466520
add esp, 0x14
mov edx, dword [ebp - 0x318]
mov esi, edi
mov ebx, dword [ebp - 0x32c]
cmp edi, dword [edx + 0x28]
jne 0x4663d0
mov edi, dword [ebp - 0x320]
mov eax, dword [ebp - 0x324]
jmp 0x466339
mov ecx, dword [ebp - 4]
test ebx, ebx
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.004bb11e
mov esp, ebp
pop ebp
ret
push str.do_one_select_round
push str.select_failed_in__s__
call fcn.00431fe0
int3