Function at 0x1003cd80
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 0x1004a17b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2e8
mov eax, dword [0x1007c040]
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], 0x1003d410
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 dword [sym.imp.cares.dll_ares_init_options]
add esp, 0xc
test eax, eax
je 0x1003cf8f
push eax
call dword [sym.imp.cares.dll_ares_strerror]
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 dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003cea0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2ec]
call fcn.10009090
push 0x1b
push str.Failed_to_initialize_ares:
push 0
lea ecx, [ebp - 0x2ec]
mov byte [ebp - 4], 1
call fcn.10009680
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 0x1003cf39
mov edx, dword [ebp - 0x2ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003cf2f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cf89
push ecx
push edx
call fcn.10045a15
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 0x1003d237
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1003d22d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003d22d
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 dword [sym.imp.cares.dll_ares_set_servers_csv]
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 0x1003cfca
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
push 0x1003d260
lea ecx, [ebp - 0x50]
push ecx
push 0
push eax
push dword [ebp - 0x264]
call dword [sym.imp.cares.dll_ares_getaddrinfo]
add esp, 0x18
cmp dword [ebp - 0x28], 0
jne 0x1003d180
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 0x1003d09f
nop
mov ecx, dword [edi]
xor eax, eax
test edx, edx
je 0x1003d03e
nop dword [eax + eax]
cmp dword [ebp + eax*4 - 0x154], ecx
je 0x1003d03e
inc eax
cmp eax, edx
jb 0x1003d030
cmp eax, edx
jne 0x1003d05b
cmp edx, 0x40
jae 0x1003d05b
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 0x1003d06f
cmp dword [ebp + eax*4 - 0x25c], ecx
je 0x1003d06f
inc eax
cmp eax, esi
jb 0x1003d061
cmp eax, esi
jne 0x1003d08c
cmp esi, 0x40
jae 0x1003d08c
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 0x1003d020
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x3c], 0
cmp ecx, eax
jne 0x1003d0b5
xor eax, eax
jmp 0x1003d0c1
push 1
push eax
push ecx
call fcn.10045980
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 0x1003d174
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2cc], ecx
cmp ecx, eax
je 0x1003d16a
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 dword [sym.imp.cares.dll_ares_process_fd]
mov ecx, dword [ebp - 0x2cc]
add esp, 0xc
add ecx, 4
mov dword [ebp - 0x2cc], ecx
cmp ecx, dword [ebp - 0x2d0]
jne 0x1003d100
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 0x1003d005
mov edi, dword [ebp - 0x2f0]
mov esi, dword [ebp - 0x2d4]
push dword [ebp - 0x264]
call dword [sym.imp.cares.dll_ares_destroy]
add esp, 4
lea eax, [ebp - 0x38]
mov edx, esi
lea ecx, [ebp - 0x2ec]
push eax
push 0x11
push str._resolved_to_
call fcn.100427a0
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1003ad80
mov ecx, dword [ebp - 0x2d8]
cmp ecx, 0xf
jbe 0x1003d1f1
mov edx, dword [ebp - 0x2ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003d1e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003d1e7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10045a15
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 0x1003cf54
push ecx
push edx
call fcn.10045a15
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.10045a07
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8