Function at 0x4627ce
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, 0xac5135
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00462a99
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x46280d
push ebx
call fcn.004b1946
add esp, 4
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 5
jg 0x462847
cmp dword [0xc548a4], 1
jne 0x46282c
jmp 0x462847
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
push 0x3e8
call fcn.004076b3
pop ecx
jmp 0x46280f
add esp, 4
mov ebx, 6
call fcn.0040212b
push ioctlsocket
push 0
push 0x46375d
push 3
mov eax, 2
mov ebx, 0x522ca0
call fcn.004b1940
add esp, 0x28
cmp dword [0xc54934], 1
jne 0x462889
jmp 0x462a85
cmp dword [0xc548a4], 1
jne 0x4628df
cmp dword [0xc549f0], 2
jne 0x4628da
mov dword [0xc549f0], 1
mov ebx, 6
call fcn.0040212b
push ioctlsocket
push 0
push 0x4638d3
push 3
mov eax, 2
mov ebx, 0x522ca0
call fcn.004b1940
add esp, 0x28
jmp 0x462a68
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov eax, 0x5da63c
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.00407bfa
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x462927
push ebx
call fcn.004b1946
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x462937
push ebx
call fcn.004b1946
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x46294b
push ebx
call fcn.004b1946
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x576ecb
push dword [ebp - 4]
call fcn.00401004
add esp, 8
cmp eax, 0
jne 0x462974
mov dword [ebp - 8], 0x1e
jmp 0x46297b
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0x1e
jne 0x462a42
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 0x462a3a
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, 0x4b3b10
call fcn.004b194c
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0xac5166
push dword [ebp - 0x28]
push 0xac5176
mov ecx, 3
call fcn.00401895
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x462a01
push ebx
call fcn.004b1946
add esp, 4
lea eax, [ebp - 0x2c]
push eax
call fcn.00462a99
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x462a1a
push ebx
call fcn.004b1946
add esp, 4
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
push 0x3e8
call fcn.004076b3
pop eax
pop ebx
pop ecx
jmp 0x462991
add esp, 0xc
jmp 0x462a63
mov eax, 0xac51b4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00462a99
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x462a63
push ebx
call fcn.004b1946
add esp, 4
call fcn.004632f1
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
push 0x3e8
call fcn.004076b3
jmp 0x462877
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x462a95
push ebx
call fcn.004b1946
add esp, 4
mov esp, ebp
pop ebp
ret