Function at 0x417710
Capabilities:
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x480540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x35
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
push 0
push eax
push esi
call fcn.004182a0
mov cx, word [ebp - 0x60]
add esp, 0x10
mov dx, word [0x474174]
cmp cx, word [0x474170]
je 0x417760
cmp cx, dx
je 0x417760
xor eax, eax
jmp 0x41776c
cmp cx, dx
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x5c]
cmovne eax, ecx
push eax
push edi
push esi
call fcn.00418fd0
add esp, 0xc
test eax, eax
je 0x4177d0
cmp dword [ebp + 0x14], 0
je 0x417793
push 0x35
push edi
lea eax, [ebp - 0x60]
push eax
push esi
call fcn.004182a0
add esp, 0x10
jmp 0x4177c8
movzx eax, word [0x474170]
mov edx, str.1.1.1.1
cmp esi, eax
mov ecx, str.1::1
cmove ecx, edx
push ecx
call fcn.0041a010
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push 0x35
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x70], edx
push eax
push esi
call fcn.004182a0
add esp, 0x14
test eax, eax
jne 0x417923
lea eax, [ebp - 0x64]
push eax
movzx eax, word [0x474184]
push 0
push eax
push esi
call fcn.004198d0
add esp, 0x10
test eax, eax
jne 0x417923
mov cx, word [ebp - 0x60]
mov dx, word [0x474174]
cmp cx, word [0x474170]
je 0x417808
cmp cx, dx
jne 0x417818
cmp cx, dx
mov eax, 0x10
mov esi, 0x1c
cmove eax, esi
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
call fcn.00419350
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41784c
push dword [ebp - 0x64]
call fcn.00419300
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422f02
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push eax
push edi
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0x1c
call fcn.00419410
add esp, 0xc
mov esi, eax
push dword [ebp - 0x64]
call fcn.00419300
test esi, esi
jne 0x417836
push 0x40
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004244d0
push edi
call fcn.00417f10
push edi
mov esi, eax
call fcn.00417f50
mov edi, eax
lea edx, [ebp - 0x44]
add esp, 0x18
sub edi, 4
jb 0x4178b1
nop dword [eax + eax]
mov ecx, dword [esi]
cmp ecx, dword [edx]
jne 0x4178b6
add esi, 4
add edx, 4
sub edi, 4
jae 0x4178a0
cmp edi, 0xfffffffc
je 0x4178ea
mov al, byte [esi]
cmp al, byte [edx]
jne 0x4178e3
cmp edi, 0xfffffffd
je 0x4178ea
mov al, byte [esi + 1]
cmp al, byte [edx + 1]
jne 0x4178e3
cmp edi, 0xfffffffe
je 0x4178ea
mov al, byte [esi + 2]
cmp al, byte [edx + 2]
jne 0x4178e3
cmp edi, 0xffffffff
je 0x4178ea
mov al, byte [esi + 3]
cmp al, byte [edx + 3]
je 0x4178ea
sbb eax, eax
or eax, 1
jmp 0x4178ec
xor eax, eax
test eax, eax
jne 0x417906
pop edi
pop esi
mov eax, 0x11176
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422f02
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x417921
movups xmm0, xmmword [ebp - 0x60]
mov eax, dword [ebp - 0x48]
movups xmmword [ebx], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [ebx + 0x10], xmm0
mov dword [ebx + 0x18], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422f02
mov esp, ebp
pop ebp
ret