Function at 0x10041010
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x101cd100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10c], ecx
push ebx
mov ebx, dword [ebp + 0x20]
push esi
cmp eax, 0xffffffff
jne 0x100410c1
mov ecx, dword [0x101ad290]
mov eax, dword [0x101ad294]
cmp ecx, 0x257edfd1
jne 0x10041057
cmp eax, 0xb2ab117a
je 0x10041066
cmp ecx, 0x257edfd0
jne 0x1004106a
cmp eax, 0xb2ab117a
jne 0x1004106a
mov al, 1
jmp 0x10041086
mov eax, dword [0x101ad288]
push 0x2719
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x101653ec]
mov ecx, 0x101ad288
call esi
movzx eax, al
mov dword [ebp - 0x118], 0x2719
add eax, 2
mov dword [ebp - 0x114], 0x101ad288
movq xmm0, qword [ebp - 0x118]
movq qword [ebx], xmm0
mov dword [ebx + 8], eax
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x1c], 0
je 0x100410ed
test byte [ebp + 0xc], 0x10
je 0x100410ed
xorps xmm0, xmm0
xor eax, eax
movq qword [ebx], xmm0
pop esi
mov dword [ebx + 8], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
push edi
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ecx
push eax
call fcn.1003f590
add esp, 0x14
test eax, eax
jns 0x100412cb
test byte [ebp + 0xc], 1
jne 0x100412c9
mov edi, dword [0x101ad290]
mov esi, dword [0x101ad294]
cmp edi, 0x257edfd1
jne 0x1004112d
cmp esi, 0xb2ab117a
je 0x1004113d
cmp edi, 0x257edfd0
jne 0x10041141
cmp esi, 0xb2ab117a
jne 0x10041141
mov al, 1
jmp 0x10041169
mov eax, dword [0x101ad288]
push 0x2733
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x101653ec]
mov ecx, 0x101ad288
call esi
mov esi, dword [0x101ad294]
mov edi, dword [0x101ad290]
movzx eax, al
add eax, 2
mov dword [ebp - 0x118], 0x2733
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x114], 0x101ad288
movq xmm0, qword [ebp - 0x118]
push ebx
movq qword [ebp - 0x130], xmm0
call fcn.10020280
add esp, 8
test al, al
jne 0x10041239
cmp edi, 0x257edfd1
jne 0x100411c1
cmp esi, 0xb2ab117a
je 0x100411d1
cmp edi, 0x257edfd0
jne 0x100411d5
cmp esi, 0xb2ab117a
jne 0x100411d5
mov al, 1
jmp 0x100411f1
mov eax, dword [0x101ad288]
push 0x4d5
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x101653ec]
mov ecx, 0x101ad288
call esi
movzx eax, al
add eax, 2
mov dword [ebp - 0x13c], 0x4d5
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x138], 0x101ad288
movq xmm0, qword [ebp - 0x13c]
push ebx
movq qword [ebp - 0x124], xmm0
call fcn.10020280
add esp, 8
test al, al
je 0x100412c9
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0
push 0
push eax
push 0
lea eax, [esi + 1]
mov dword [ebp - 0x104], esi
push eax
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x100412a4
push ebx
push dword [ebp + 0x18]
xorps xmm0, xmm0
push dword [ebp + 0x14]
movq qword [ebx], xmm0
push dword [ebp - 0x10c]
mov dword [ebx + 8], 0
push esi
call fcn.1003f590
add esp, 0x14
test eax, eax
js 0x10041111
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10132a90
mov esp, ebp
pop ebp
ret
push 0x101ad288
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x124]
call fcn.1001be50
movq xmm0, qword [eax]
movq qword [ebx], xmm0
mov eax, dword [eax + 8]
mov dword [ebx + 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10132a90
mov esp, ebp
pop ebp
ret