Function at 0x1003c300
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 0x10056f9b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2e8
mov eax, dword [0x10087040]
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], 0x1003c990
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.100402a0
add esp, 0xc
test eax, eax
je 0x1003c50f
push eax
call fcn.100406b0
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 0x1003c420
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2ec]
call fcn.10008fe0
push 0x1b
push str.Failed_to_initialize_ares:
push 0
lea ecx, [ebp - 0x2ec]
mov byte [ebp - 4], 1
call fcn.100095d0
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 0x1003c4b9
mov edx, dword [ebp - 0x2ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c4af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003c509
push ecx
push edx
call fcn.10052765
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 0x1003c7b5
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1003c7ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003c7ab
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.100412d0
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 0x1003c549
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
push 0x1003c7e0
lea ecx, [ebp - 0x50]
push ecx
push 0
push eax
push dword [ebp - 0x264]
call fcn.100418b0
add esp, 0x18
cmp dword [ebp - 0x28], 0
jne 0x1003c6ff
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 0x1003c61f
nop dword [eax]
mov ecx, dword [edi]
xor eax, eax
test edx, edx
je 0x1003c5be
nop dword [eax + eax]
cmp dword [ebp + eax*4 - 0x154], ecx
je 0x1003c5be
inc eax
cmp eax, edx
jb 0x1003c5b0
cmp eax, edx
jne 0x1003c5db
cmp edx, 0x40
jae 0x1003c5db
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 0x1003c5ef
cmp dword [ebp + eax*4 - 0x25c], ecx
je 0x1003c5ef
inc eax
cmp eax, esi
jb 0x1003c5e1
cmp eax, esi
jne 0x1003c60c
cmp esi, 0x40
jae 0x1003c60c
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 0x1003c5a0
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x3c], 0
cmp ecx, eax
jne 0x1003c635
xor eax, eax
jmp 0x1003c641
push 1
push eax
push ecx
call fcn.100526d0
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 0x1003c6f3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2cc], ecx
cmp ecx, eax
je 0x1003c6e9
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.10042630
mov ecx, dword [ebp - 0x2cc]
add esp, 0xc
add ecx, 4
mov dword [ebp - 0x2cc], ecx
cmp ecx, dword [ebp - 0x2d0]
jne 0x1003c680
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 0x1003c583
mov edi, dword [ebp - 0x2f0]
mov esi, dword [ebp - 0x2d4]
push dword [ebp - 0x264]
call fcn.10043350
add esp, 4
lea eax, [ebp - 0x38]
mov edx, esi
lea ecx, [ebp - 0x2ec]
push eax
push 0x11
push str._resolved_to_
call fcn.1003ecc0
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1003a470
mov ecx, dword [ebp - 0x2d8]
cmp ecx, 0xf
jbe 0x1003c76f
mov edx, dword [ebp - 0x2ec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003c765
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003c765
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10052765
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 0x1003c4d4
push ecx
push edx
call fcn.10052765
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.10052757
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8