Function at 0x4708a5
Capabilities:
Reference alidns dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, 0xa395b5
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00470b71
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4708e4
push ebx
call fcn.004d37d2
add esp, 4
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 5
jg 0x47091e
cmp dword [0xc00890], 1
jne 0x470903
jmp 0x47091e
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
push 0x3e8
call fcn.0040c3e0
pop ecx
jmp 0x4708e6
add esp, 4
cmp dword [0xc00a08], 1
jne 0x470933
jmp 0x470b5d
cmp dword [0xc00890], 1
jne 0x470989
cmp dword [0xc00a6c], 2
jne 0x470984
mov dword [0xc00a6c], 1
mov ebx, 6
call fcn.00403607
push ioctlsocket
push 0
push 0x470ffb
push 3
mov eax, 2
mov ebx, 0x544a30
call fcn.004d37cc
add esp, 0x28
jmp 0x470b40
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, 0x59750e
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, str.223.5.5.5
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004192ce
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4709d1
push ebx
call fcn.004d37d2
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4709e1
push ebx
call fcn.004d37d2
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4709f5
push ebx
call fcn.004d37d2
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x597360
push dword [ebp - 4]
call fcn.00401067
add esp, 8
cmp eax, 0
jne 0x470a1e
mov dword [ebp - 8], 0x1e
jmp 0x470a25
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0x1e
jne 0x470aec
mov eax, dword [ebp - 8]
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x470ae4
fild dword [ebp - 8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x1c]
fsub qword [ebp - 0x1c]
fstp qword [ebp - 0x24]
push 0x80000601
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 1
mov ebx, 0x4d5880
call fcn.004d37d8
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0xa395e6
push dword [ebp - 0x28]
push 0xa395f6
mov ecx, 3
call fcn.00401d11
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x470aab
push ebx
call fcn.004d37d2
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.00470b71
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x470ac4
push ebx
call fcn.004d37d2
add esp, 4
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
push 0x3e8
call fcn.0040c3e0
pop eax
pop ebx
pop ecx
jmp 0x470a3b
add esp, 0xc
jmp 0x470b0d
mov eax, 0xa39634
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00470b71
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x470b0d
push ebx
call fcn.004d37d2
add esp, 4
cmp dword [0xc00b04], 0
jne 0x470b2e
cmp dword [0xc00b00], 0
jne 0x470b2e
mov eax, 1
jmp 0x470b33
mov eax, 0
test eax, eax
je 0x470b40
call fcn.00470d07
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
push 0x3e8
call fcn.0040c3e0
jmp 0x470921
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x470b6d
push ebx
call fcn.004d37d2
add esp, 4
mov esp, ebp
pop ebp
ret