Function at 0x1003cd10
Capabilities:
Get socket status
Reference google public dns server

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005bddb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2e8
mov eax, dword [0x1008d040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x2c8]
mov esi, dword [ebx + 0xc]
push 0x5c
push 0
mov dword [ebp - 0x2d4], edi
push eax
mov dword [ebp - 0x2f0], edi
mov dword [ebp - 0x2d4], esi
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
add esp, 0xc
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x2c4], 0xbb8
mov dword [ebp - 0x2c0], 4
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x298], 0x1003d3a0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x294], eax
lea eax, [ebp - 0x2c8]
push 0x200
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.10041a80
add esp, 0xc
test eax, eax
je 0x1003cf1f
push eax
call fcn.10041e90
mov edx, eax
mov dword [ebp - 0x2dc], 0
mov ecx, edx
mov dword [ebp - 0x2d8], 0
xorps xmm0, xmm0
add esp, 4
movups xmmword [ebp - 0x2ec], xmm0
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ce30
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2ec]
call fcn.10009150
push 0x1b
push str.Failed_to_initialize_ares:
push 0
lea ecx, [ebp - 0x2ec]
mov byte [ebp - 4], 1
call fcn.10009740
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x2d8]
cmp ecx, 0xf
jbe 0x1003cec9
mov edx, dword [ebp - 0x2ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003cebf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cf19
push ecx
push edx
call fcn.100574cb
add esp, 8
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0xf
mov byte [ebp - 0x2ec], 0
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x1003d1c5
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1003d1bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003d1bb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push str.8.8.8.8
push dword [ebp - 0x264]
call fcn.10042ab0
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
add esp, 8
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov byte [ebp - 4], 2
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x1003cf59
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
push 0x1003d1f0
lea ecx, [ebp - 0x50]
push ecx
push 0
push eax
push dword [ebp - 0x264]
call fcn.100430a0
add esp, 0x18
cmp dword [ebp - 0x28], 0
jne 0x1003d10f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2cc], ecx
xor edx, edx
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x260], esi
cmp edi, eax
je 0x1003d02f
nop dword [eax]
mov ecx, dword [edi]
xor eax, eax
test edx, edx
je 0x1003cfce
nop dword [eax + eax]
cmp dword [ebp + eax*4 - 0x154], ecx
je 0x1003cfce
inc eax
cmp eax, edx
jb 0x1003cfc0
cmp eax, edx
jne 0x1003cfeb
cmp edx, 0x40
jae 0x1003cfeb
mov dword [ebp + eax*4 - 0x154], ecx
mov edx, dword [ebp - 0x158]
inc edx
mov dword [ebp - 0x158], edx
xor eax, eax
test esi, esi
je 0x1003cfff
cmp dword [ebp + eax*4 - 0x25c], ecx
je 0x1003cfff
inc eax
cmp eax, esi
jb 0x1003cff1
cmp eax, esi
jne 0x1003d01c
cmp esi, 0x40
jae 0x1003d01c
mov dword [ebp + eax*4 - 0x25c], ecx
mov esi, dword [ebp - 0x260]
inc esi
mov dword [ebp - 0x260], esi
mov eax, dword [ebp - 0x2d0]
add edi, 4
cmp edi, eax
jne 0x1003cfb0
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x3c], 0
cmp ecx, eax
jne 0x1003d045
xor eax, eax
jmp 0x1003d051
push 1
push eax
push ecx
call fcn.10057430
mov eax, dword [eax]
inc eax
lea ecx, [ebp - 0x40]
push ecx
push 0
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 0x158]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1003d103
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2cc], ecx
cmp ecx, eax
je 0x1003d0f9
nop word [eax + eax]
mov edi, dword [ecx]
lea eax, [ebp - 0x158]
push eax
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov esi, eax
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, edi
or eax, 0xffffffff
test esi, esi
push ecx
cmovne eax, edi
push eax
push dword [ebp - 0x264]
call fcn.10043e20
mov ecx, dword [ebp - 0x2cc]
add esp, 0xc
add ecx, 4
mov dword [ebp - 0x2cc], ecx
cmp ecx, dword [ebp - 0x2d0]
jne 0x1003d090
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2cc], ecx
cmp dword [ebp - 0x28], 0
je 0x1003cf93
mov edi, dword [ebp - 0x2f0]
mov esi, dword [ebp - 0x2d4]
push dword [ebp - 0x264]
call fcn.10044b40
add esp, 4
lea eax, [ebp - 0x38]
mov edx, esi
lea ecx, [ebp - 0x2ec]
push eax
push 0x11
push str._resolved_to_
call fcn.10040350
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1003ae50
mov ecx, dword [ebp - 0x2d8]
cmp ecx, 0xf
jbe 0x1003d17f
mov edx, dword [ebp - 0x2ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d175
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003d175
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100574cb
add esp, 8
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x38]
mov dword [edi + 0x14], 0
mov byte [ebp - 0x38], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
jmp 0x1003cee4
push ecx
push edx
call fcn.100574cb
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100574bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8