Function at 0x417270
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4ad100]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], ecx
mov al, dl
mov edx, dword [ebp + 8]
mov byte [ebp - 0x111], al
mov dword [ebp - 0x11c], edx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
cmp ecx, 0xffffffff
jne 0x4172fa
mov ecx, dword [0x4adc10]
mov eax, dword [0x4adc14]
cmp ecx, 0x257edfd1
jne 0x4172bf
cmp eax, 0xb2ab117a
je 0x4172ce
cmp ecx, 0x257edfd0
jne 0x4172db
cmp eax, 0xb2ab117a
jne 0x4172db
mov al, 1
mov dword [ebx], 0x2719
jmp 0x4174ec
mov eax, dword [0x4adc08]
mov ecx, 0x4adc08
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov dword [ebx], 0x2719
jmp 0x4174ec
cmp byte [ebp + 0x14], 0
je 0x417325
test al, 0x10
je 0x417325
xorps xmm0, xmm0
xor eax, eax
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466048
mov esp, ebp
pop ebp
ret
push ebx
push ecx
push dword [ebp + 0xc]
call fcn.004170a0
add esp, 0xc
test eax, eax
jns 0x4174fe
test byte [ebp - 0x111], 1
jne 0x4174fc
mov edi, dword [0x4adc10]
mov esi, dword [0x4adc14]
cmp edi, 0x257edfd1
jne 0x417363
cmp esi, 0xb2ab117a
je 0x417373
cmp edi, 0x257edfd0
jne 0x417377
cmp esi, 0xb2ab117a
jne 0x417377
mov al, 1
jmp 0x417397
mov eax, dword [0x4adc08]
mov ecx, 0x4adc08
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x4adc14]
mov edi, dword [0x4adc10]
movzx eax, al
lea edx, [ebp - 0x128]
add eax, 2
mov dword [ebp - 0x128], 0x2733
mov ecx, ebx
mov dword [ebp - 0x124], 0x4adc08
mov dword [ebp - 0x120], eax
call fcn.004165d0
test al, al
jne 0x417435
cmp edi, 0x257edfd1
jne 0x4173d8
cmp esi, 0xb2ab117a
je 0x4173e8
cmp edi, 0x257edfd0
jne 0x4173ec
cmp esi, 0xb2ab117a
jne 0x4173ec
mov al, 1
jmp 0x417400
mov eax, dword [0x4adc08]
mov ecx, 0x4adc08
push 0x4d5
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
lea edx, [ebp - 0x134]
add eax, 2
mov dword [ebp - 0x134], 0x4d5
mov ecx, ebx
mov dword [ebp - 0x130], 0x4adc08
mov dword [ebp - 0x12c], eax
call fcn.004165d0
test al, al
je 0x4174fc
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x110]
push 0
push 0
push eax
push 0
lea eax, [esi + 1]
mov dword [ebp - 0x10c], esi
push eax
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x4174a2
mov edx, dword [ebp - 0x11c]
xorps xmm0, xmm0
push ebx
push ecx
push dword [ebp + 0xc]
movq qword [ebx], xmm0
mov ecx, esi
mov dword [ebx + 8], 0
call fcn.004170a0
add esp, 0xc
test eax, eax
js 0x417347
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466048
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x4adc10]
mov esi, eax
mov eax, dword [0x4adc14]
cmp ecx, 0x257edfd1
jne 0x4174c4
cmp eax, 0xb2ab117a
je 0x4174d3
cmp ecx, 0x257edfd0
jne 0x4174da
cmp eax, 0xb2ab117a
jne 0x4174da
test esi, esi
setne al
jmp 0x4174ea
mov eax, dword [0x4adc08]
mov ecx, 0x4adc08
push esi
mov eax, dword [eax + 0x18]
call eax
mov dword [ebx], esi
movzx eax, al
add eax, 2
mov dword [ebx + 4], 0x4adc08
mov dword [ebx + 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466048
mov esp, ebp
pop ebp
ret