Function at 0x719ca031
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf6c]
mov edi, dword [eax + 0x20]
push esi
push esi
push 0x10004
call sub.DNSAPI.dll_DnsQueryConfigAllocEx
mov ebx, eax
xor eax, eax
cmp ebx, esi
mov dword [ebp - 0x1c], ebx
je 0x719ca069
mov eax, dword [ebx]
lea ecx, [ebp - 0xc]
push ecx
push 1
push eax
call fcn.719c2710
mov edx, eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf6c]
mov esi, dword [eax + 0x20]
add esi, 0x1b8
test edx, edx
jle 0x719ccf87
push 0xfffffffffffffffc
pop ecx
lea eax, [ebx + 4]
sub ecx, ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
cmp dword [eax], 0
je 0x719ca0c2
mov edx, dword [edi + 0xc]
add edx, ecx
mov dword [edx + eax], ebx
mov edx, dword [eax]
mov dword [ebx], edx
add ebx, 4
add eax, 4
dec dword [ebp - 0x18]
jne 0x719ca0ae
cmp dword [ebp - 0x20], 0
je 0x719ccf8a
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
and dword [eax + ecx*4], 0
cmp dword [ebp - 0x1c], 0
je 0x719ca0ec
push dword [ebp - 0x1c]
call sub.DNSAPI.dll_DnsApiFree
push 0
push 0
push 0xc
call sub.DNSAPI.dll_DnsQueryConfigAllocEx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x719ccf80
push eax
call sub._Cmvrt.DLL_wcslen
cmp eax, ebx
pop ecx
mov dword [ebp - 0x1c], eax
je 0x719d2b63
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 1
push 0x719ca214
call sub.DNSAPI.dll_DnsQuery_W
push ebx
push ebx
push ebx
mov dword [ebp - 0x20], eax
call sub.DNSAPI.dll_DnsQueryConfigAllocEx
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x719d2b6b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
lea ebx, [eax + ecx]
lea ebx, [ebx + ebx + 4]
mov eax, ebx
push 4
and eax, 3
pop ecx
push dword [ebp - 8]
sub ecx, eax
add ebx, ecx
cmp ebx, 0x200
jge 0x719d2c5c
push esi
call sub._Cmvrt.DLL_wcscpy
cmp dword [ebp - 0xc], 0
pop ecx
pop ecx
jne 0x719d2b90
mov eax, 0x200
mov dword [edi], esi
sub eax, ebx
add esi, ebx
cmp dword [ebp - 0x20], 0
mov dword [ebp - 0x18], eax
jne 0x719ccf40
mov eax, dword [ebp - 4]
test eax, eax
je 0x719ccf40
mov dword [ebp - 0xc], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf6c]
mov eax, dword [eax + 0x20]
add eax, 0x128
cmp dword [ebp - 0x14], eax
jae 0x719ca1e3
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 4]
test eax, eax
je 0x719ca1d7
push 0x719ca224
push eax
call sub._Cmvrt.DLL_wcscmp
test eax, eax
pop ecx
pop ecx
jne 0x719d2bb4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x719ca19f
push dword [ebp - 8]
call sub.DNSAPI.dll_DnsApiFree
push 1
push dword [ebp - 4]
call sub.DNSAPI.dll_DnsRecordListFree
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf6c]
mov eax, dword [eax + 0x20]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 8]
call sub.DNSAPI.dll_DnsApiFree
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf6c]
mov eax, dword [eax + 0x20]
and dword [eax + 0xa0], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf6c]
mov eax, dword [eax + 0x20]
add eax, 0xa0
mov dword [edi + 4], eax
mov eax, dword fs:[0x18]
jmp 0x719ca1fb
xor eax, eax
jmp 0x719ca204
mov ebx, dword [ebp - 0xc]
mov eax, dword [edi + 0xc]
push 0x7f000001
mov dword [eax], ebx
mov dword [ebp - 8], 1
call sub.WS2__32_Coverage_C_WINDOWS_system32.DLL_Ordinal_8
mov dword [ebx], eax
jmp 0x719ca0d4
push dword [ebp - 8]
jmp 0x719d2c64
push eax
call sub._Cmvrt.DLL_wcslen
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
jne 0x719ca13f
push dword [ebp - 0xc]
call sub.DNSAPI.dll_DnsApiFree
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jmp 0x719ca13f
push 0x719ca224
push esi
call sub._Cmvrt.DLL_wcscat
push dword [ebp - 0xc]
push esi
call sub._Cmvrt.DLL_wcscat
add esp, 0x10
push dword [ebp - 0xc]
call sub.DNSAPI.dll_DnsApiFree
jmp 0x719ca179
push dword [ebx + 4]
mov dword [ebp - 0x20], 1
call sub._Cmvrt.DLL_wcslen
add eax, dword [ebp - 0x1c]
pop ecx
lea ebx, [eax + eax + 4]
mov eax, ebx
push 4
and eax, 3
pop ecx
sub ecx, eax
add ebx, ecx
cmp dword [ebp - 0x18], ebx
jl 0x719ca1e3
push dword [ebp - 8]
push esi
call sub._Cmvrt.DLL_wcscpy
push 0x719ca224
push esi
call sub._Cmvrt.DLL_wcscat
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
push esi
call sub._Cmvrt.DLL_wcscat
add esp, 0x18
push dword [edi]
push esi
call sub.DNSAPI.dll_DnsNameCompare_W
test eax, eax
jne 0x719ca1d7
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
test eax, eax
je 0x719d2c44
push eax
push esi
call sub.DNSAPI.dll_DnsNameCompare_W
add dword [ebp - 0x10], 4
test eax, eax
je 0x719d2c32
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x719d2c1f
cmp dword [ebp - 0x20], eax
je 0x719ca1d7
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
add eax, 4
and dword [eax], 0
add esi, ebx
sub dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
jmp 0x719ca1d7
call sub.DNSAPI.dll_DnsApiFree
push dword [ebp - 0xc]
call sub.DNSAPI.dll_DnsApiFree
jmp 0x719ccf80