Function at 0x41c5b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45815b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4ec560]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x21c], eax
cmp dword [eax + 4], 0xffffffff
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x238], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x228], edi
jne 0x41c75f
mov eax, dword [eax]
mov edx, 2
cmp word [ecx], dx
mov esi, 0x17
push edi
push 6
cmove esi, edx
mov dword [ebp - 0x22c], eax
push 1
push esi
call fcn.0041eec0
add esp, 0x10
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
jne 0x41c655
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ebp - 0x230], eax
jmp 0x41c693
mov ecx, dword [ebp - 0x22c]
push edi
push eax
lea eax, [ebp - 0x25c]
mov ecx, dword [ecx + 0x18]
push eax
call fcn.0041e430
cmp dword [eax], 0
je 0x41c6bb
mov eax, dword [edi]
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x22c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x230], eax
call fcn.0041a270
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
je 0x41c701
mov eax, dword [ebp - 0x21c]
cmp dword [edi], 0
je 0x41c759
mov eax, dword [ebp - 0x238]
mov ecx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
jmp 0x41c8f0
mov ecx, dword [ebp - 0x21c]
push dword [ebp - 0x220]
mov eax, dword [ebp - 0x230]
push 0
mov dword [ecx + 4], eax
mov byte [ecx + 8], 0x10
add ecx, 0xc
mov dword [ebp - 0x224], 0xffffffff
call fcn.00418690
call fcn.0044b890
lea ecx, [ebp - 0x224]
mov dword [edi], 0
mov dword [edi + 4], eax
call fcn.0041a270
mov eax, dword [ebp - 0x21c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x24c], xmm0
movlpd qword [ebp - 0x244], xmm0
mov dword [ebp - 0x254], 2
mov dword [ebp - 0x250], 0
movups xmm0, xmmword [ebp - 0x254]
mov dword [eax + 0x20], esi
mov byte [eax + 0x24], 0
movups xmmword [eax + 0x28], xmm0
movq xmm0, qword [ebp - 0x244]
movq qword [eax + 0x38], xmm0
mov dword [eax + 0x40], 0
jmp 0x41c69d
mov ecx, dword [ebp - 0x220]
mov esi, dword [eax + 4]
mov edx, 0x1c
cmp word [ecx], 2
mov eax, 0x10
push edi
cmovne eax, edx
mov dword [ebp - 0x230], esi
push eax
push ecx
push esi
call fcn.0041c910
add esp, 0x10
call fcn.0044b890
cmp dword [edi + 4], eax
jne 0x41c797
cmp dword [edi], 0x2734
je 0x41c7b1
call fcn.0044b890
cmp dword [edi + 4], eax
jne 0x41c8de
cmp dword [edi], 0x2733
jne 0x41c8de
cmp esi, 0xffffffff
jne 0x41c7c9
call fcn.0044b890
mov dword [edi], 0x2719
mov dword [edi + 4], eax
jmp 0x41c8de
push 0
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x114], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
call fcn.0044b890
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x228]
mov dword [ecx], eax
mov dword [ecx + 4], esi
test edi, edi
js 0x41c8dc
call fcn.0044b890
mov edi, dword [ebp - 0x228]
push 0
mov dword [ebp - 0x21c], 0
mov dword [edi], 0
mov dword [edi + 4], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 4
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x1007
push 0xffff
push dword [ebp - 0x230]
call dword [sym.imp.WS2_32.dll_getsockopt]
mov dword [ebp - 0x230], eax
call fcn.0044b890
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov eax, dword [ebp - 0x230]
mov dword [edi + 4], esi
test eax, eax
jne 0x41c8c5
call fcn.0044b890
mov dword [edi], 0
mov dword [edi + 4], eax
call fcn.0044b890
mov ecx, dword [ebp - 0x21c]
mov dword [edi], ecx
mov dword [edi + 4], eax
jmp 0x41c8de
cmp eax, 0xffffffff
je 0x41c8de
call fcn.0044b890
mov ecx, dword [ebp - 0x21c]
mov dword [edi], ecx
mov dword [edi + 4], eax
jmp 0x41c8de
mov edi, ecx
mov ecx, dword [ebp - 0x238]
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004385c0
mov esp, ebp
pop ebp
ret 0xc