Function at 0x4606c7
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, 0x9710e1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00460992
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x460706
push ebx
call fcn.004cb677
add esp, 4
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 5
jg 0x460740
cmp dword [0xbec8c0], 1
jne 0x460725
jmp 0x460740
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
push 0x3e8
call fcn.00403abc
pop ecx
jmp 0x460708
add esp, 4
mov ebx, 6
call fcn.004010a2
push ioctlsocket
push 0
push 0x4617ef
push 3
mov eax, 2
mov ebx, 0x53ca00
call fcn.004cb695
add esp, 0x28
cmp dword [0xbec9f8], 1
jne 0x460782
jmp 0x46097e
cmp dword [0xbec8c0], 1
jne 0x4607d8
cmp dword [0xbec9b0], 2
jne 0x4607d3
mov dword [0xbec9b0], 1
mov ebx, 6
call fcn.004010a2
push ioctlsocket
push 0
push 0x461965
push 3
mov eax, 2
mov ebx, 0x53ca00
call fcn.004cb695
add esp, 0x28
jmp 0x460961
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, 0x971108
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.00408640
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x460820
push ebx
call fcn.004cb677
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x460830
push ebx
call fcn.004cb677
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x460844
push ebx
call fcn.004cb677
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x58c939
push dword [ebp - 4]
call fcn.004010aa
add esp, 8
cmp eax, 0
jne 0x46086d
mov dword [ebp - 8], 0x1e
jmp 0x460874
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0x1e
jne 0x46093b
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 0x460933
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, 0x4cd850
call fcn.004cb683
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x971115
push dword [ebp - 0x28]
push 0x971125
mov ecx, 3
call fcn.0040456b
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4608fa
push ebx
call fcn.004cb677
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.00460992
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x460913
push ebx
call fcn.004cb677
add esp, 4
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
push 0x3e8
call fcn.00403abc
pop eax
pop ebx
pop ecx
jmp 0x46088a
add esp, 0xc
jmp 0x46095c
mov eax, 0x971163
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00460992
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x46095c
push ebx
call fcn.004cb677
add esp, 4
call fcn.004611ea
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
push 0x3e8
call fcn.00403abc
jmp 0x460770
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x46098e
push ebx
call fcn.004cb677
add esp, 4
mov esp, ebp
pop ebp
ret